email scanning for X-Spam-Score

skip at pobox.com skip at pobox.com
Tue May 26 08:12:04 EDT 2009


    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 - skip at pobox.com - http://www.smontanaro.net/
    America's vaunted "free press" notwithstanding, story ideas that expose
    the unseemly side of actual or potential advertisers tend to fall by the
    wayside.  Not quite sure why.  -- Jim Thornton



More information about the Python-list mailing list