Re: Procmail filtering question
Peter Pentchev <[email protected]>
| Newsgroups | gmane.mail.fetchmail.user |
|---|---|
| Message-ID | <[email protected]> |
On Wed, May 27, 2020 at 11:53:07AM +0100, Richard Kimber wrote: > On Tue, 26 May 2020 16:39:04 +0300 > Peter Pentchev <[email protected]> wrote: > > > Unfortunately, this is the most "normal" of the formats that you are > > going to get with e-mail. Since none of the software that generates or > > reformats e-mail messages along the way has any idea what other > > software will be used to accept, transfer, or process the message, > > none of it can rely on anything else being able to process anything > > other than "simple" plain text with all characters being in the > > US-ASCII character set. Thus, if somebody wants to include, say, a > > pretty long dash or chevrons, the only way to do that is to use a > > special format for encoding them, a special format for saying "this > > here is a character that is outside the US-ASCII character set, I'll > > tell you how it is represented in UTF-8, but since its UTF-8 > > representation itself depends on bytes that are outside the US-ASCII > > character set, here's a marker that says that the next couple of > > characters are base64-encoded representations of UTF-8 encoded > > characters". > > > > Anything that wants to process e-mail messages the way they are to be > > displayed to the end-user should be able to decode MIME-encoded > > content, including MIME-encoded header fields. And... unfortunately, > > here we come once again to the "procmail is kind of outdated, it does > > not really support a couple of things that are sort of essential in > > the current world, is there any way you might switch to other > > message-filtering software?" For example, it looks like at least > > courier-maildrop may be configured to parse MIME-encoded headers: > > http://courier-mail-server.10983.n7.nabble.com/Filtering-mails-with-UTF-8-headers-td18177.html > > (and yes, I know that switching the mail filtering program is not > > trivial at all, but procmail also has other problems, some of which > > people have become accustomed to working around for decades...) > > Thanks. > > I was wondering, though, whether one could do something like > mda '/usr/bin/formail -s <program that converts to ascii> | procmail' > in the .fetchmailrc file. ...but the whole point is that this encoding means that the subject contains non-ASCII characters. There is no way to convert them to ASCII. G'luck, Peter -- Peter Pentchev [email protected] [email protected] [email protected] PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13 _______________________________________________ Fetchmail-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fetchmail-users
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAl7OUA8ACgkQZR7vsCUn 3xNqnw//WIt3p0gPBrWMfsZgVlsLNuBKvt1rVzJEUYFGWfiPR0VDQeVBBrDhzTJz 44T8wiAos5d4iTgbwmijxWJSrD9iKl4AWPQFxzbCeubBGKwUwdpAFfKrb+v193ko JxUeuub1bZ+g8Rcn8AalMG2aggj0q9D9d/RKClCnaycWNtLOjojudeCSC4DvrlYf RrS2Tk5LiYype83c2NYnu2uqCB/bR2Bt4fLzy8OdiEZb3ACnuNf9hIAD9KXYw/LS KMtzaTuLO6AI0VwJbtujn2P4/fYKnZATo/tAxoU2IGQoDQjwKLXZOct7VnaF+ji3 yAyjyku96QWKWJv82WALBAGMinbLSGgPQ99G78FKblrj2h2toSzdRMZGTg68VQfo P9FbARg0oGsJk8jQv5P3J6IXfk5AeQaFmrqKU74pwluFctdFdzJbDh9hJhE0R2I3 8egabm1aF0hBqTeuHdWMm/LX8P7bjwu9xZpuQeNzuNgD4qdT2DT19hYmuM1mhGwn raXi0AQkCANWbNEWn/sf/7cABkdFCGlcP5iRQEX71hufKjyJfKKif/06bPzIBnHC rnbBXLpMeastImc/4uQ/o2XuWsx2FqbQQvrN9o81gDEkeMEEnlr8wrpaESPmnf+8 Z1xMat8qHz+frS7luiz717HAWQrbc3FVl18c6NsazyxqlHuB6+E= =tZRu -----END PGP SIGNATURE-----