Re: Finding key-value pairs in email body [Plain Text version]
Bart Schaefer <[email protected]>
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <CABkvzcuLqtoACaZ=MGhgu4E+xJ_iL=UxYL19Piz=3yQGdx_qEQ@mail.gmail.com> |
The email in your "noname.eml" attachment is base64 encoded, so the original content is completely obscured. Procmail does not decode base64 without help from an outside process; you will need to send the messages through a decoder before examining them with your recipe. There may even be a program named "base64" installed on your system, or you can use the perl MIME::Base64 module, etc. http://www.well.com/user/barts/email/mimepart.txt may be helpful in pulling out one part of the message to then decode. Your attachment actually has two parts, one text/plain and one text/html, so you probably want to extract the text/plain part, decode it, and then examine the decoded text.