[Spambayes-checkins] spambayes/utilities extractmessages.py, 1.2,
1.3
Skip Montanaro
montanaro at users.sourceforge.net
Wed Jan 14 22:05:24 EST 2004
Update of /cvsroot/spambayes/spambayes/utilities
In directory sc8-pr-cvs1:/tmp/cvs-serv10971
Modified Files:
extractmessages.py
Log Message:
restart the message counter for each mailbox
Index: extractmessages.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/utilities/extractmessages.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** extractmessages.py 6 Jan 2004 15:45:10 -0000 1.2
--- extractmessages.py 15 Jan 2004 03:05:22 -0000 1.3
***************
*** 37,41 ****
def extractmessages(features, mapdb, hamfile, spamfile):
"""extract messages which contain given features"""
- i = 0
hamids = {}
spamids = {}
--- 37,40 ----
***************
*** 56,61 ****
# now run through each mailbox in hamids and spamids and print
# matching messages to relevant ham or spam files
- i = 0
for mailfile in hamids:
msgids = hamids[mailfile]
for msg in getmbox(mailfile):
--- 55,60 ----
# now run through each mailbox in hamids and spamids and print
# matching messages to relevant ham or spam files
for mailfile in hamids:
+ i = 0
msgids = hamids[mailfile]
for msg in getmbox(mailfile):
***************
*** 68,71 ****
--- 67,71 ----
for mailfile in spamids:
+ i = 0
msgids = spamids[mailfile]
for msg in getmbox(mailfile):
More information about the Spambayes-checkins
mailing list