I refactored my project and moved the "send" logic to the mailet rather than
the mail repository. Either way, it is working very well now just about
ready for production after less than 2 weeks! I will be hosting my source
code on sourceforge.net, I will post a follow up with a link to the project
in a few days. Thank you for your help, leveraging James has saved me a ton
of time and the end result is more robust.


Stefano Bagnara-2 wrote:
> 
> Michael Valenty ha scritto:
>> 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);       
> 
> repository.send ? do you mean .store ?
> 
>> mail.setState(Mail.GHOST);
> 
> Why do you GHOST the mail after storing a copy in the sent items?
> Shouldn't you leave it going through the chain and reach the
> RemoteDelivery ? (or the LocalDelivery if it was directed locally)
> 
> Stefano
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/MailRepository.store%28%29-current-user--tf3848358.html#a10991519
Sent from the James - Dev mailing list archive at Nabble.com.


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

Reply via email to