Ingo Arndt writes:
Hello,I am using courier perlfilter for scanning mails with eset filesecurity. Now I would like to save all rejected mails to a maildir directory in addition to rejecting them as I had some problems with false alarms recently. In addition to the eset perlfilter I am using the Parts module in another perlfilter for blocking executable content. I want to safe those blocked mails too. How can I achieve this ?
Write the code to do it.
Can I directly save those blocked mails into a maildir with perlfilter ?
You can do anything you want with it.
Can I add custom headers to the mail in perlfilter so I can use maildrop filter for saving them to a maildir ?
A perlfilter either rejects the mail, or it doesn't. If the mail is rejected, it does not go any further, and it does not get delivered anywhere. The perlfilter code can certainly save a copy of the message somewhere, for logging or historical purposes, but mail delivery, overall is stopped at that point.
And if you want "rejected" mail to be delivered anyway, then there's no point to having a mail filter in the first place. That's what a mail filter does: it rejects undesirable mail. If it doesn't do that, then it has nothing to do in the first place.
Now, you could have the mail filter add some additional headers to the message, to be available to the mail client, perhaps. That's certainly possible.
pgpnU_wIcEaCc.pgp
Description: PGP signature
------------------------------------------------------------------------------
_______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
