Re: [Mailman-Users] munging the To: line?

2016-12-01 Thread Rainer Müller
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 
>>
>> 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 
> 
> 
> 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: myl...@example.com
> From: John Smith via mylist 
> 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
> 'myl...@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
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] munging the To: line?

2016-12-01 Thread Mark Sapiro
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 
> 
> 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 


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: myl...@example.com
From: John Smith via mylist 
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
'myl...@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.


> 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 
> 
> 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: 
From: John Smith via mylist 
Reply-To: John Smith 
Cc: 

Then the misbehaving MUAs may still address 'reply all' To: John Smith
via mylist , 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 ' with just 'mylist
'

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org