procmail recipe wanted: clearsigned -> detached signed mail
Waldemar Brodkorb
Waldemar Brodkorb <waldemar.brodkorb@web.de>
Mon Mar 12 13:57:11 2001
--OaZoDhBhXzo6bW1J
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Hello Christoph,
* Christoph Hertel wrote:
> Hi,
>
> a while ago (a year or so, maybe even on another ML, I'd be sorry for
> that :), in one of those clearsigned vs. detached/MIME-signed e-mail
> discussions, I read about a procmail recipe that rewrote a clearsigned
> e-mail in a MIME-message with a detached signature. At the time, I
> did not have the possibility to use procmail, but now..
>
> Did I just dream of this, or is there really something like it? Can
> somebody point me somewhere?
.procmailrc
--------------------------------------------------------------
MAILFILTER_PGP_ATTACHMENT=${HOME}/bin/mailfilter_pgp_attachment
# Get non-MIME encrypted and signed Messages
: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"
}
:0 fBw
* ^-----BEGIN PGP PUBLIC KEY BLOCK-----
* ^-----END PGP PUBLIC KEY BLOCK-----
| formail -i "Content-Type: application/pgp-keys; format=text;"
:0
* ^Content-Type: multipart/
{
:0 fBw
* ^-----BEGIN PGP MESSAGE-----
* ^-----END PGP MESSAGE-----
| $MAILFILTER_PGP_ATTACHMENT -
}
----------------------------------------------
mailfilter_pgp_attachment atached.
I hope 0.8 kbytes is not to much.
cya
Waldemar
--
* Packman! Ein neuer Service von L2L | (o_ *
* http://packman.links2linux.de | //\ *
* Linux rulez! ;-) | V_/_ *
* GnuPG-Key: 0xBE21BD90 | Tux: #155220 | ICQ: 64035650 *
--OaZoDhBhXzo6bW1J
Content-Type: application/x-bzip2
Content-Disposition: attachment; filename="mailfilter_pgp_attachment.bz2"
Content-Transfer-Encoding: base64
QlpoOTFBWSZTWWyZ5GwAAnxfgHwQff/gH/6r3w/////rQAMcDpqgAEETSAAZAaDQA9T1ADQA
NBoAHGTJoYjE0YBGAmEAYCaaNMjQDECpvVA0AAaAAANpDIAAAACRQmQTINRPEARqeSPU2UbK
aeobRDaNMmpvSkwDQNjBBq2DYNjTYbGWtQ+sJNRkKCM/jA97DY0vsyjdAgsfj9N88HxVanQr
eEEZ0kkDBKQ20IuRFEAN1civzpQqR+xCLKlkZVvi4wq5J6RYeAbS+QFEYHz5Tmaczx8xUrYX
tW+25YtW7zZlRDtgSF+N1u5Iyfz/Eosc8k5RzyM5pPHgjhuLhoi1uVx3ktqmmkZwcMIQndiI
rS9DOlgUL2DKZTWxmAgYgzAnLqBBiEu9IwUBArARgZisCIiOjZIVUho5XJ9G8KLil5dOEUcw
MRNo5Wcw3L1xOptqp4yvNbY2/kdAtOoLg0B+rA4O5XnGHm525NeUqSUQIyYLbIEQoAawPlhc
WAWBPkOJyKYZKjh9R2BoHpHKepwY5QiaEQhSyM5Icok5rbrl+ktZlQupjGlDjsrrCOoGAM8l
QQgAxgcFBaBwnbIFWDcB3O7xu6+i9l+61KNfQd5nuq/11BqIVvMb279TkIHWKsglxeXpIoyS
SVJgffnXd3583t9dfjGz3GPcVovZyZTE+yMguudF7FVS906PTUkvhqzX2GKuGxfDU4tvykEW
2H/QIWFSS7SBOyG/iagikPawSTuPDC9JZrD4nVIC6u8Rwj0Vm1HVMN7KFhvuuvcY222nDzKu
BEJ7e4ejP/ZY0zib3L94u2wtQBt6EjRlXbFZLN+AWUNORULtL933mazWIPUko3ZLHbgjJMJ9
jVFFAFOxF5SVTSYwYKaQ3osrNgS2UDYHABj5FjpwW61Y79giQ/ZAekzmjGqCg23YqKHCza+l
wlg27VckaFEkyC44K4rL4gtJ1x3W35o3b4t2gW38MYNDdGDwklwuueQolgidRUOSRz3K2Rmj
G+dSPmllsRh+714qlern6cCYLhxD8hjHmVQjKbqIKy3st20v/F3JFOFCQbJnkbA=
--OaZoDhBhXzo6bW1J--