diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2000-06-16 10:21:34 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2000-06-16 10:21:34 +0000 |
commit | 991910c8d3f70402713c4955fa4d11630cc6c995 (patch) | |
tree | 1b47a00251d84084936c4291a64748367d4385e1 /compose.c | |
parent | 974d192c10abc70a0bf5114eb0539a9bf1c3cbd8 (diff) |
patch-1.3.3.tlr.change_charset.1
Diffstat (limited to 'compose.c')
-rw-r--r-- | compose.c | 32 |
1 files changed, 0 insertions, 32 deletions
@@ -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: |