~joostvb/mailman/2.1-pgp-smime

« back to all changes in this revision

Viewing changes to Mailman/Handlers/SMTPDirect.py

  • Committer: Joost van Baal
  • Date: 2009-09-05 10:22:03 UTC
  • mfrom: (414.13.64 2.1)
  • Revision ID: joostvb-bzr@mdcc.cx-20090905102203-ajd5inpygrwypzzd
merging with upstream: 2.1.13 is coming

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# This file is a moderately patched version of SMTPDirect.py which has:
2
2
#
3
 
# Copyright (C) 1998-2005 by the Free Software Foundation, Inc.
 
3
# Copyright (C) 1998-2009 by the Free Software Foundation, Inc.
4
4
#
5
5
# GPG modifications:
6
6
# Copyright (C) 2005 by Stefan Schlott
503
503
    msg['Sender'] = envsender
504
504
    msg['Errors-To'] = envsender
505
505
    # Get the plain, flattened text of the message, sans unixfrom
506
 
    msgtext = msg.as_string()
 
506
    # using our as_string() method to not mangle From_ and not fold
 
507
    # sub-part headers possibly breaking signatures.
 
508
    msgtext = msg.as_string(mangle_from_=False)
507
509
    refused = {}
508
510
    recips = msgdata['recips']
509
511
    msgid = msg['message-id']