[Mimedefang] Re: exceptions based on recipient?

Murat Isik muratisik at megatek.com.tr
Fri Jan 30 04:01:21 EST 2004


Thanks for the quick response:)

Actually I could not really understand what I am supposed to do. Can you
give some coding examples?




----- Original Message -----
From: "kamal" <kamalnee at iitk.ac.in>
To: "Murat Isik" <muratisik at megatek.com.tr>
Cc: "mimedefang" <mimedefang at lists.roaringpenguin.com>
Sent: Friday, January 30, 2004 10:10 AM
Subject: Re: exceptions based on recipient?


> Oh yes, then you may not be able to do it in filter_end. Actually, we
> are not doing anything with the mail body except headers, so it is ok
> with us.
>
> You can do this computation in filter_begin and save the result for use
> in later functions. Of course, you can choose not to do it in
> filter_begin and repeat it in later functions.
>
> In filter_begin, you do (1) Amongst the recipients, check which are
exempted
> In filter, (2) if any of the recipients is non-exempted, do normal
> filtering, otherwise do no filtering
> In filter_end, (3) if you did any filtering in "filter" function( i.e.
> at least some recipients are non-exempted and mail is 'bad'), resend
> original message to exempted recipients if any, delete them from "this"
> message. Otherwise, accept message as it is.
>
> I hope this should work, haven't tested it out.



More information about the MIMEDefang mailing list