]> granicus.if.org Git - neomutt/commitdiff
0. In compose mode, press Ctrl-t to change Content-Type.
authorTAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>
Thu, 27 Jan 2005 20:38:02 +0000 (20:38 +0000)
committerTAKAHASHI Tamotsu <ttakah@lapis.plala.or.jp>
Thu, 27 Jan 2005 20:38:02 +0000 (20:38 +0000)
1. Type "application/octet-stream" for example.
2. Press Ctrl-t again.
3. Type "text/plain; charset=us-ascii"
4. You will be asked "Convert to us-ascii upon sending?"
5. Press y or n.
6. You will see a strange message:
 "Content-Type changed to Convert to us-ascii upon sending?."

commands.c

index 3dc6cdbb122822b03e5d5743ebf5a174841a2a6b..2417ea1d72f298c9373de4c81d599e8df401a1dc 100644 (file)
@@ -910,12 +910,17 @@ void mutt_edit_content_type (HEADER *h, BODY *b, FILE *fp)
 
   /* inform the user */
   
+  snprintf (tmp, sizeof (tmp), "%s/%s", TYPE (b), NONULL (b->subtype));
   if (type_changed)
     mutt_message (_("Content-Type changed to %s."), tmp);
-  else if (b->type == TYPETEXT && charset_changed)
+  if (b->type == TYPETEXT && charset_changed)
+  {
+    if (type_changed)
+      mutt_sleep (1);
     mutt_message (_("Character set changed to %s; %s."),
                  mutt_get_parameter ("charset", b->parameter),
                  b->noconv ? _("not converting") : _("converting"));
+  }
 
   b->force_charset |= charset_changed ? 1 : 0;