you can keep the domain name separate from the code, using the init
parameters , by specifying them in the xml configuration file.
regards
ranjib

On Thu, May 20, 2010 at 9:22 AM, Gusnadi Kevin <gusna...@ncs.com.sg> wrote:

> Hi All
>
> I would like to create a matcher for James2.3.2 .
>
> The matcher only to separate incoming and outgoing only .
>
> So if it's incoming email I want to execute mailet a , if it's outgoing
> email I wan to execute mailet b.
>
> I'm thinking of getting the sender/recipient address as string and then
> get the domain name . But my concern is if one day I change my domain
> name then I also will have to change my source code.
>
> So does any of you have any advice how to do this in more "elegant" way
> ? maybe an attributes that will provide more accurate information to
> differentiate incoming / outgoing mail ?
>
> Thanks and regards
> Kevin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
>
>

Reply via email to