Update of /cvsroot/spambayes/spambayes/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26085/scripts
Modified Files:
sb_imapfilter.py
Log Message:
Maybe the fetch data has multiple parts, but the message numbers are the same.
Handle
that correctly.
Index: sb_imapfilter.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_imapfilter.py,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** sb_imapfilter.py 17 Dec 2004 00:38:45 -0000 1.47
--- sb_imapfilter.py 20 Dec 2004 02:49:47 -0000 1.48
***************
*** 387,391 ****
msg_data = self._extract_fetch_data(msg)
if msg_data:
! data[msg_data["message_number"]] = msg_data
return data
--- 387,396 ----
msg_data = self._extract_fetch_data(msg)
if msg_data:
! # Maybe there are two about the same message number!
! num = msg_data["message_number"]
! if num in data:
! data[num].update(msg_data)
! else:
! data[num] = msg_data
return data
_______________________________________________
Spambayes-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/spambayes-checkins