16 messages in net.sourceforge.lists.courier-usersRE: [courier-users] Filtering messages
FromSent OnAttachments
LucioFeb 18, 2005 1:05 am 
Alessandro VeselyFeb 19, 2005 3:53 am 
LucioFeb 21, 2005 12:23 am 
Bill MichellFeb 21, 2005 1:33 am 
Julian MehnleFeb 21, 2005 9:10 am 
Julian MehnleFeb 21, 2005 9:24 am 
Gordon MessmerFeb 21, 2005 10:17 am 
Alessandro VeselyFeb 22, 2005 12:42 am 
Martin OrrFeb 22, 2005 9:30 am 
Gordon MessmerFeb 22, 2005 10:02 am 
Alessandro VeselyFeb 22, 2005 10:54 am 
Martijn LievaartFeb 22, 2005 11:45 am 
Jay LeeFeb 22, 2005 12:05 pm 
Jerry AmundsonFeb 22, 2005 12:05 pm 
Martijn LievaartFeb 23, 2005 1:08 am 
Martijn LievaartFeb 23, 2005 1:10 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] Filtering messagesActions...
From:Julian Mehnle (bu@mehnle.net)
Date:Feb 21, 2005 9:24:37 am
List:net.sourceforge.lists.courier-users

Julian Mehnle wrote:

Your filter (or filter module, if you decide to use one of the modular frameworks) would need to check the list of envelope recipients (the headers aren't exactly authoritative as far as actual message delivery is concerned) for the copy address, and then either return an "accept" or "reject" result. [...] It should be possible to add the copy address to the list of envelope recipients from within a courierfilter. This can be achieved by opening the control file in append mode and appending an additional "r" control record[4] with the copy address. However, I'm not entirely sure this would actually cause Courier to deliver the message to the added copy address. (Perhaps someone on this mailing list knows better than I do?)

On a related note, you can distinguish between incoming and outgoing messages by looking at the messages authentication information, provided that outgoing messages are always submitted through authenticated SMTP connections.

Currently it is not yet possible to get the authentication information from the message control file, but you can examine the very first "Received:" header field and look for the "AUTH" item in the second comment field. See http://groups-beta.google.com/group/mailing.unix.courier-imap/msg/a13130d5 ea566aea