I just started playing with James and have been able to debug (step-through a basic connection) and was wondering how I can add support for some custom logic when certain email comes in? Basically I want to execute my own java code when mail comes in with a certain identifier in the to: address.
For example, I want to have a mailet (is that right?) execute whenever an email comes in addressed to anyone@ <mailto:anyone@%3cmycookie%3e.company.com> <mycookie>.company.com <mycookie> being some identifier that means I need to process it. As I mentioned, I have stepped through a complete SMTP session but am not sure what happens after that. For one, I can't even get a valid email to be received within james (although I added it with the admin tool-telnet, etc.) Are there any architecture models (diagrams) or activity diagrams (or even a basic flow chart) that can help me? I am having big problems trying to compile all the various subcomponents James sits on as they all have their own quirks with what JDK is needed to compile. I hope this makes sense, if not, I will try to explain again. Thanks much.
