Bluehost.com Web Hosting $6.95

Re: [courier-users] Original-Recipient

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 ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-05-2005
Gordon Messmer
 
Posts: n/a
Default Re: [courier-users] Original-Recipient

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:49 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0