> >Firstly I'd like to know the simplest way of
> >determining whether an email is being recieved or sent
> >when it's being processed?
> 
> To a large extent that depends upon what you consider "receieved" and
> "sent" to mean, after all James itself is an intermediate step between mail
> recipient and sender.
> All mail is "recieved" by James, some is delivered locally and some is
> delivered remotely.
> Check the "transport" processor in the configuration to see how to sort out
> which is which.
> 
> >Secondly is there way of attaching attributes to an
> >email as you can with servlet requests and responses?
> 
> In newer versions, not sure what ones though off hand.
> You can also use the message headers to indicate and persist state within
> james, within storage and across transport.
> 
> d.

In James versions 2.2.0a8+ or (2.2.0a9+ ?) you can use "mail attributes". For example:

         <!-- **************** Anti-spam processing ****************** -->

         <!-- Has spam checking already been done? -->
         <mailet match="HasMailAttribute=spamChecked" class="ToProcessor">
            <processor> transport </processor>
         </mailet>

         <!-- Spam checking will not be done twice -->
         <mailet match="All" class="SetMailAttribute">
            <spamChecked>true</spamChecked>
         </mailet>

You can get and set mail attributes from matcher and mailet code.

Vincenzo


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to