Log when appropriate if email delivery is skipped
The outgoing mail codepath skips delivery in three different cases:
* The message body is empty. This should never happen, so warn.
* The message has no recipients. This can happen if all intended
recipients have been filtered out by the EmailSender, for example
because none of them has a reasonable preferred email address.
Log to the info log in this case.
* The message has no recipients except for the sender. This is
perfectly normal, so don't log it.
Change-Id: Iccefd67940e482888d55e65e75eb9c17135ee993
1 file changed