in reply to Using Email::MIME

Never used Email::MIME, but I am a bit familiar with xpath. Maybe //plain[1] instead of //plain would help?

Replies are listed 'Best First'.
Re^2: Using Email::MIME
by Anonymous Monk on Aug 28, 2010 at 00:14 UTC
    That worked for the problematic e-mail, but with that change the other e-mails didn't get read in. Actually I had to use plain[0]. However for an e-mail without attachments, this just fails. So I thought I could search for "plain[0]" first and then "plain", but that seemed to just use the "plain" logic.