[Spambayes-checkins] spambayes/spambayes UserInterface.py, 1.46,
1.46.4.1
Tony Meyer
anadelonbrin at users.sourceforge.net
Thu Jun 10 01:12:46 EDT 2004
Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24347/spambayes
Modified Files:
Tag: release_1_0-branch
UserInterface.py
Log Message:
Backport IndexError fix (this is very minor and stops the bug report from functioning).
Index: UserInterface.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/UserInterface.py,v
retrieving revision 1.46
retrieving revision 1.46.4.1
diff -C2 -d -r1.46 -r1.46.4.1
*** UserInterface.py 22 Feb 2004 02:41:50 -0000 1.46
--- UserInterface.py 10 Jun 2004 05:12:43 -0000 1.46.4.1
***************
*** 1046,1053 ****
% (sb_ver, sb_type, py_ver, os_name,
self.classifier.nham, self.classifier.nspam)
! domain_guess = options["pop3proxy", "remote_servers"][0]
! for pre in ["pop.", "pop3.", "mail.",]:
! if domain_guess.startswith(pre):
! domain_guess = domain_guess[len(pre):]
report.from_addr.value = "[YOUR EMAIL ADDRESS]@%s" % (domain_guess,)
report.subject.value = "Problem with %s: [PROBLEM SUMMARY]" % \
--- 1046,1057 ----
% (sb_ver, sb_type, py_ver, os_name,
self.classifier.nham, self.classifier.nspam)
! remote_servers = options["pop3proxy", "remote_servers"]
! if remote_servers:
! domain_guess = remote_servers[0]
! for pre in ["pop.", "pop3.", "mail.",]:
! if domain_guess.startswith(pre):
! domain_guess = domain_guess[len(pre):]
! else:
! domain_guess = "[YOUR ISP]"
report.from_addr.value = "[YOUR EMAIL ADDRESS]@%s" % (domain_guess,)
report.subject.value = "Problem with %s: [PROBLEM SUMMARY]" % \
More information about the Spambayes-checkins
mailing list