summaryrefslogtreecommitdiffstats
path: root/compose.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-10-14 22:57:56 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-10-14 22:57:56 +0000
commit1d7247612a8421a3161ed44cee3647a077a2436c (patch)
tree25a3f7584e020b313ebf030dcf817fd535c483af /compose.c
parentc6839ead9fe7dd4c5fae7e36f352d10631ba627a (diff)
Warn the user before sending out uuencoded attachments.
Diffstat (limited to 'compose.c')
-rw-r--r--compose.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/compose.c b/compose.c
index 6c3e8a7b..268619cc 100644
--- a/compose.c
+++ b/compose.c
@@ -814,8 +814,13 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */
{
if ((i = mutt_check_encoding (buf)) != ENCOTHER)
{
- idx[menu->current]->content->encoding = i;
- menu->redraw = REDRAW_CURRENT;
+ if(i != ENCUUENCODED ||
+ mutt_yesorno(_("This encoding is deprecated. Really use it?"), 0) == M_YES)
+ {
+ idx[menu->current]->content->encoding = i;
+ menu->redraw = REDRAW_CURRENT;
+ mutt_clear_error();
+ }
}
else
mutt_error _("Invalid encoding.");