[H-GEN] Reading signed emails using OE

Michael Anthon michael at anthon.net
Tue Jun 3 12:17:00 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

I had a problem that's been nagging me for a while, that of OE not correctly
showing signed emails from various MUAs (mostly seems to be mutt).
Everything I have found indicates this is a problem with OE's compliance
with certain RFCs which isn't terribly surprising [1] so I figured out a
procmail recipe that "fixes" the messages (I hope).  The basic idea is to
rewrite the Content-Type header from

Content-Type: multipart/signed; micalg=pgp-sha1;
        protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF"

to

Content-Type: multipart/mixed; boundary="h31gzZEtNLTqOjlF"

Anyway, the recipe I came up with is this...

:0 H
* ^Content-Type: multipart/signed
{
  BOUNDARY=`formail -x Content-Type -c | sed -e
's/.*boundary="\([^"]\+\)"/\1/'`

  :0 Afhw
  |formail -i "Content-Type: multipart/mixed; boundary=\"$BOUNDARY\""
}

This seems to work for the test message I was passing through it.  Can
anyone see a problem with this or maybe a "better" way to do it?

Cheers
Michael

[1] Apparently it's not the only one that suffers from this problem either,
I found reports of the OSX Mail.App also exhibiting similar issues.


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list