Update of /cvsroot/mailman/mailman/Mailman/Handlers
In directory usw-pr-cvs1:/tmp/cvs-serv25702

Modified Files:
        ToDigest.py 
Log Message:
send_i18n_digests(): Be robust in the face of messages with no From:
header.  It seems like only broken configurations (or bugs?) could
cause this since the RFC requires From: to exist, but this is better
than throwing an exception.


Index: ToDigest.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/ToDigest.py,v
retrieving revision 2.15
retrieving revision 2.16
diff -C2 -d -r2.15 -r2.16
*** ToDigest.py 19 Dec 2001 07:03:22 -0000      2.15
--- ToDigest.py 15 Mar 2002 15:53:06 -0000      2.16
***************
*** 1,3 ****
! # Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc.
  #
  # This program is free software; you can redistribute it and/or
--- 1,3 ----
! # Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc.
  #
  # This program is free software; you can redistribute it and/or
***************
*** 209,213 ****
          if mo:
              subject = subject[:mo.start(2)] + subject[mo.end(2):]
!         addresses = getaddresses([msg['From']])
          username = ''
          # Take only the first author we find
--- 209,213 ----
          if mo:
              subject = subject[:mo.start(2)] + subject[mo.end(2):]
!         addresses = getaddresses([msg.get('From', '')])
          username = ''
          # Take only the first author we find


_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins

Reply via email to