munging the To: line?
I've searched the archives and the FAQs; if I've missed something please point me to it.
I've got From: munging turned on, so posts to a list I administer come "from" addresses like John Smith via mylist mylist@example.com
Frequently, list users will post to the list by replying to a previous message, and I'll end up getting a message with a To: header like
To: John Smith via mylist mylist@example.com
and it goes out to the list with that To: header.
Since this can be confusing, I'd like to munge the To: line as it comes through so it ends up saying
To: My List mylist@example.com
Is there a way to do this through standard configuration options (and how?), or do I need to write a handler?
Joe Pfeiffer 575.525.2764 (H) 1440 Tierra del Sol Dr 575.496.3501 (C) Las Cruces, NM 88007-5548
On 11/30/2016 06:16 PM, Joe Pfeiffer wrote:
I've got From: munging turned on, so posts to a list I administer come "from" addresses like John Smith via mylist mylist@example.com
Frequently, list users will post to the list by replying to a previous message, and I'll end up getting a message with a To: header like
To: John Smith via mylist mylist@example.com
Assuming you are not munging Reply-To:, i.e., reply_goes_to_list is Poster, the original message from the list should have headers
To: mylist@example.com
From: John Smith via mylist mylist@example.com
Reply-To: John Smith
According to standards, Reply-To: trumps From: for replies and a simple
'reply' should be addressed to 'John Smith
So part of the issue here is some of your users have misbehaving MUAs, but there's little if anything you can do about that.
and it goes out to the list with that To: header.
Since this can be confusing, I'd like to munge the To: line as it comes through so it ends up saying
To: My List mylist@example.com
Is there a way to do this through standard configuration options (and how?), or do I need to write a handler?
All you can do with standard config options is enable Full Personalization. Then messages will be personalized to each recipient with headers like
To:
Then the misbehaving MUAs may still address 'reply all' To: John Smith via mylist mylist@example.com, but that will be replaced in the outgoing message with the recipient's address.
Otherwise, A custom handler could easily munge a To: (or Cc:) header to replace any 'xxx via mylist mylist@example.com' with just 'mylist mylist@example.com'
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 2016-12-01 19:44, Mark Sapiro wrote:
On 11/30/2016 06:16 PM, Joe Pfeiffer wrote:
I've got From: munging turned on, so posts to a list I administer come "from" addresses like John Smith via mylist mylist@example.com
Frequently, list users will post to the list by replying to a previous message, and I'll end up getting a message with a To: header like
To: John Smith via mylist mylist@example.com
Assuming you are not munging Reply-To:, i.e., reply_goes_to_list is Poster, the original message from the list should have headers
To: mylist@example.com From: John Smith via mylist mylist@example.com Reply-To: John Smith
According to standards, Reply-To: trumps From: for replies and a simple 'reply' should be addressed to 'John Smith
' and 'reply-all' to 'John Smith ' and 'mylist@example.com' from the original To:. So part of the issue here is some of your users have misbehaving MUAs, but there's little if anything you can do about that.
I have seen posts with the To: pointing to "John Smitch via mylist" as well. This did not happen on a reply, but on new messages.
The issue exists with MUAs that automatically collect real names and email addresses from received mails, for example by automatically adding them to the user's addressbook. When the user then starts to write a new email to the list, upon entering the list address in the To: field, the MUA autocompletes and also adds the previously saved real name. If the user does not pay attention to this detail, they will send the mail with such a To: address.
Rainer
participants (3)
-
Joe Pfeiffer
-
Mark Sapiro
-
Rainer Müller