[Spambayes-checkins] spambayes/spambayes UserInterface.py, 1.45, 1.46

Tony Meyer anadelonbrin at users.sourceforge.net
Sat Feb 21 21:41:52 EST 2004


Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7055/spambayes

Modified Files:
	UserInterface.py 
Log Message:
Put a X-Mailer header on our bug report messages, including the version,
so that this is guarenteed to get through, even if the user wipes the
info from the text of the message.

Index: UserInterface.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/UserInterface.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -d -r1.45 -r1.46
*** UserInterface.py	22 Feb 2004 02:31:18 -0000	1.45
--- UserInterface.py	22 Feb 2004 02:41:50 -0000	1.46
***************
*** 1126,1129 ****
--- 1126,1130 ----
              outer['CC'] = from_addr
              outer['From'] = from_addr
+             outer['X-Mailer'] = Version.get_version_string(self.app_for_version)
              outer.preamble = self._wrap(message)
              # To guarantee the message ends with a newline
***************
*** 1134,1139 ****
                  ctype, encoding = mimetypes.guess_type(attach)
                  if ctype is None or encoding is not None:
!                     # No guess could be made, or the file is encoded (compressed),
!                     # so use a generic bag-of-bits type.
                      ctype = 'application/octet-stream'
                  maintype, subtype = ctype.split('/', 1)
--- 1135,1140 ----
                  ctype, encoding = mimetypes.guess_type(attach)
                  if ctype is None or encoding is not None:
!                     # No guess could be made, or the file is encoded
!                     # (compressed), so use a generic bag-of-bits type.
                      ctype = 'application/octet-stream'
                  maintype, subtype = ctype.split('/', 1)




More information about the Spambayes-checkins mailing list