I am trying to put a "sent item" in my messaging system (MyMailRepository) when sending mail from a smtp client like Outlook Express. The ToRepository mailet (see below) is working but I don't know how to get the user credentials from the smtp session.
Michael Valenty wrote: > > In config.xml > spoolmanager > processor(name=transport), I added: > > <mailet match="All" class="ToRepository"> > <repositoryPath>ew://mail/outgoing/</repositoryPath> > </mailet> > > Then, when I send mail from a Outlook to a remote recipient > MyMailRepository.store() is invoked as expected. The issue is that it > looks like there is only one instance of MyMailRepository for all users > and I have to look at mail.getSender() to figure who it's from. > > I noticed that MyMailRepository.configure is called with destinationURL= > ew://mail/outgoing/ and not ew://mail/outgoing/<username> like w/ > inboxRepository. > > Also, I am requiring auth on SMTP and I would like to get the current > user... Any ideas? > -- View this message in context: http://www.nabble.com/MailRepository.store%28%29-current-user--tf3848358.html#a10922686 Sent from the James - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
