On 08/18/2016 04:47 PM, Richard Hipp wrote:
> 
> My mistake.  I should have written:  "It would would be great if there
> were some way to send a message where the *Subject:* field of each
> recipient was slightly different...."
> 
> Does modifying the Subject instead of the From change your recipe 
> significantly?


No. Depending on how you want to do it, it could be easier. I.e. if you
just wanted to put the recipient's email address in the Subject:, you
could not put any of the beginning stuff in and at the end just add

        msgsubj = msgcopy['subject']
        del msgcopy['subject']
        msgcopy['Subject'] = msgsubj + ' ' + recip

but that might be too obvious unless as Steven suggests it's a bot.

To add a code to the Subject:, you'd do all I suggested but at the end put

        code = CODES[recip.lower()]
        msgsubj = msgcopy['subject']
        del msgcopy['subject']
        msgcopy['Subject'] = msgsubj + ' ' + code

-- 
Mark Sapiro <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list [email protected]
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

Reply via email to