Update of /cvsroot/spambayes/spambayes/scripts
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31048

Modified Files:
      Tag: bnfilter_in_c_branch
        sb_bnserver.py 
Log Message:
Previously sb_bnfilter was always adding an dummy From line if it did not 
exist. One user reported it adding a second From line. This makes it behave the 
same as sb_filter; emit the From line in the output only if it existed in the 
input. Thanks to Peter Barker

Index: sb_bnserver.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_bnserver.py,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -C2 -d -r1.2.2.1 -r1.2.2.2
*** sb_bnserver.py      5 May 2004 21:58:44 -0000       1.2.2.1
--- sb_bnserver.py      12 Jun 2006 14:08:36 -0000      1.2.2.2
***************
*** 161,165 ****
          for action in actions:
              action(msg)
!         return mboxutils.as_string(msg, 1)
  
  
--- 161,165 ----
          for action in actions:
              action(msg)
!         return mboxutils.as_string(msg, msg.get_unixfrom() is not None)
  
  

_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins

Reply via email to