Personalization - How do I explicitly disable Sender field rewrite
I just upgraded to 2.1.9 and it seems that Personalization now re-writes the "Sender" or "From" field on all recipients' emails to use the 'description' of the list. I've been unsuccessful in disabling this unless I delete the description field, but then there would be no description on the listinfo page. Is there a quick entry I can put into mm_cfg.py or modify on one of the other files to disable the Sender/From rewrite?
It seems like defaulting to 'No' for personalization starts out ok. Then I change it to 'Yes' and it makes the From field: "list description" <email@address.blah>
I want just: <email@address.blah>
When I change Personalization back to 'No', the effect stays the same. Now I'm unable to get rid of this From field rewrite unless I make a new list.
We want Personalization in order to use some variables in the footer, and of course to remedy some external user spam filtering issues. But we don't want the Sender/From field to contain the list's description.
-Tim-
Tim Van Dyne wrote:
I just upgraded to 2.1.9 and it seems that Personalization now re-writes the "Sender" or "From" field on all recipients' emails to use the 'description' of the list. I've been unsuccessful in disabling this unless I delete the description field, but then there would be no description on the listinfo page. Is there a quick entry I can put into mm_cfg.py or modify on one of the other files to disable the Sender/From rewrite?
This should have nothing to do with personalization. This is controlled by General Options -> anonymous_list.
It seems like defaulting to 'No' for personalization starts out ok. Then I change it to 'Yes' and it makes the From field: "list description" <email@address.blah>
I want just: <email@address.blah>
When I change Personalization back to 'No', the effect stays the same. Now I'm unable to get rid of this From field rewrite unless I make a new list.
I don't understand the interactions you discribe unless you are also making other changes.
We want Personalization in order to use some variables in the footer, and of course to remedy some external user spam filtering issues. But we don't want the Sender/From field to contain the list's description.
Rewriting of the From: header is controlled only by anonymous_list. If anonymous_list is Yes, the From: is rewritten to "Description <list posting address>"; if No, the From: is not rewritten at all.
personalize = Yes does not rewrite message headers. It only expands the replacements available for msg_header and msg_footer.
personalize = Full Personalization rewrites only the To: to the "real name <address>" of the recipient.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Tim Van Dyne wrote:
I just upgraded to 2.1.9 and it seems that Personalization now re-writes the "Sender" or "From" field on all recipients' emails to use the 'description' of the list. I've been unsuccessful in disabling this unless I delete the description field, but then there would be no description on the listinfo page. Is there a quick entry I can put into mm_cfg.py or modify on one of the other files to disable the Sender/From rewrite?
This should have nothing to do with personalization. This is controlled by General Options -> anonymous_list. I realized about an hour after I sent the message that personalization doesn't affect this. But I didn't know that anonymous_list added the description.
It seems like defaulting to 'No' for personalization starts out ok. Then I change it to 'Yes' and it makes the From field: "list description" <email@address.blah>
I want just: <email@address.blah>
When I change Personalization back to 'No', the effect stays the same. Now I'm unable to get rid of this From field rewrite unless I make a new list.
I don't understand the interactions you discribe unless you are also making other changes. Has to do with me thinking it was personalization somehow.
We want Personalization in order to use some variables in the footer, and of course to remedy some external user spam filtering issues. But we don't want the Sender/From field to contain the list's description.
Rewriting of the From: header is controlled only by anonymous_list. If anonymous_list is Yes, the From: is rewritten to "Description <list posting address>"; if No, the From: is not rewritten at all.
personalize = Yes does not rewrite message headers. It only expands the replacements available for msg_header and msg_footer.
personalize = Full Personalization rewrites only the To: to the "real name <address>" of the recipient.
Thank you for pointing this out, I will take into account this new direction with 'General Options -> anonymous_list' and see if I can get things working the way we want it.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Tim Van Dyne wrote:
I realized about an hour after I sent the message that personalization doesn't affect this. But I didn't know that anonymous_list added the description.
The description was added in Mailman 2.1.6.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
I'm assuming I would change $prefix/Mailman/Handlers/Cleanse.py somehow then. So, of this, what would I change?:
if mlist.anonymous_list:
syslog('post', 'post to %s from %s anonymized',
mlist.internal_name(), msg.get('from'))
del msg['from']
del msg['reply-to']
del msg['sender']
# Hotmail sets this one
del msg['x-originating-email']
i18ndesc = str(uheader(mlist, mlist.description, 'From'))
msg['From'] = formataddr((i18ndesc, mlist.GetListEmail()))
msg['Reply-To'] = mlist.GetListEmail()
Or am I going in the wrong direction? I'm looking to just take the description out of the equation for anonymous_list.
-----Original Message----- From: Mark Sapiro [mailto:mark@msapiro.net] Sent: Thursday, November 19, 2009 2:31 PM To: Tim Van Dyne; mailman-users@python.org Subject: RE: [Mailman-Users] Personalization - How do I explicitly disableSender field rewrite
Tim Van Dyne wrote:
I realized about an hour after I sent the message that personalization doesn't affect this. But I didn't know that anonymous_list added the description.
The description was added in Mailman 2.1.6.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Tim Van Dyne wrote:
I'm assuming I would change $prefix/Mailman/Handlers/Cleanse.py somehow then. So, of this, what would I change?:
[...]
msg['From'] = formataddr((i18ndesc, mlist.GetListEmail()))
Change the above line to
msg['From'] = mlist.GetListEmail()
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Tim Van Dyne wrote:
I'm assuming I would change $prefix/Mailman/Handlers/Cleanse.py somehow then. So, of this, what would I change?:
[...]
msg['From'] = formataddr((i18ndesc, mlist.GetListEmail()))
Change the above line to
msg['From'] = mlist.GetListEmail()
Right before you sent that out I found the same exact thing here: http://mail.python.org/pipermail/mailman-users/2003-October/032475.html
Thanks so much for the help. Problem solved.
participants (2)
-
Mark Sapiro
-
Tim Van Dyne