Dennis Preiser wrote: > 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.
Hi Dennis, Thanks for the bug report and the patch. I'll try to take a closer look at this later this week. One small comment I'd make is that safe_fclose() nulls-out the passed in parameter, so I think it would be better to leave the close/unlink inside the "out:" label area, rather than moving it inside that "Could not decrypt" error block. -Kevin
signature.asc
Description: PGP signature
