41 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Filter API
FromSent OnAttachments
Bernd WurstDec 30, 2006 1:08 am 
Sam VarshavchikDec 30, 2006 6:12 am 
Bernd WurstDec 30, 2006 7:36 am 
Sam VarshavchikDec 30, 2006 8:51 am 
Bernd WurstDec 30, 2006 9:08 am 
Sam VarshavchikDec 30, 2006 9:55 am 
Aleksandar LazicDec 30, 2006 10:06 am 
Sam VarshavchikDec 30, 2006 10:24 am 
Aleksandar LazicDec 30, 2006 10:32 am 
Bernd WurstDec 30, 2006 10:34 am 
Arturo 'Buanzo' BusleimanDec 30, 2006 10:37 am 
Arturo 'Buanzo' BusleimanDec 30, 2006 10:38 am 
Bernd WurstDec 30, 2006 10:45 am 
Sam VarshavchikDec 30, 2006 11:02 am 
Aidas KasparasDec 30, 2006 11:10 am 
Aleksandar LazicDec 30, 2006 11:12 am 
Sam VarshavchikDec 30, 2006 1:42 pm 
Aleksandar LazicDec 30, 2006 2:56 pm 
Sam VarshavchikDec 30, 2006 3:56 pm 
Aleksandar LazicDec 30, 2006 5:00 pm 
Gordon MessmerDec 31, 2006 10:00 am 
Lorenzo PeroneJan 7, 2007 12:27 pm 
Julian MehnleJan 7, 2007 12:56 pm 
Sam VarshavchikJan 7, 2007 3:42 pm 
Lorenzo PeroneJan 8, 2007 6:59 am 
Gordon MessmerJan 8, 2007 8:37 am 
Lorenzo PeroneJan 9, 2007 8:33 am 
Gordon MessmerJan 10, 2007 12:34 am 
Julian MehnleJan 13, 2007 10:37 am 
Alessandro VeselyJan 14, 2007 2:46 am 
Milan ObuchJan 14, 2007 5:03 am 
Lloyd ZusmanJan 14, 2007 6:23 am 
Aidas KasparasJan 15, 2007 1:28 am 
Gordon MessmerJan 15, 2007 4:01 pm 
Gordon MessmerJan 15, 2007 4:21 pm 
Julian MehnleJan 15, 2007 4:45 pm 
Sergiy ZhukJan 15, 2007 5:42 pm 
Alessandro VeselyJan 16, 2007 1:36 am 
Gordon MessmerJan 21, 2007 7:14 pm 
Alessandro VeselyJan 22, 2007 7:58 am 
Gordon MessmerJan 22, 2007 10:02 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Filter APIActions...
From:Aidas Kasparas (a.ka@gmc.lt)
Date:Jan 15, 2007 1:28:14 am
List:net.sourceforge.lists.courier-users

Milan Obuch wrote:

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 :)

Milan,

This approach will be either not flexible (allows just to add something) or too complex (AddHeader, ChangeHeader, AddAttachment, ChangeAttachment, AppendText, etc... operations which has to be coded). People have very different need starting from adding legal stuff, advertisig, and ending by removing viruses and information about internal network (addresses of internal servers, their version numbers and so on). Therefore I'm pretty sure, that from flexibility and simplicity PoV reparsing of changed queue file is unbeatable. As for perfomance... if I need this functionality, I have to be ready to pay the price. On the other hand, price of reparsing a message is relatively small in comparison with the price of performing statistical antispam analysis.

And finaly, SAM once told me to send him _TESTED_ patch for doing reparsing. Unfortunately, I was lost in courier's code. :-(