[Dovecot] SOT: Removing _extra_ linefeeds from MSOutlook(?) messages
I realize this is sorta off topic but my searches using Google have got me mostly no where. So I thought I'd ask here as there is a lot of _past Postfix_ mail handling issues discussed.
The issue is; I have to deal with a lot of messages that come from MS Outlook users and sometimes they are replies to replies to replies ... My reading indicates it has a little to do with HTML composed messages and the format=flowed declaration.
This produces messages with *lot* of extra line feeds. Makes the messages nearly unreadable -- in Thunderbird. I'm sure others have got two line (sentence) messages that took 6+ lines to display. Then when they are replies or forwards it is even more. Every line gets two NLs/CRLFs.
Anyone have a suggestion of how to _strip_ multiple line feeds from a message? Is there a sieve method/way? I don't want to fiddle with all the users emails just my own.
Pointers, ideas, clues?
\\||/ Rod
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 20 Aug 2009, Roderick A. Anderson wrote:
Anyone have a suggestion of how to _strip_ multiple line feeds from a message? Is there a sieve method/way? I don't want to fiddle with all the users emails just my own.
Pointers, ideas, clues?
Hmm, you could prepend a filter before you LDA.
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSo5hIHWSIuGy1ktrAQKoTQf/QN/FHBVUotsm8Cd+m2L6MK4vuha2WrON XA5fHszgtJoOeK0IWr8bqPstLsrvi1ZcjfIVtKbjDJzJUH2084fgyWOXiJ6u0Y8U /2LyvpfXnJSnCc50LjBUiE3zI2H9dsuzvH2K11zxRxRlCf6rOotPqvo/PWbNXE1M sNIjTUiW3AN9IePojlehEY6NYceYM9iThoaHO5JiEivPfTru8tYGLeUlA+7FqI0J 3tHyNkjvRD1E20KnMSxNzh02oaZU4n5cJziwJ5XcWzwPfoRC4R9L5+gXVo1ikcOV 1k1n0rwtSreE1jRO9LCy5cxRlJtAhwcIO1ojm/IYpMLBt/JKQ9RFQA== =jnFA -----END PGP SIGNATURE-----
Steffen Kaiser wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 20 Aug 2009, Roderick A. Anderson wrote:
Anyone have a suggestion of how to _strip_ multiple line feeds from a message? Is there a sieve method/way? I don't want to fiddle with all the users emails just my own.
Pointers, ideas, clues?
Hmm, you could prepend a filter before you LDA.
Except it would, without lots of fiddling, affect all users. I'm kind of heading towards me and my accounts only.
\\||/ Rod
Bye,
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSo5hIHWSIuGy1ktrAQKoTQf/QN/FHBVUotsm8Cd+m2L6MK4vuha2WrON XA5fHszgtJoOeK0IWr8bqPstLsrvi1ZcjfIVtKbjDJzJUH2084fgyWOXiJ6u0Y8U /2LyvpfXnJSnCc50LjBUiE3zI2H9dsuzvH2K11zxRxRlCf6rOotPqvo/PWbNXE1M sNIjTUiW3AN9IePojlehEY6NYceYM9iThoaHO5JiEivPfTru8tYGLeUlA+7FqI0J 3tHyNkjvRD1E20KnMSxNzh02oaZU4n5cJziwJ5XcWzwPfoRC4R9L5+gXVo1ikcOV 1k1n0rwtSreE1jRO9LCy5cxRlJtAhwcIO1ojm/IYpMLBt/JKQ9RFQA== =jnFA -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sat, 22 Aug 2009, Roderick A. Anderson wrote:
Anyone have a suggestion of how to _strip_ multiple line feeds from a message? Is there a sieve method/way? I don't want to fiddle with all the users emails just my own.
Pointers, ideas, clues?
Hmm, you could prepend a filter before you LDA.
Except it would, without lots of fiddling, affect all users. I'm kind of heading towards me and my accounts only.
The filter could be user-aware, but it's not nice, I agree.
===
Can you forward to a local program? Traditionally, this can be achieved by:
echo '"| /some/script_or_binary args"' >> ~user/.forward
So it would effect just this account.
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSpKAF3WSIuGy1ktrAQKPDQgAm7Ugxr1sgJKFex7nxASk7D41qqC/tjPv EdQ7/Z8jy7TL35C5RSuuPKS/0k5T0vaA0f8EoSZIjfAHRPVXJpjyKwzs6Ysb7jVF BdvXJm8f7OlZaFT0UJlRhKQ2+8YO36jPEENhW4n8gCGvCa1TVTqFO9A5zvCRZxB+ 7RdBUIi+ue6W9A7jxQ7Ju6zmwIoyzkMmPFmjLw49gA8/2NptaD7jmap9cpuqRNJ4 UDk6QZbjUhCZhFwHpvzoJELfulk5D1xh/RgpLU+kb7ly7+OSmDLbNMwXm+jfiH0m ngSbRveMcFEIftWlkGWQx3XvX5kIeoS2hpo/mQ80aaWGrLz8Pcjo6Q== =0d+9 -----END PGP SIGNATURE-----
participants (2)
-
Roderick A. Anderson
-
Steffen Kaiser