diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-23 10:35:41 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-09-23 10:35:41 +0000 |
commit | efe8e2dc68640724d33f452b5cc98a0887baa8b4 (patch) | |
tree | 17c7efbd1bff548851afa9392cf027fa35497827 /recvattach.c | |
parent | 2eabb25219b5648b2e2da27492ef79fb833dfc81 (diff) |
Disable recursive invocations of the attach-message function.
Diffstat (limited to 'recvattach.c')
-rw-r--r-- | recvattach.c | 11 |
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) |