Joachim Draeger wrote:
I'm not so familiar with the Mailet API and how Mail is handled there.
At the moment Actions awaits a Mail object with a single recipient and
fails if there are more.
Original example seems to split up multiple recipients in a first step
and put them back on the queue. There are also traces of a duplicateMail
method. Another aspect is that sieve script can test the envelope. Maybe we
should leave envelope complete, and pass over the current recipient
outside the Mail object?

AFAIU, Sieve script must be executed just before the real INBOX storage is done. ToMultiRepository is the mailet that is responsible for the local storage. LocalDelivery (since 2.3.0) is simply a compound of UsersRepositoryAliasingForwarding and ToMultiRepository.

As you can see in ToMultiRepository sources there is a loop over the recipients array and a storeMail for each recipient.

Hope this helps,
Stefano



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to