How is RRT supposed to work with the sender side? I understand that RRT
stands for "Recipient..". But the translations still need to work
on outbound as well for storing in the 'sent' folder. I don't see
anywhere in the code that sender rrt is processed. And I confirmed
that ToSenderFo
Hi Jerry,
Recipient rewrite is not a bijection, as one recipient might be
rewritten into several addresses.
This means that, in some corner cases, you might end up with "two" senders.
So solving that problem is not easy, and corner cases will arise.
To answer you, I'm not sure "sender mapping"
Benoit,
Sorry, I wasn't clear enough on the statement. I agree that the RRT
itself cannot be bidirectional. My situation is as follows:
A company wants all employees to see company mail and be able to reply.
So there is only one user account (i.e. mailbox) for the company:
commoncompanym..
Ok so what you need is a "RewriteSender" mailet.
It will resolve sender using RRT (as for recipient)
Except that rewriting to several addresses should fail (mailet container
exception handling allows the user to specify the behavior when this
happen).
While making this mailet available in James
Benoit,
I really like that idea. I also like the idea of renaming the mailet to
AddressRewriteTable. Probably keep an empty subclass of
AddressRewriteTable with the name RecipientRewriteTable so that existing
mailetcontainers.xml will still work.
I am curious, though, why you said it would
On 30/10/2019 01:08, Jerry Malcolm wrote:
> I am curious, though, why you said it wouldn't be enabled for sending by
> default.
I say that because what you describe is well defined specific use cases
(internal vs external mailboxes).
As a James user, I don't have such needs, and I don't expect to
Maybe 'rewrite sender' is not the right terminology. Maybe
"deriveSendersAccount" would better explain it. My whole point is that
if I prefer to use an 'alias' as my 'from' address instead of using the
precise address that is my account name, the code is going to look for a
'sent' folder in