Hmm, now I've seen that it is sent correctly to the original sender:
//Create the list of recipients in our MailAddress format
Set recipients = new HashSet();
recipients.add(mail.getSender());
...
//Send it off...
getMailetContext().sendMail(notifier, recipients, reply);
so it's the visible TO field that is set to the postmaster.
Sorry. Anyhow, wouldn't it be less confusing for the original sender to see
its own address in the TO field?
Thanks again,
Vincenzo
> -----Original Message-----
> From: Vincenzo Gianferrari Pini
> [mailto:[EMAIL PROTECTED]
> Sent: gioved� 6 marzo 2003 10.35
> To: List James-Dev
> Subject: NotifySender notifies the postmaster instead?
>
>
> I'm using the NotifySender mailet (James Version 2.1.2); I noticed that it
> replies to the James Postmaster instead of replying to the sender of the
> original mail.
>
> In fact, inside the service method I found the following lines:
>
> //Create the list of recipients in the Address[] format
> InternetAddress[] rcptAddr = new InternetAddress[1];
> rcptAddr[0] =
> getMailetContext().getPostmaster().toInternetAddress();
> reply.setRecipients(Message.RecipientType.TO, rcptAddr);
>
> Shouldn't instead the third line be:
>
> rcptAddr[0] = mail.getSender().toInternetAddress();
>
> ? Or Is it the expected behaviour?
>
> Thanks,
>
> Vincenzo
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]