On Friday 26 May 2006 08:05, Peter Barker wrote:
> I simply
> replaced piping the messsages through sb_filter.py with piping through 
> sb_bnfilter.py. 

....

> Is this how sb_bnfilter is supposed to be used

Yes

> However this always inserted a second From (not From:)  

Interesting.

It looks like sb_filter will preserve any From line, but not insert one if it 
does not already exist. sb_bnfilter always includes one in its output.

I cant see why sb_bnfilter would insert a *second* From line. Or are you 
counting the "From:" header line as the second?

> sometimes confused KMail.

What confusion are you seeing? (I have been using sb_bnfilter with kmail since 
it was first developed without problem)

> and does this indicate a problem with sb_bnfilter or with KMail?

Try the attached patch to make sb_bnfilter behave the same as sb_filter.

-- 
Toby Dickenson
Index: sb_bnserver.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_bnserver.py,v
retrieving revision 1.2.2.1
diff -C3 -r1.2.2.1 sb_bnserver.py
*** sb_bnserver.py	5 May 2004 21:58:44 -0000	1.2.2.1
--- sb_bnserver.py	26 May 2006 13:24:57 -0000
***************
*** 160,166 ****
          msg = mboxutils.get_message(body)
          for action in actions:
              action(msg)
!         return mboxutils.as_string(msg, 1)
  
  
  def make_HammieFilter():
--- 160,166 ----
          msg = mboxutils.get_message(body)
          for action in actions:
              action(msg)
!         return mboxutils.as_string(msg, msg.get_unixfrom() is not None)
  
  
  def make_HammieFilter():
_______________________________________________
[email protected]
http://mail.python.org/mailman/listinfo/spambayes
Check the FAQ before asking: http://spambayes.sf.net/faq.html

Reply via email to