procmail
[Top] [All Lists]

Re: line length recipe?

1998-03-05 13:59:11
Dave Robbins asked,

| I'm wondering if there is any recipe out there that would reformat
| any lines not beginning with a header, not beginning with a blank line
| or a tab and not beginning with standard indent prefixes such as ">".

I'm going to take "not beginning with a header" to mean "not in the head";
i.e., in the body, and "[a line] not beginning with a blank line" to mean
"not beginning with a space."

# brackets enclose caret,space,tab,greater-than,less-than,colon,pipe
:0Bbfw # seventy-nine dots on continuation line
* ^[^   ><:|]\
...............................................................................
| fold

You could also use fmt (with whatever options you like) to reformat the
entire body instead of fold (which works on individual lines).

<Prev in Thread] Current Thread [Next in Thread>