From: Rocco Rutte Date: Sun, 31 May 2009 12:46:40 +0000 (+0200) Subject: SMTP: Don't send "undisclosed-recipients" in RCPT TO X-Git-Tag: neomutt-20160307~621 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36a032565dbaf29a4dcd534c719f9a143a6125f1;p=neomutt SMTP: Don't send "undisclosed-recipients" in RCPT TO This happened for Bcc only messages. "undisclosed-recipients" is added in To: as guard against MTAs that leak BCCs if no To:/Cc: header is given. See Debian #529090. --- diff --git a/ChangeLog b/ChangeLog index 7d87b046d..30733f7a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-05-31 13:19 +0200 Rocco Rutte (9594f10d2038) + + * init.h: Document that $pager_context affects searching, too + +2009-05-31 13:00 +0200 Rocco Rutte (d5065254c2f1) + + * ChangeLog, UPDATING: Update UPDATING + 2009-05-31 12:54 +0200 Rocco Rutte (fdaed73dd66a) * handler.c: Turn trailing \r\n to \n for qp-encoded messages. diff --git a/smtp.c b/smtp.c index 487102ec1..dd05d8ae5 100644 --- a/smtp.c +++ b/smtp.c @@ -125,6 +125,12 @@ smtp_rcpt_to (CONNECTION * conn, const ADDRESS * a) while (a) { + if (!a->mailbox || ascii_strcasecmp (a->mailbox, + "undisclosed-recipients") == 0) + { + a = a->next; + continue; + } if (mutt_bit_isset (Capabilities, DSN) && DsnNotify) snprintf (buf, sizeof (buf), "RCPT TO:<%s> NOTIFY=%s\r\n", a->mailbox, DsnNotify);