]> granicus.if.org Git - mutt/commitdiff
Fixing some nits.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 3 Mar 2003 14:25:14 +0000 (14:25 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 3 Mar 2003 14:25:14 +0000 (14:25 +0000)
copy.c
sort.c

diff --git a/copy.c b/copy.c
index fc148c316b1336275539501645e26387250317ed..06a89f77469a4c190561a82c5ea4ea6d9576a8c6 100644 (file)
--- a/copy.c
+++ b/copy.c
@@ -827,6 +827,13 @@ static int address_header_decode (char **h)
       l = 7;
       break;
     }
+    case 't':
+    {
+      if (ascii_strncasecmp (s, "to:", 3))
+       return 0;
+      l = 3;
+      break;
+    }
     case 'm':
     {
       if (ascii_strncasecmp (s, "mail-followup-to:", 17))
diff --git a/sort.c b/sort.c
index fcadd76a2f1e73bb5294b44278b143a4bb62e0d1..f49b686a2b4304c3afbb9278979726fa76933e26 100644 (file)
--- a/sort.c
+++ b/sort.c
@@ -18,6 +18,7 @@
 
 #include "mutt.h"
 #include "sort.h"
+#include "mutt_idna.h"
 
 #include <stdlib.h>
 #include <string.h>
@@ -96,7 +97,7 @@ char *mutt_get_name (ADDRESS *a)
     else if (a->personal)
       return a->personal;
     else if (a->mailbox)
-      return (a->mailbox);
+      return (mutt_addr_for_display (a));
   }
   /* don't return NULL to avoid segfault when printing/comparing */
   return ("");