Dennis Preiser wrote:
> I've observed the following issue with mutt:
> 
> When multiple
> 
>       -----BEGIN PGP xyz——
>       -----END PGP xyz——
> 
> blocks are present and <check-traditional-pgp> (Esc P) was invoked, mutt
> leaves temporary files in $TMPDIR.
> 
> Root cause seems to be pgp.c:pgp_application_pgp_handler().  If multiple
> blocks are present (a signature and a public key; more then one public
> key etc.) mutt_mktemp() and safe_fopen() are called multiple times for
> tmpfname and outfile without closing and unlinking before.
> 
> Attached is a sample mbox file with two public key blocks.  To reproduce
> this issue open the mbox, invoke <check-traditional-pgp> (Esc P), quit
> mutt and inspect $TMPDIR.
> 
> The attached patch fixes this for me.

I slightly modified the patch and just pushed it up.

Thank you for the patch and sample mbox!

-Kevin

Attachment: signature.asc
Description: PGP signature

Reply via email to