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 attached.
--
Aidas Kasparas
IT administrator
GM Consult Group, UAB
--- log_aliases.py.R 2008-09-11 08:54:57.000000000 +0300
+++ log_aliases.py 2008-09-11 08:55:49.000000000 +0300
@@ -31,6 +31,6 @@
if addr[1]:
if(addr[1].startswith('rfc822;')):
addr[1] = addr[1][7:]
- sys.stderr.write('Message delivered to %s was originally addressed to %s\n.' % \
+ sys.stderr.write('Message delivered to %s was originally addressed to %s.\n' % \
(addr[0], addr[1]))
return ''
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users