Re: Bug#302500: mutt: Even for unencrypted messages, "Deletion of attachments from encrypted messages is unsupported."
On Mon, 18 Apr 2005, Adeodato Simó wrote:
> * Chung-chieh Shan [Thu, 31 Mar 2005 21:55:13 -0500]:
> > I have an unencrypted message in my (maildir) inbox with an attachment.
> > If I hit "v" for view-attachments when I am already viewing the message,
> > then try to delete the attachment, Mutt complains that "Deletion of
> > attachments from encrypted messages is unsupported". Subsequently in
> > the same Mutt session, even if I hit "v" for view-attachments directly
> > from the index page, Mutt still complains when I try to delete the
> > attachment. If I start Mutt fresh, then I can delete the attachment.
Would you try the attached patch, though I haven't tested it?
--
tamo
diff -u ../mutt-1.5.9/recvattach.c ./recvattach.c
--- ../mutt-1.5.9/recvattach.c 2005-02-04 03:47:53.000000000 +0900
+++ ./recvattach.c 2005-04-19 22:54:26.000000000 +0900
@@ -1069,7 +1069,7 @@
}
#endif
- if (WithCrypto && hdr->security)
+ if (WithCrypto && (hdr->security & ~PGP_TRADITIONAL_CHECKED))
{
mutt_message _(
"Deletion of attachments from encrypted messages is unsupported.");