gerrit/gerrit-patch-commonsnet
Shawn O. Pearce 340e2771be Move allowrcpt handling up to EmailSender to fix empty envelope
If nobody on the SMTP envelope was actually on the allowrcpt list,
we were still trying to push a message into the SMTP server but
it had no destinations.  All SMTP servers refuse to accept the
'DATA' command in this case, as there was no 'RCPT TO' before it.

The breakage occurred when I stopped CC'ing the sender of emails
by default.  This meant that I was no longer on the RCPT TO list
for a message in my test environment, but that was the only valid
address in the sendemail.allowrcpt configuration variable.

Change-Id: I2e1810d3e2a8e82aa96c93f2cfd9849f7bed6e8a
Signed-off-by: Shawn O. Pearce <sop@google.com>
2010-07-14 17:08:33 -07:00
..
.settings Rewrite our build as modular maven components 2009-11-11 16:54:06 -08:00
src/main/java/org/apache/commons/net/smtp Move allowrcpt handling up to EmailSender to fix empty envelope 2010-07-14 17:08:33 -07:00
.gitignore Rewrite our build as modular maven components 2009-11-11 16:54:06 -08:00
pom.xml Start 2.1.4 development 2010-06-21 17:41:54 -07:00