Michael Valenty ha scritto: > 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?
You have to use ToMultiRepository if you want a different repository for each user. If you provide a repositoryUrl to ToMultiRepository it will append the username to the url, otherwise if you don't provide the repositoryUrl then ToMultiRepository will ask the repository to mailServer.getUserInbox(userName). Stefano --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
