else removeHeader("BCC"); if (!isAnonymous()) sign(senderIdentity, keyUpdateHandler); compressTo(outputStream);
public void sendEmail(Email email) throws MessagingException, PasswordException, IOException, GeneralSecurityException { email.checkAddresses(); // sign email unless sender is anonymous if (!email.isAnonymous()) { String sender = email.getOneFromAddress(); EmailIdentity senderIdentity = identities.extractIdentity(sender); if (senderIdentity == null) throw new NoIdentityForSenderException(sender); email.sign(senderIdentity, identities); } email.setSignatureFlag(); // set the signature flag so the signature isn't reverified every time the email is loaded outbox.add(email); if (outboxProcessor != null) outboxProcessor.checkForEmail(); }
if (!email.isAnonymous()) { String sender = email.getOneFromAddress(); senderIdentity = identities.extractIdentity(sender);
if (email.isAnonymous()) identityConfig = configuration; else