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
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
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
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