summaryrefslogtreecommitdiffstats
path: root/account.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2007-04-11 13:40:10 -0700
committerBrendan Cully <brendan@kublai.com>2007-04-11 13:40:10 -0700
commitd7ef16c1c10a483af8513951bcc3201ea4e0cb6a (patch)
tree1ae20b3b142385b6445b7362e6738e0286de1235 /account.c
parent4877789259d2906da35870c20fd71ec0b81b15a3 (diff)
Add $smtp_pass (closes #2116)
Diffstat (limited to 'account.c')
-rw-r--r--account.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/account.c b/account.c
index 99951e25..ca65754d 100644
--- a/account.c
+++ b/account.c
@@ -214,6 +214,10 @@ int mutt_account_getpass (ACCOUNT* account)
else if ((account->type == M_ACCT_TYPE_POP) && PopPass)
strfcpy (account->pass, PopPass, sizeof (account->pass));
#endif
+#ifdef USE_SMTP
+ else if ((account->type == M_ACCT_TYPE_SMTP) && SmtpPass)
+ strfcpy (account->pass, SmtpPass, sizeof (account->pass));
+#endif
else
{
snprintf (prompt, sizeof (prompt), _("Password for %s@%s: "),