Changeset 2367:e82324e4a922 for commands.c
- Timestamp:
- 2001-04-24 04:21:22 (8 years ago)
- Branch:
- HEAD
- Files:
-
- 1 modified
-
commands.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r2285 r2367 812 812 mutt_parse_content_type (buf, b); 813 813 814 /* inform the user */815 816 814 817 815 snprintf (tmp, sizeof (tmp), "%s/%s", TYPE (b), NONULL (b->subtype)); 818 816 type_changed = mutt_strcasecmp (tmp, obuf); 819 817 charset_changed = mutt_strcasecmp (charset, mutt_get_parameter ("charset", b->parameter)); 820 818 819 /* if in send mode, check for conversion - current setting is default. */ 820 821 if (!h && b->type == TYPETEXT && charset_changed) 822 { 823 snprintf (tmp, sizeof (tmp), _("Convert to %s upon sending?"), 824 mutt_get_parameter ("charset", b->parameter)); 825 b->noconv = !mutt_yesorno (tmp, !b->noconv); 826 } 827 828 /* inform the user */ 829 821 830 if (type_changed) 822 831 mutt_message (_("Content-Type changed to %s."), tmp); 823 832 else if (b->type == TYPETEXT && charset_changed) 824 mutt_message (_("Character set changed to %s."), 825 mutt_get_parameter ("charset", b->parameter)); 833 mutt_message (_("Character set changed to %s; %s."), 834 mutt_get_parameter ("charset", b->parameter), 835 b->noconv ? _("not converting") : _("converting")); 826 836 827 837 b->force_charset |= charset_changed ? 1 : 0; 828 838 829 839 if (!is_multipart (b) && b->parts) 830 840 mutt_free_body (&b->parts);
