From: Peter Maydell Date: Sun, 13 Nov 2005 23:57:49 +0000 (+0000) Subject: Pass some globals into sm_init() so that it uses SASL if necessary. X-Git-Tag: RELEASE_1_2~13 X-Git-Url: http://git.marmaro.de/?p=mmh;a=commitdiff_plain;h=eda249e4fdf983daef578a79a959d16dc9d5936e Pass some globals into sm_init() so that it uses SASL if necessary. [NB that as I do not have a SASL setup I am relying on (a) the patch being obviously correct and (b) the original submitter having tested!] --- diff --git a/ChangeLog b/ChangeLog index 6a7d58d..8679550 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,10 @@ takes up to a minute in some locking configurations and makes post very slow). + * patch #3913: uip/post.c: pass some globals into sm_init() so that + it uses SASL if necessary. (This bug was preventing Bcc'd emails + from being sent via SASL authenticated SMTP.) + 2005-11-13 Oliver Kiddle * bug #7833: uip/Makefile.in: remove link to install-mh that caused diff --git a/uip/post.c b/uip/post.c index 32888e6..aff49a0 100644 --- a/uip/post.c +++ b/uip/post.c @@ -1477,8 +1477,8 @@ verify_all_addresses (int talk) sigon (); if (!whomsw || checksw) - if (rp_isbad (retval = sm_init (clientsw, serversw, 0, 0, snoop, 0, - 0, 0, 0, 0)) + if (rp_isbad (retval = sm_init (clientsw, serversw, watch, verbose, snoop, 0, + queued, sasl, saslmech, user)) || rp_isbad (retval = sm_winit (smtpmode, from))) die (NULL, "problem initializing server; %s", rp_string (retval));