nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Wishlist: Extracting Attachments from Email.

2004-11-23 10:23:06
On Tue, 23 Nov 2004 12:38:20 GMT, Ralph Corderoy said:

Optionally, the extracted file may be better compressed along the way,
e.g. an embedded tar file becomes a reference tar.bz2 file if it's
smaller.

mhstore and a little scripting gets me the first half, it's the editing
the email to change the embedded file into a reference that's the issue.

This *does* break horribly for digital signatures - I suspect that both
an S/MIME and a PGP signature would be invalidated by changing the embedded
file into a reference.

Also, things get interesting if you try to forward the mail along with the
attachment - I do *not* think it would DTRT with the reference (in other
words, the recipient would just get a dangling reference, not the file.

The forwarding problem is probably solvable, I suspect that the digital
signature one is *not*, unless you find a way to reconstitute the original
on a byte-per-byte basis (and making sure that for the corner case of
a PGP or S/MIME signature that actually covers a *reference*, that we
do *not* expand the reference as that will also break the signature....)

Attachment: pgptlu7Oq9zxZ.pgp
Description: PGP signature

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers
<Prev in Thread] Current Thread [Next in Thread>