Re: MIME headers in Procmail
Stanisław Findeisen <[email protected]>
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <[email protected]> |
On 2011-07-08 04:59, John Levine wrote: > As I expect everyone is aware, you can use MIME hackery in mail > headers to include non-ASCII text in just about everything other than > the actual e-mail address. Writing patterns to match MIME stuff is > painful, since there's about a dozen character sets with somewhat > different encoding, and if they do base64 encoding, the coded values > change depending on where in the string the characters are. > > So it would be handy if there were an option to interpret all the MIME > and turn all the text into UTF-8 which (assuming they are 8 bit clean) > existing regex code should handle. > > Anyone done that? Thought about it? > > Regards, > John Levine, [email protected], Primary Perpetrator of "The Internet for Dummies", > Please consider the environment before reading this e-mail. http://jl.ly http://people.eisenbits.com/~stf/fsd/conv2047/ I am using this together with formail(1) to decode subject (or other) lines, grep them for strings, alter them and encode them back. -- http://people.eisenbits.com/~stf/ http://www.eisenbits.com/ OpenPGP: E3D9 C030 88F5 D254 434C 6683 17DD 22A0 8A3B 5CC0