[Spambayes-checkins] spambayes/Outlook2000 filter.py,1.14,1.15

Mark Hammond mhammond at users.sourceforge.net
Mon Feb 3 20:00:12 EST 2003


Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1:/tmp/cvs-serv11384

Modified Files:
	filter.py 
Log Message:
Fix 677804 - exception when messages are "untouched".


Index: filter.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/filter.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** filter.py	24 Nov 2002 22:43:43 -0000	1.14
--- filter.py	4 Feb 2003 04:00:08 -0000	1.15
***************
*** 32,41 ****
              folder_id = getattr(config, attr_prefix + "_folder_id")
              action = getattr(config, attr_prefix + "_action").lower()
!             if action.startswith("no"):
                  pass
!             elif action.startswith("co"):
                  dest_folder = mgr.message_store.GetFolder(folder_id)
                  msg.CopyTo(dest_folder)
!             elif action.startswith("mo"):
                  dest_folder = mgr.message_store.GetFolder(folder_id)
                  msg.MoveTo(dest_folder)
--- 32,41 ----
              folder_id = getattr(config, attr_prefix + "_folder_id")
              action = getattr(config, attr_prefix + "_action").lower()
!             if action.startswith("un"): # untouched
                  pass
!             elif action.startswith("co"): # copied
                  dest_folder = mgr.message_store.GetFolder(folder_id)
                  msg.CopyTo(dest_folder)
!             elif action.startswith("mo"): # Moved
                  dest_folder = mgr.message_store.GetFolder(folder_id)
                  msg.MoveTo(dest_folder)





More information about the Spambayes-checkins mailing list