Re: [courier-users] How to identify mails sent to an alias

2008-09-21 Thread Bernd Wurst
Hi. On Sunday 21 September 2008, Michelle Konzack wrote: My old ISP has used     Delivered-To: real_address     Envelope-To: alias I wish, courier would do the same thing... +1 for this (no matter how the headers are named). For me, it seems overkill to write a courierfilter just to

Re: [courier-users] How to identify mails sent to an alias

2008-09-21 Thread Gordon Messmer
Michelle Konzack wrote: Can a pythonfilter be writen to add a X-Header to the message with the original Recipient? It can, but you'd have to do something like this: * Identify the alias used * Create a new copy of the message * Add the header * Inject the new message into the queue * Mark the

Re: [courier-users] How to identify mails sent to an alias

2008-09-20 Thread Michelle Konzack
Hello Gordon, Can a pythonfilter be writen to add a X-Header to the message with the original Recipient? Thanks, Greetings and nice Day/Evening/Morning Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant --

Re: [courier-users] How to identify mails sent to an alias

2008-09-20 Thread Jérôme Blion
Michelle Konzack a écrit : Hello Gordon, Can a pythonfilter be writen to add a X-Header to the message with the original Recipient? Thanks, Greetings and nice Day/Evening/Morning To have only one header, we need to run a script AFTER the mail has been accepted. So, this is not possible

Re: [courier-users] How to identify mails sent to an alias

2008-09-11 Thread Aidas Kasparas
Gordon Messmer wrote: Attached is a pythonfilter which will log the original recipient address for messages that are delivered to aliases. It took less than 5 minutes to write. :) Virtually anything that you want logged could be done in a very similar fashion. Thank you. Small fix

Re: [courier-users] How to identify mails sent to an alias

2008-09-11 Thread Gordon Messmer
Aidas Kasparas wrote: Thank you. Small fix attached. Good catch. I don't expect to distribute that filter, though. It was intended as an example for people who want additional logging. - This SF.Net email is sponsored

Re: [courier-users] How to identify mails sent to an alias

2008-09-02 Thread Jérôme Blion
Gordon Messmer a écrit : Attached is a pythonfilter which will log the original recipient address for messages that are delivered to aliases. It took less than 5 minutes to write. :) Virtually anything that you want logged could be done in a very similar fashion. Tested and approved :)

Re: [courier-users] How to identify mails sent to an alias

2008-08-29 Thread Gordon Messmer
Attached is a pythonfilter which will log the original recipient address for messages that are delivered to aliases. It took less than 5 minutes to write. :) Virtually anything that you want logged could be done in a very similar fashion. #!/usr/bin/python # log_aliases -- Courier filter

Re: [courier-users] How to identify mails sent to an alias

2008-08-20 Thread Alessandro Vesely
Aidas Kasparas wrote: Gordon Messmer wrote: Sam Varshavchik wrote: You can't. Alias lookup happens immediately upon the receipt of the recipient's address. Since the alias address is no longer needed, it does not get stored anywhere. It does get stored in the control file, doesn't it?

Re: [courier-users] How to identify mails sent to an alias

2008-08-20 Thread Jerome Blion
On Wed, 20 Aug 2008 10:03:46 +0200, Alessandro Vesely [EMAIL PROTECTED] wrote: Gordon used to maintain a pretty-received patch to do exactly that. Alas, it never made it to an official version. However, the fact that he himself did not implement a pythonfilter as he said is meaningful! It does

Re: [courier-users] How to identify mails sent to an alias

2008-08-20 Thread Gordon Messmer
Alessandro Vesely wrote: Gordon used to maintain a pretty-received patch to do exactly that. Alas, it never made it to an official version. However, the fact that he himself did not implement a pythonfilter as he said is meaningful! Who, me? I don't remember any such patch. The

Re: [courier-users] How to identify mails sent to an alias

2008-08-20 Thread Alessandro Vesely
Gordon Messmer wrote: Alessandro Vesely wrote: Gordon used to maintain a pretty-received patch to do exactly that. Who, me? I don't remember any such patch. My sloppy memory obviously can't cope with virtual companionships :-( My apologies for letting that loose... For the record, the

Re: [courier-users] How to identify mails sent to an alias

2008-08-20 Thread Aidas Kasparas
Gordon Messmer wrote: Aidas Kasparas wrote: E-mail clients which implement forward with headers are not popular amongst my clients :( You probably mean Outlook, which does have such a feature: Double-click on the message so it opens in a new window. Click on Actions-Resend This

[courier-users] How to identify mails sent to an alias

2008-08-19 Thread Jérôme Blion
Hello, I use lot of aliases going to the same real mailbox. I use these aliases to register on different websites. My goal is to identify where my email has been stolen / given But... I have a problem. I sent me a mail to grosbill at hebergement-pro.org: # echo coucou | nail [EMAIL PROTECTED]

Re: [courier-users] How to identify mails sent to an alias

2008-08-19 Thread Sam Varshavchik
Jérôme Blion writes: Never in my logs, I can see the mail has been sent to grosbill... serveur:~# grep grosbill /var/log/mail.log serveur:~# When I'm in To: or Cc: Field, it's OK, I can identify which alias has been used. But How to identify which alias has been used when sent in Bcc: ?

Re: [courier-users] How to identify mails sent to an alias

2008-08-19 Thread Gordon Messmer
Sam Varshavchik wrote: You can't. Alias lookup happens immediately upon the receipt of the recipient's address. Since the alias address is no longer needed, it does not get stored anywhere. It does get stored in the control file, doesn't it? Courierfilters have access to that information

Re: [courier-users] How to identify mails sent to an alias

2008-08-19 Thread Aidas Kasparas
Gordon Messmer wrote: Sam Varshavchik wrote: You can't. Alias lookup happens immediately upon the receipt of the recipient's address. Since the alias address is no longer needed, it does not get stored anywhere. It does get stored in the control file, doesn't it? Courierfilters have