Daniel Staal wrote,
| I have a simple problem: One of my email accounts has started to double
| newlines. That is, for every end of line in the original message, I get a
| whole blank line. This includes the headers. 'Flowed' messages have two
| lines between paragraphs, but the paragraphs themselves are fine.
| I did try the following recipe from the archives (which looked promising):
| :0fwbB
| * ^^()$|$$$.*$
| | sed /./,/^$/!d
| It didn't work, I'm sure you will know why. I'll work on figuring it out.
Having written it, I know why. It addresses another problem (collapsing runs of
two or more blank
lines to one blank line), and further it works only on the body.
| I'm sure this is a fairly simple problem, but I'm a relative UNIX newbie,
| so I'm not sure exactly how to do it. Eventually I could probably figure
| it out, but I want my email to be readable again before that...
Here's something to try (untested):
:0HBfw
* ()$$$.|^^.+$$
| sed -e '/./,/^$/ {' -e '/^$/d' -e '}'
It looks for two consecutive blank lines anywhere except the end, or a blank
line after the top line of the head; if it finds either, it runs the whole
message through a sed script that deletes the first blank line of every group of
one or more blank lines.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail