[Mimedefang] patch for trying to create only once the quarantine dir

Oliver Schulze L. oliver at samera.com.py
Wed May 16 00:16:19 EDT 2007


Hi,
I was looking into creating a custom get_quarantine_dir() and created
this small patch.

It seems that if you have wrong permissions in the Quarantine directory,
MD will try to create 1000 times the same directory.
The same could happend if the disk is full I think.

This patch does:
if the directory exists, just increment the counter
if does not exists, try to create only once the directory

HTH
Oliver

-- 
Oliver Schulze L.   | Get my e-mail after a captcha in:
Asuncion - Paraguay | http://tinymailto.com/oliver 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mimedefang.pl.mkdir_only_once.patch
URL: <https://lists.mimedefang.org/pipermail/mimedefang_lists.mimedefang.org/attachments/20070516/087b69ad/attachment.ksh>


More information about the MIMEDefang mailing list