On Sunday 14 January 2007 11:46, Alessandro Vesely wrote: > Julian Mehnle wrote: > > Gordon Messmer wrote: ... > > Filters that always add a header could overwrite a previously inserted > header mask. We need a hook to pre-insert masks, then. Filters setting > a result that maildrop filters can use, could set a variable in the > control file. The latter implies maildrop should be able to retrieve > such variables. > > > My point being, I think Courier should offer a mode where it parses > > messages' MIME structure only _after_ having called the courierfilters. > > As an alternative mode, Courier could rewrite the message before invoking > global filters. I.e., invoke global filters just before recipient-specific > filters. It may be somewhat inefficient to rewrite a message if a filter > is going to discard it. Thus it may still be better for some other filters > to be called in one of the currently existing modes. > > For yet another approach, a filter response could contain some > modification commands, e.g. "add this header", "drop that attachment"... >
What about common per-message scratch pad area? Currently there are two files in queue directory, control and data. Were there third one, say, extra, (we would have them alphabetically nicely grouped together :) ), with some common access method, all these problems could be solved by using this, I think. This way, original message need not be re-parsed, any additional header could be added at the end of processing in some form from this extra file, just before handing message to maildrop or whatever used. What do you think about this approach? (Most important would be, naturally, Mr. Sam's oppinion :) Regards, Milan -- This address is used only for mailing list response. Do not send any personal messages to it, use milan in address instead. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
