This is a discussion on Re: [courier-users] Original-Recipient within the Courier-Imap forums, part of the Mail Servers and Related category; Bernd Wurst wrote: > So is there any possibility with Courier's plugin-/filter-possibilities > to have the original ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Bernd Wurst wrote:
> So is there any possibility with Courier's plugin-/filter-possibilities > to have the original address, ariving in the SMTP protocol saved into > the message? Right now the best you're going to get is logging the original message recipient to the mail log. With that limitation, yes, you can get the information you want using a courierfilter. You can make a trivial modification of the "noduplicates" filter included with courier-pythonfilter to achieve this: http://phantom.dragonsdawn.net/~gord...oduplicates.py Modify the "for" loop, and write the contents of x[0] and x[1] to stderr. x is an item from the list returned by getRecipientsData: def getRecipientsData(controlFileList): """Return a list of lists with details about message recipients. Each list will in the list returned will have the following elements: 0: The rewritten address 1: The "original message recipient", as defined by RFC1891 2: Zero or more characters indicating DSN behavior. """ ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |