procmail
[Top] [All Lists]

Re: fmt to reformat body

2000-07-12 10:05:14
Try

:0
* ^From:(_dot_)*rex138(_at_)aol\(_dot_)com
{
  :0fhw
  | formail -I Content-Length:

  :0fbw
  | fmt
}

or maybe you can combine them

:0fw
* ^From:(_dot_)*rex138(_at_)aol\(_dot_)com
| formail -I Content-Length: | fmt

both recipes are untested.


On Tue, 11 Jul 2000, ProcMail wrote:

I often receive mail in which the sender's MUA is creating lines
longer than 80 characters.  Generally, I just use "pipe fmt"
in mailx to look at this but then I don't get it /bin/more'd.
If I wanted procmail to do this for me for a particular sender
already being filtered, how would I change the following simple
recipe to do the fmt and -not as important- change or delete
the now incorrect Content-Length header?

  :0c
  * ^From(_dot_)*rex138(_at_)aol(_dot_)com
  rex.king

Thanks for any help.

Dave Robbins


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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