[Mimedefang] A global variable per email

Oliver Schulze L. oliver at samera.com.py
Mon Apr 9 15:34:56 EDT 2007


Hi all,
after reading the man page of mimedefang-filter, I have a doubt.

I need to have a variable per email in the functions: filter, 
filter_multipart, filter_end
I readed that if I define a variable outside any sub in my filter, the 
variable will be
avaible. But, will it be unique per email?

I think it wouldn't, so my solution would be to store data in file in 
the $CWD at
the end of each function and retrieve it at the begining of each function.

Is this correct?

As an example, I need to have in filter_end:
- the list of all extensions, filenames, etc of the email
- the list of all virus found
- if a bad extension was deleted and which one

Thanks
Oliver

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




More information about the MIMEDefang mailing list