diff options
author | Brendan Cully <brendan@kublai.com> | 2007-02-24 06:37:31 +0000 |
---|---|---|
committer | Brendan Cully <brendan@kublai.com> | 2007-02-24 06:37:31 +0000 |
commit | 4ff42217b5077e8d0f605a0b61e663a89443e60e (patch) | |
tree | c723076969a6cba57d22f705fd725ee1dcd169a6 /account.c | |
parent | 5c8b3868f8fe9d2665fa1030e8ac1b1892f56b11 (diff) |
This patch adds ESMTP relay support to mutt.
To use, set $smtp_url to the address of your smtp relay, in the form:
smtp[s]://[user[:password]@]host[:port]/
where port defaults to 25 for smtp and 465 for smtps.
You can also set $smtp_authenticators to control which methods mutt
will attempt to use during authentication. See $imap_authenticators
for details.
Diffstat (limited to 'account.c')
-rw-r--r-- | account.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -123,6 +123,16 @@ void mutt_account_tourl (ACCOUNT* account, ciss_url_t* url) } #endif +#ifdef USE_SMTP + if (account->type == M_ACCT_TYPE_SMTP) + { + if (account->flags & M_ACCT_SSL) + url->scheme = U_SMTPS; + else + url->scheme = U_SMTP; + } +#endif + url->host = account->host; if (account->flags & M_ACCT_PORT) url->port = account->port; |