On 8/18/05, Stefano Bagnara <[EMAIL PROTECTED]> wrote:
> Hi Anagha,
> 
> I thought about a MatcherMessageHandler.
> This handler would take a standard james matcher configuration as an
> argument and an additional configuration could say how to reply based on the
> result of the matcher.
> E.g:
> <handler class="org.apache.james.smtpserver.MatcherMessageHandler">
>  <!-- reject the message if the sender is in fake domain -->
>  <rule match="SenderInFakeDomain=64.55.105.9,64.94.110.11"
> reject="matchany" />
>  <!-- reject the message if match all the recipients: then only when the
> only recipient is [EMAIL PROTECTED] -->
>  <rule match="[EMAIL PROTECTED]" reject="matchall" />
> </handler>
> 
> What do you think?
> Could it be of any use?
> Would it be better to add a full "processor" configuration as a
> messagehandler?

I think its a good idea to reuse mailet pieces of code for message handlers.
After I refine the core framework and do all the clean up, I will get
started with that.
I am planning to give next patch this weekend.

--anagha


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

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

Reply via email to