Collins, Alex wrote:
>
>RFC's and the non PC tampering of message headers aside:
>How can I use Mailman (or even sendmail) to remove the Message-ID so that 
>Mailman will set its own Message-ID and we can actually send messages to more 
>than one list.


You could just delete the Message-ID: from outgoing posts. Then the
outgoing MTA (sendmail ?) should add a unique Message-ID: when it
handles the message.

To do this, you could modify Mailman/Handlers/SMTPDirect.py by finding
the section of bulkdeliver that says

    msgtext = msg.as_string(mangle_from_=False)
    refused = {}
    recips = msgdata['recips']
    msgid = msg['message-id']
    try:
        # Send the message
        refused = conn.sendmail(envsender, recips, msgtext)

and change it to

    msgtext = msg.as_string(mangle_from_=False)
    refused = {}
    recips = msgdata['recips']
    del msg['message-id']
    msgid = 'n/a'
    try:
        # Send the message
        refused = conn.sendmail(envsender, recips, msgtext)

or if you want Mailman to actually generate a Message-ID:, change it to

    msgtext = msg.as_string(mangle_from_=False)
    refused = {}
    recips = msgdata['recips']
    del msg['message-id']
    msg['Message-ID'] = Utils.unique_message_id(mlist)
    msgid = msg['message-id']
    try:
        # Send the message
        refused = conn.sendmail(envsender, recips, msgtext)




-- 
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]
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to