mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 22:21:18 +00:00
Undisclosed-Recipients:
This commit is contained in:
parent
8a764dc963
commit
fa40e17af2
1 changed files with 4 additions and 1 deletions
|
@ -383,8 +383,11 @@ public class MessageHelper {
|
|||
if (message.cc != null && message.cc.length > 0)
|
||||
imessage.setRecipients(Message.RecipientType.CC, convertAddress(message.cc, identity));
|
||||
|
||||
if (message.bcc != null && message.bcc.length > 0)
|
||||
if (message.bcc != null && message.bcc.length > 0) {
|
||||
if (false && (message.to == null || message.to.length == 0))
|
||||
imessage.setRecipients(Message.RecipientType.TO, InternetAddress.parse("Undisclosed-Recipients:"));
|
||||
imessage.setRecipients(Message.RecipientType.BCC, convertAddress(message.bcc, identity));
|
||||
}
|
||||
} else {
|
||||
// https://datatracker.ietf.org/doc/html/rfc2822#section-3.6.6
|
||||
ByteArrayInputStream bis = new ByteArrayInputStream(message.headers.getBytes());
|
||||
|
|
Loading…
Reference in a new issue