summaryrefslogtreecommitdiffstats
path: root/recvattach.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-09-23 10:35:41 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-09-23 10:35:41 +0000
commitefe8e2dc68640724d33f452b5cc98a0887baa8b4 (patch)
tree17c7efbd1bff548851afa9392cf027fa35497827 /recvattach.c
parent2eabb25219b5648b2e2da27492ef79fb833dfc81 (diff)
Disable recursive invocations of the attach-message function.
Diffstat (limited to 'recvattach.c')
-rw-r--r--recvattach.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/recvattach.c b/recvattach.c
index ef464769..1ac98c56 100644
--- a/recvattach.c
+++ b/recvattach.c
@@ -778,6 +778,14 @@ mutt_attach_display_loop (MUTTMENU *menu, int op, FILE *fp, ATTACHPTR **idx)
toggle_option (OPTWEED);
}
+
+#define CHECK_ATTACH if(option(OPTATTACHMSG)) \
+ {\
+ mutt_flushinp (); \
+ mutt_error ("Function not permitted in attach-message mode."); \
+ break; \
+ }
+
void mutt_view_attachments (HEADER *hdr)
{
@@ -962,6 +970,7 @@ void mutt_view_attachments (HEADER *hdr)
break;
case OP_BOUNCE_MESSAGE:
+ CHECK_ATTACH;
query_bounce_attachment (menu->tagprefix, menu->tagprefix ? cur : idx[menu->current]->content, hdr);
break;
@@ -970,7 +979,7 @@ void mutt_view_attachments (HEADER *hdr)
case OP_LIST_REPLY:
case OP_FORWARD_MESSAGE:
-
+ CHECK_ATTACH;
#ifdef _PGPPATH
if ((hdr->pgp & PGPENCRYPT) && hdr->content->type == TYPEMULTIPART)