Commit d7ef16c1 authored by Brendan Cully's avatar Brendan Cully

Add $smtp_pass (closes #2116)

parent 48777892
2007-04-11 07:37 -0700 Brendan Cully <brendan@kublai.com> (29faa739ed01)
2007-04-11 12:53 -0700 Brendan Cully <brendan@kublai.com> (cdac16f99c5f)
* doc/Makefile.am: Explicit -j1 breaks some versions of make (see
#2538)
* imap/util.c: Make imap_hcache_open robust against missing
idata->ctx
* imap/util.c: Do not attempt to parse idata->ctx->path if an explicit
path is given
......
......@@ -213,6 +213,10 @@ int mutt_account_getpass (ACCOUNT* account)
#ifdef USE_POP
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
{
......
......@@ -118,8 +118,9 @@ WHERE char *Shell;
WHERE char *Signature;
WHERE char *SimpleSearch;
#if USE_SMTP
WHERE char *SmtpUrl INITVAL (NULL);
WHERE char *SmtpAuthenticators INITVAL (NULL);
WHERE char *SmtpPass INITVAL (NULL);
WHERE char *SmtpUrl INITVAL (NULL);
#endif /* USE_SMTP */
WHERE char *Spoolfile;
WHERE char *SpamSep;
......
......@@ -2559,17 +2559,6 @@ struct option_t MuttVars[] = {
** a value of zero for this option suppresses the pause.
*/
#ifdef USE_SMTP
{ "smtp_url", DT_STR, R_NONE, UL &SmtpUrl, UL 0 },
/*
** .pp
** Defines the SMTP ``smart'' host where sent messages should relayed for
** delivery. This should take the form of an SMTP URL, eg:
** .pp
** smtp[s]://[user[:pass]@]host[:port]/
** .pp
** Setting this variable overrides the value of the ``$$sendmail''
** variable.
*/
# ifdef USE_SASL
{ "smtp_authenticators", DT_STR, R_NONE, UL &SmtpAuthenticators, UL 0 },
/*
......@@ -2585,6 +2574,27 @@ struct option_t MuttVars[] = {
** Example: set smtp_authenticators="digest-md5:cram-md5"
*/
# endif /* USE_SASL */
{ "smtp_pass", DT_STR, R_NONE, UL &SmtpPass, UL 0 },
/*
** .pp
** Specifies the password for your SMTP account. If \fIunset\fP, Mutt will
** prompt you for your password when you first send mail via SMTP.
** See ``$smtp_url'' to configure mutt to send mail via SMTP.
** \fBWarning\fP: you should only use this option when you are on a
** fairly secure machine, because the superuser can read your muttrc even
** if you are the only one who can read the file.
*/
{ "smtp_url", DT_STR, R_NONE, UL &SmtpUrl, UL 0 },
/*
** .pp
** Defines the SMTP ``smart'' host where sent messages should relayed for
** delivery. This should take the form of an SMTP URL, eg:
** .pp
** smtp[s]://[user[:pass]@]host[:port]/
** .pp
** Setting this variable overrides the value of the ``$$sendmail''
** variable.
*/
#endif /* USE_SMTP */
{ "sort", DT_SORT, R_INDEX|R_RESORT, UL &Sort, SORT_DATE },
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment