<<< Date Index >>>     <<< Thread Index >>>

Re: Deleting attachment from signed email



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday, November 23 at 11:53 AM, quoth Stefan Klinger:
>> If you REALLY REALLY want to delete the attachment and you don't 
>> care about invalidating the signature, you can edit the email with 
>> your text editor (press E).
>
> This is not an option for me. The signature seems to be an attachment itself, 
> and I certainly don't want to hack into the MIME structure. 

Fair enough.

> How can I remove the signature? As said, it's an attachment wihich I 
> failed to delete due to it's own presence.

Mutt has a few helpful functions (that you can bind to keys) that may 
be useful for addressing this sort of problem. Namely, there's 
decrypt-save and decode-save. You can bind them to keys like this:

    bind index \eC decode-save # press escape-C to trigger

In the index, if you type a question mark, mutt will show you what 
keys are bound to what functions. The tricky bit is that decode-save 
can remove all the headers and such, depending on your other mutt 
options (I think there's a combination that can be used to preserve 
the headers, but I'd have to dig through the documentation to figure 
it out). decrypt-save Might be more to your liking, but it only strips 
out encrypted messages (i.e. I don't think it will take signing off of 
a message). However, it probably relies on $pgp_decrypt_command, which 
you can fiddle with to maybe get what you want done.

Good luck! hope that helps

~Kyle
- -- 
How can you expect to enjoy life without heartily disliking a good 
many people?
                                                        -- Cary Tennis
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFHRwdVBkIOoMqOI14RAlXYAKCd85GmOf1NvDEcSiAtnKZbe/G7RQCdFfWC
GTp3kvvK4VjvI5GxDujMZtc=
=3q6q
-----END PGP SIGNATURE-----