procmail
[Top] [All Lists]

Re: clamavd & procmail

2004-03-03 15:11:43
Dear Sir



Thank you for your kind response.



This came up recently on this list. My recollection is that 'W' suppresses
the
message, but does not change the basic function of 'w', namely leaving the
original text unmodified on failure (non-zero exit code).



Ok. Got it. Changed code to return 0 if Virus was found and all other
actions were successful.


I believe what you want to to is run clamavd on the message and TEST the
exit
code. Bart Schaefer and others talked me through a similar process
recently,
and suggested this approach (which I'm currently about to test):



I am running specific software clamdmail
(http://sourceforge.net/projects/clamdmail) - it is using clamd and add
header to mail if no virus was found. When virus is found different actions
can be configured. You can pipe mail to clamdmail from shell and  it will
check mail attachments with clamd ant return same mail with header
X-Virus-Scan on top of exact same mail. That's all.



In my configuration when virus is identified - clamdmail is storing piped
mail into quarantine folder and instead of original mail is returning an
informational message about identified virus with some information from
original mail headers (From, To, Subject, Virus).



Now I found another problem. In some cases procmail is
changing line "From ..." to ">From ....". Why it happens ?

As you noted in your next message, this is occurring outside of procmail.
How
are you grabbing the message to start with? formail will do From_ escaping
like
that.



That is wrong. That is my question about - why  procmail is doing in that
way. Did you had chance to look at my second letter? When I am piping mail
from command line to clamdmail - From line (and whole mail) is returned in a
right way. When I use same pipe in procmailrc - > is inserted in beginning
of From line. I think this show, that procmail is commenting From ?....



Thank you again for your kind help.



With best regards

Martynas





_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>