summaryrefslogtreecommitdiffstats
path: root/compose.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-06-16 10:21:34 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-06-16 10:21:34 +0000
commit991910c8d3f70402713c4955fa4d11630cc6c995 (patch)
tree1b47a00251d84084936c4291a64748367d4385e1 /compose.c
parent974d192c10abc70a0bf5114eb0539a9bf1c3cbd8 (diff)
patch-1.3.3.tlr.change_charset.1
Diffstat (limited to 'compose.c')
-rw-r--r--compose.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/compose.c b/compose.c
index 18a5a824..62231d52 100644
--- a/compose.c
+++ b/compose.c
@@ -386,33 +386,6 @@ static void update_idx (MUTTMENU *menu, ATTACHPTR **idx, short idxlen)
return;
}
-static int change_attachment_charset (BODY *b)
-{
- char buff[SHORT_STRING];
- iconv_t cd;
-
- if (!mutt_is_text_type (b->type, b->subtype))
- {
- mutt_error _("Can't change character set for non-text attachments!");
- return 0;
- }
-
- mutt_get_send_charset (buff, sizeof(buff), b, 0);
-
- if (mutt_get_field (_("Enter character set: "), buff, sizeof(buff), 0) == -1)
- return 0;
-
- if ((cd = mutt_iconv_open (buff, "us-ascii")) == (iconv_t)-1)
- {
- mutt_error (_("Character set %s is unknown."), buff);
- return 0;
- }
- else
- iconv_close (cd);
-
- mutt_set_body_charset (b, buff);
- return REDRAW_CURRENT;
-}
/*
* cum_attachs_size: Cumulative Attachments Size
@@ -869,11 +842,6 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */
menu->redraw |= REDRAW_STATUS;
break;
- case OP_COMPOSE_CHANGE_CHARSET:
- CHECK_COUNT;
- menu->redraw = change_attachment_charset(idx[menu->current]->content);
- break;
-
#define CURRENT idx[menu->current]->content
case OP_COMPOSE_TOGGLE_RECODE: