I need to be able to access a different database from my default James
mail db in a couple of matchers and mailets. In james 2, I was able to
easily add a 2nd datasource into the datasources tag block in the
config file, and simple access the other datasource by name in my
matcher/mailets.
I tried activating the ToSenderFolder mailet and could not get it to
work. I added some debug code and looked through the source, and I see
where the problem is.
The mailet assumes that the username (user login name / repository name)
is the sender's email address. (see code snippit at the