]> diplodocus.org Git - nmh/blobdiff - sbr/credentials.c
mhlist: don't truncate anything when -verbose
[nmh] / sbr / credentials.c
index 9f3faa95eec3ee6c2efc872006167275436ab4cc..ae53a742b9b6ecc0f6bda3a63f2a791d585ce2a3 100644 (file)
@@ -49,9 +49,10 @@ nmh_get_credentials (char *host, char *user, int sasl, nmh_creds_t creds) {
 
     if (cred_style == NULL  ||  ! strcmp (cred_style, "legacy")) {
         if (sasl) {
+            creds->user = user == NULL  ?  getusername ()  :  user;
+
             /* This is what inc.c and msgchk.c used to contain. */
             /* Only inc.c and msgchk.c do this.  smtp.c doesn't. */
-            creds->user = user == NULL  ?  getusername ()  :  user;
             creds->password = getusername ();
         }
     } else if (! strncasecmp (cred_style, "file:", 5)) {