leah blogs

July 2013

20jul2013 · Summer of Scripts: 822par

822par is a wrapper around the powerful but obscure par text re-formatter to reformat e-mails without making them invalid.

It reformats the mail headers specially, creating continuation lines when needed, and filters the rest of the mail through par with appropriate settings.

% cat mail
Subject: This is a badly formatted mail with a very very long subject, in fact much more than 72 characters.

A nice quote:

> There once was a master programmer who wrote unstructured programs.  A 
> novice programmer,
> seeking to imitate him, also began to write unstructured programs.  
> When the novice asked
> the master to evaluate his progress, the master criticized him for 
> writing unstructured
> programs, saying: "What is appropriate for the master is not 
> appropriate for the novice.
> You must understand the Tao before transcending structure."
-- Geoffrey James, "The Tao of Programming"

% 822par mail
Subject: This is a badly formatted mail with a very very long subject, in
        fact much more than 72 characters.

A nice quote:

> There once was a master programmer who wrote unstructured programs.
> A novice programmer, seeking to imitate him, also began to write
> unstructured programs.  When the novice asked the master to evaluate
> his progress, the master criticized him for writing unstructured
> programs, saying: "What is appropriate for the master is not
> appropriate for the novice.  You must understand the Tao before
> transcending structure."
-- Geoffrey James, "The Tao of Programming"

NP: Die Schnitter—Traumgeburt

Copyright © 2004–2022