Re: email scanning for X-Spam-Score

2009-05-26 Thread skip
Helmut>mailmsg = email.message_from_string(msg) Helmut>SPAM_CORE = mailmsg['X-Spam-Score'] Maybe lower case? SPAM_CORE = mailmsg['x-spam-score'] -- Skip Montanaro - s...@pobox.com - http://www.smontanaro.net/ America's vaunted "free press" notwithstanding, story ideas th

email scanning for X-Spam-Score

2009-05-25 Thread Helmut Jarausch
Hi, my emails received from our mailing system contain a field like X-Spam-Score: -2.2 Given the full email message in 'msg' I've tried mailmsg = email.message_from_string(msg) SPAM_CORE = mailmsg['X-Spam-Score'] but it doesn't work. What am I missing? Many thanks for a hint, Helmut. -- H

Re: email scanning for X-Spam-Score

2009-05-25 Thread Helmut Jarausch
Peter Otten wrote: Helmut Jarausch wrote: my emails received from our mailing system contain a field like X-Spam-Score: -2.2 Given the full email message in 'msg' I've tried mailmsg = email.message_from_string(msg) SPAM_CORE = mailmsg['X-Spam-Score'] but it doesn't work. What do you m

Re: email scanning for X-Spam-Score

2009-05-25 Thread Peter Otten
Helmut Jarausch wrote: > my emails received from our mailing system contain a field like > > X-Spam-Score: -2.2 > > Given the full email message in 'msg' > I've tried >mailmsg = email.message_from_string(msg) >SPAM_CORE = mailmsg['X-Spam-Score'] > but it doesn't work. What do you mean b