procmail
[Top] [All Lists]

Re: formail: wrapping lines?

2001-04-25 11:59:49
On Wed, Apr 25, 2001 at 01:19:06PM -0400, Bob Bernstein wrote:
Due to some issues arising out of the use of GPG with mutt, I added
this recipe (from mutt's website) to my .procmailrc:

:0
* !^Content-Type: message/
* !^Content-Type: multipart/
* !^Content-Type: application/pgp
{
        :0 fBw
        * ^-----BEGIN PGP MESSAGE-----
        * ^-----END PGP MESSAGE-----
        | formail \
            -i "Content-Type: application/pgp; format=text; x-action=encrypt"

        :0 fBw
        * ^-----BEGIN PGP SIGNED MESSAGE-----
        * ^-----BEGIN PGP SIGNATURE-----
        * ^-----END PGP SIGNATURE-----
        | formail \
            -i "Content-Type: application/pgp; format=text; x-action=sign"
}

This accomplished its nominal purpose, but it seems to introduce some
linewrapping. Some PGP 'Version:' lines are very long, for instance:

-----BEGIN PGP MESSAGE-----
Version: PGPsdk version 1.7.1 (C) 1997-1999 Network Associates, Inc. and its 
affiliated companies.

Since the addition of the above recipe, this line comes through now as:

-----BEGIN PGP MESSAGE-----
Version: PGPsdk version 1.7.1 (C) 1997-1999 Network Associates, Inc. and its
affiliated companies.

And GPG bombs out on the new - illegal - line:

[-- PGP output follows (current time: Sun Apr 22 12:27:16 2001) --]
gpg: invalid armor header: affiliated companies.

A couple of questions:

Is formail wrapping the line?

Hmmm... not that I know of. I use the same recipe as above
and have never had problems with it. Besides, all formail is
doing above is adding one or two short lines to the body.
Presumably it isn't doing anything else.

Should a recipe like the above come before, or after, the other
recipes in .procmailrc? (Mine are simple, and just sort one user's
mail into folders.)

Definately before the other stuff.

-- 
John Patton                      patton66(_at_)home(_dot_)com
Get my GnuPG public key: finger john(_at_)24(_dot_)22(_dot_)215(_dot_)225

"Blessed is the man who, having nothing to say,
abstains from giving us wordy evidence of the fact."
- George Eliot [Mary Ann Evans] (1819-1880)
_______________________________________________
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>