Hi,

Le 2019-03-04 13:16, Simon Levesque a écrit :
Hi all,

I created a mailet that modifies some recipients. When modifying them, I
want to add an header only to those modified.
Given the method's signature:

public void service(Mail mail) throws MessagingException {

It looks like I can only modify one mail.

From the documentation, I recal that if one message has 5 recipients, then they would be splited in 5 messages (one per recipient) and being processed
individually, but in pratice, I am not seing that.
Is there a way to do any of these:

   1. configure something to have one mail per recipient
2. from a mailet, split a mail in 2 or call a service to create a new
   mail

Something has been added recently exactly for this purpose: perRecipientHeaders.

See Mail.addSpecificHeaderForRecipient and Mail.getPerRecipientSpecificHeaders.

Regards,
Raphaël Ouazana.

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org

Reply via email to