You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by mtitania <mt...@gmail.com> on 2007/11/23 21:41:49 UTC
FromRepository Mailet does not appear to work... ??
I am attempting to process all email that was collected and put into an
inbox, all or most of which should be bounces from an email send that was
completed. I want to pull them from the repository and process those that
are bounces.
I wrote a custom Mailet named BounceHandlerMailet which currently only
queries fields within the Mail and outputs them to the logfile (I'm assuming
phoenix.log). I stop and restart James, it starts up but the email is still
in inboxes/test (which I've set to delete), and I see nothing in the
phoenix.log.
Below is what I modified in the config.xml... I'd appreciate any help on
this, as I'm attempting to put this process together -- as a test. In the
future, the Mailet will be processed against all incoming mail... but for
now, I need to respool mail from an inbox that it was delivered to.
I created a processor because I ONLY want the re-spooled mail to be run
through the custom Mailet that I wrote.
I put the following in the root processor:
<mailet match="All" class="FromRepository">
<repositoryPath>file://var/mail/inboxes/test</repositoryPath>
<processor>myprocessor</processor>
<delete>true</delete>
</mailet>
I created a processor definition as follows:
<processor name="myprocessor" >
<mailet match="HostIs=myhost.com" class="BounceHandlerMailet">
</mailet>
</processor>
Thanks --
Kim :-)
--
View this message in context: http://www.nabble.com/FromRepository-Mailet-does-not-appear-to-work...----tf4863705.html#a13918577
Sent from the James - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: FromRepository Mailet does not appear to work... ??
Posted by Norman Maurer <no...@apache.org>.
Hi kim,
look for /path/to/james/apps/james/logs/mailet*.log
cheers
Norman
Am Freitag, den 23.11.2007, 12:58 -0800 schrieb mtitania:
> OK -- i found a post that said to limit the FromRepository mailet to a
> specific recipient so it acts more like a command. So I modified the Mailet
> XML as follows:
>
> <mailet match="RecipientIs=runqueue@mydomain.com"
> class="FromRepository">
> <repositoryPath>file://var/mail/inboxes/test</repositoryPath>
> <processor>einsof</processor>
> <delete>true</delete>
> </mailet>
>
> And then I sent an email to that address. Sure enough the repository is now
> empty, but I see no log entries. What log do they show up in? I only see
> phoenix.log as a log file. Do I need to configure this somewhere?
>
> thanks,
> Kim :-)
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: FromRepository Mailet does not appear to work... ??
Posted by mtitania <mt...@gmail.com>.
OK -- i found a post that said to limit the FromRepository mailet to a
specific recipient so it acts more like a command. So I modified the Mailet
XML as follows:
<mailet match="RecipientIs=runqueue@mydomain.com"
class="FromRepository">
<repositoryPath>file://var/mail/inboxes/test</repositoryPath>
<processor>einsof</processor>
<delete>true</delete>
</mailet>
And then I sent an email to that address. Sure enough the repository is now
empty, but I see no log entries. What log do they show up in? I only see
phoenix.log as a log file. Do I need to configure this somewhere?
thanks,
Kim :-)
--
View this message in context: http://www.nabble.com/FromRepository-Mailet-does-not-appear-to-work...----tf4863705.html#a13918761
Sent from the James - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org