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/~gordon/courier-patches/courier-pythonfilter/courier-pythonfilter-0.8/filters/noduplicates.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/listinfo/courier-users