Changeset 5124:1367f9b7a091

Show
Ignore:
Timestamp:
2007-04-11 13:40:10 (20 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Add $smtp_pass (closes #2116)

Files:
4 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5122 r5124  
    1 2007-04-11 07:37 -0700  Brendan Cully  <brendan@kublai.com>  (29faa739ed01) 
     12007-04-11 12:53 -0700  Brendan Cully  <brendan@kublai.com>  (cdac16f99c5f) 
     2 
     3        * doc/Makefile.am: Explicit -j1 breaks some versions of make (see 
     4        #2538) 
     5 
     6        * imap/util.c: Make imap_hcache_open robust against missing 
     7        idata->ctx 
    28 
    39        * imap/util.c: Do not attempt to parse idata->ctx->path if an explicit 
  • account.c

    r4923 r5124  
    215215    strfcpy (account->pass, PopPass, sizeof (account->pass)); 
    216216#endif 
     217#ifdef USE_SMTP 
     218  else if ((account->type == M_ACCT_TYPE_SMTP) && SmtpPass) 
     219    strfcpy (account->pass, SmtpPass, sizeof (account->pass)); 
     220#endif 
    217221  else 
    218222  { 
  • globals.h

    r5064 r5124  
    119119WHERE char *SimpleSearch; 
    120120#if USE_SMTP 
     121WHERE char *SmtpAuthenticators INITVAL (NULL); 
     122WHERE char *SmtpPass INITVAL (NULL); 
    121123WHERE char *SmtpUrl INITVAL (NULL); 
    122 WHERE char *SmtpAuthenticators INITVAL (NULL); 
    123124#endif /* USE_SMTP */ 
    124125WHERE char *Spoolfile; 
  • init.h

    r5120 r5124  
    25602560  */ 
    25612561#ifdef USE_SMTP 
    2562   { "smtp_url",         DT_STR, R_NONE, UL &SmtpUrl, UL 0 }, 
    2563   /* 
    2564   ** .pp 
    2565   ** Defines the SMTP ``smart'' host where sent messages should relayed for 
    2566   ** delivery. This should take the form of an SMTP URL, eg: 
    2567   ** .pp 
    2568   **   smtp[s]://[user[:pass]@]host[:port]/ 
    2569   ** .pp 
    2570   ** Setting this variable overrides the value of the ``$$sendmail'' 
    2571   ** variable. 
    2572   */ 
    25732562# ifdef USE_SASL 
    25742563  { "smtp_authenticators", DT_STR, R_NONE, UL &SmtpAuthenticators, UL 0 }, 
     
    25862575   */ 
    25872576# endif /* USE_SASL */ 
     2577  { "smtp_pass",        DT_STR,  R_NONE, UL &SmtpPass, UL 0 }, 
     2578  /* 
     2579  ** .pp 
     2580  ** Specifies the password for your SMTP account.  If \fIunset\fP, Mutt will 
     2581  ** prompt you for your password when you first send mail via SMTP. 
     2582  ** See ``$smtp_url'' to configure mutt to send mail via SMTP. 
     2583  ** \fBWarning\fP: you should only use this option when you are on a 
     2584  ** fairly secure machine, because the superuser can read your muttrc even 
     2585  ** if you are the only one who can read the file. 
     2586  */ 
     2587  { "smtp_url",         DT_STR, R_NONE, UL &SmtpUrl, UL 0 }, 
     2588  /* 
     2589  ** .pp 
     2590  ** Defines the SMTP ``smart'' host where sent messages should relayed for 
     2591  ** delivery. This should take the form of an SMTP URL, eg: 
     2592  ** .pp 
     2593  **   smtp[s]://[user[:pass]@]host[:port]/ 
     2594  ** .pp 
     2595  ** Setting this variable overrides the value of the ``$$sendmail'' 
     2596  ** variable. 
     2597  */ 
    25882598#endif /* USE_SMTP */ 
    25892599  { "sort",             DT_SORT, R_INDEX|R_RESORT, UL &Sort, SORT_DATE },