james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Maurer <nor...@apache.org>
Subject Re: MailRepository.store() current user?
Date Thu, 01 Jan 1970 00:00:00 GMT


On Tue, 5 Jun 2007 12:16:43 -0700 (PDT), Michael Valenty <mike@valenty.com> 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message