[Spambayes-checkins] spambayes/spambayes XMLRPCPlugin.py, 1.1.2.8,	1.1.2.9 Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv4360

Modified Files:
      Tag: CORESVR
	XMLRPCPlugin.py 
Log Message:
Add a From: header and content type for the main form items.


Index: XMLRPCPlugin.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/Attic/XMLRPCPlugin.py,v
retrieving revision 1.1.2.8
retrieving revision 1.1.2.9
diff -C2 -d -r1.1.2.8 -r1.1.2.9
*** XMLRPCPlugin.py	6 Jun 2007 22:24:17 -0000	1.1.2.8
--- XMLRPCPlugin.py	6 Jun 2007 23:29:13 -0000	1.1.2.9
***************
*** 134,140 ****
      msg.set_type("multipart/digest")
      msg.add_header("Subject", "Form submission")
  
      main = Message.Message()
!     main.set_payload(" ".join(["%s:%s" % (k, v) for (k, v) in form.items()]))
      msg.attach(main)
  
--- 134,142 ----
      msg.set_type("multipart/digest")
      msg.add_header("Subject", "Form submission")
+     msg.add_header("From", "SpamBayes XMLRPC Plugin ")
  
      main = Message.Message()
!     main.set_type("text/plain")
!     main.set_payload("\\n".join(["%s:%s" % (k, v) for (k, v) in form.items()]))
      msg.attach(main)
  

_______________________________________________
Spambayes-checkins mailing list
pnperxdpv-sarswdlp@python.org
http://mail.python.org/mailman/listinfo/spambayes-checkins


