On Tue, 5 Jun 2007 12:16:43 -0700 (PDT), Michael Valenty <[EMAIL PROTECTED]> 
wrote:
> 
> 
> Stefano Bagnara-2 wrote:
>>
>> Then the simplest thing you can do is to look at the
>> ToMultiRepository.java source and change the way it works to use the
>> authenticated sender instead of the local part of the recipient.
>>
> I wrote a MyCompanyDelivery mailet which basically does:
> 
> String username =
> mail.getAttribute(SMTP_AUTH_USER_ATTRIBUTE_NAME).toString();
> MyMailRepository repository =
> (MyMailRepository)server.getUserInbox(username);
> repository.send(mail);
> mail.setState(Mail.GHOST);
> 
> where send() routes mail through my company's messaging system so that the
> mail will be in the user's sent items.
> 
> This is what I was looking for!!! James is very cool, thank you for your
> help.
>

Now I understand what was your problem.. A bit to later , anyway Stefano helped 
you ;-)

bye
Norman



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

Reply via email to