]> diplodocus.org Git - nmh/blobdiff - sbr/mts.c
Note that %(myname) truncates the GECOS field at the first comma, if
[nmh] / sbr / mts.c
index c5291565c16ad25f840125efcf40bab1c0487434..b529d15f7ffd3c3f88f2bdd427832ded64be57c4 100644 (file)
--- a/sbr/mts.c
+++ b/sbr/mts.c
@@ -395,16 +395,10 @@ getuserinfo (void)
     else if ((cp = context_find("Signature")))
        strncpy (fullname, cp, sizeof(fullname));
 
-    if (strchr(fullname, '.')) {               /*  quote any .'s */
-       char tmp[BUFSIZ];
-
-       /* should quote "'s too */
-       snprintf (tmp, sizeof(tmp), "\"%s\"", fullname);
-       strncpy (fullname, tmp, sizeof(fullname));
-    }
-
     fullname[sizeof(fullname) - 1] = '\0';
 
+    escape_display_name(fullname, sizeof(fullname));
+
     localmbox[0] = '\0';
 
     return;