Completely replacing 'From:' header...

"Robert P. Thille" <[email protected]> Tue, 15 Sep 2009 15:43:07 -0700
Newsgroups gmane.mail.spam.tmda.devel
Message-ID <[email protected]>
I wanted to completely replace the From: header
so in my outgoing filter file, I added this:

to [email protected] tag
   from "Agent Maxwell Smart <[email protected]>"

But that resulted in 'mangled' From: headers, something like this:
   From: Robert P. Thille <Agent Maxwell Smart <[email protected]>>

So, I found this section of code:
>     # Create the custom headers.
>     custom_headers = [ h for h in actions.keys()
>                         if h not in ('from', 'envelope', 'resent-from') ]

And removed 'from' from the list of literals exempted from 'custom_headers'

I don't _think_ that breaks anything, as I can still use 'from dated=1w'
and that works, and now my above tag action to change the whole 'From'
header also works.

Can anyone see a reason to not make this change (at least locally, for
my install), or a better way to accomplish the same goal?

BTW, I'm running 1.1.8nb3 (NetBSD pkgsrc, I'm pretty sure the
base-version is 1.1.8)

Thanks,

Robert

-- 
Robert Thille                7575 Meadowlark Dr.; Sebastopol, CA 95472
Home: 707.824.9753    Office/VOIP: 707.780.1560     Cell: 707.217.7544
[email protected]    jabber:rthille     http://www.rangat.org/rthille

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
tmda-workers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmda-workers