[Mailman-Users] editing From line in anonymous list

Lloyd F. Tennison lloyd_tennison at whoever.com
Wed May 12 03:48:13 CEST 2004


You could always hard code it  - I think it would be in CookHeaders.

Date sent:      	Tue, 11 May 2004 17:25:48 -0400
From:           	Ari Jort <arijort at gmail.com>
To:             	mailman-users at python.org
Subject:        	[Mailman-Users] editing From line in anonymous list

> I have a list with the anonymous_list field set to Yes because we 
> want to rewrite the From and Reply-To headers.
> 
> The result of this setting is that the From: line contains the list
> email address e.g.:
> 
> From: mylist at lists.here.com
> 
> 
> However, I would like to have that From line look like this:
> 
> From: My List <mylist at lists.here.com>
> 
> 
> Where the string "My List" could be from the description field on the list.
> 
> Has anyone tried to do that?
> 
> This appear to be impossible to set in the configuration, since the 
> method in Mailman/MailList.py:getListAddress() only returns an email
> address.  The code doesn't seem to have a way to get the description.
> 
> There could be a function like this:
> 
> def getFriendlyListAddress(self);
>     return '%s <%s@%s>' % (self.description, self.internal_name(),
> self.host_name)
> 
> with maybe some extra code to handle the situation where
> self.description is blank.
> 
> Does this make sense?  Has anyone else tried this?
> 
> Thanks,
> 
> 
> 
> ari
> 
> ------------------------------------------------------
> Mailman-Users mailing list
> Mailman-Users at python.org
> http://mail.python.org/mailman/listinfo/mailman-users
> Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
> Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
> 
> 


Thanks.

Lloyd F. Tennison
lloyd_tennison at whoever.com

No trees were harmed in the transmission of this message.
However, a rather large number of electrons were temporarily
inconvenienced.





More information about the Mailman-Users mailing list