[Spambayes-checkins] spambayes/Outlook2000 filter.py,1.35,1.36
Mark Hammond
mhammond at users.sourceforge.net
Sun Oct 26 22:35:01 EST 2003
Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1:/tmp/cvs-serv2017
Modified Files:
filter.py
Log Message:
Add some log messages indicating what folder the filter is moving/copying
to (including if it is configured to "not touch" the message)
Index: filter.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/filter.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** filter.py 2 Oct 2003 17:47:39 -0000 1.35
--- filter.py 27 Oct 2003 03:34:59 -0000 1.36
***************
*** 59,63 ****
msg.SetReadState(True)
if action.startswith("un"): # untouched
! pass
elif action.startswith("co"): # copied
try:
--- 59,63 ----
msg.SetReadState(True)
if action.startswith("un"): # untouched
! mgr.LogDebug(1, "Not touching message '%s'" % msg.subject)
elif action.startswith("co"): # copied
try:
***************
*** 68,71 ****
--- 68,73 ----
else:
msg.CopyToReportingError(mgr, dest_folder)
+ mgr.LogDebug(1, "Copied message '%s' to folder '%s'" \
+ % (msg.subject, dest_folder.GetFQName()))
elif action.startswith("mo"): # Moved
try:
***************
*** 76,79 ****
--- 78,83 ----
else:
msg.MoveToReportingError(mgr, dest_folder)
+ mgr.LogDebug(1, "Moved message '%s' to folder '%s'" \
+ % (msg.subject, dest_folder.GetFQName()))
else:
raise RuntimeError, "Eeek - bad action '%r'" % (action,)
More information about the Spambayes-checkins
mailing list