summaryrefslogtreecommitdiffstats
path: root/account.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2007-02-24 06:37:31 +0000
committerBrendan Cully <brendan@kublai.com>2007-02-24 06:37:31 +0000
commit4ff42217b5077e8d0f605a0b61e663a89443e60e (patch)
treec723076969a6cba57d22f705fd725ee1dcd169a6 /account.c
parent5c8b3868f8fe9d2665fa1030e8ac1b1892f56b11 (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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/account.c b/account.c
index d53d304d..c5cd33ee 100644
--- a/account.c
+++ b/account.c
@@ -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;