Hi Max,
If you define the FromRepository before the ToRepository(spam), the mail
will not reside in the spam repo, so it will be not retrieved during the
processing of itself (probably well retrieved during the processing of
the following one).
Moreover, you have to define <passThrough>true</passThrough> in the
mailet in your spam processor. This is used to say James to not "Ghost"
the mail and to continue its processing.
This gives use:
<processor name="root">
<mailet nomatch="SenderHostIsLocal" class="SpamAssassin">
<spamdHost>localhost</spamdHost>
<spamdPort>783</spamdPort>
</mailet>
<mailet
match="HasMailAttributeWithValue=org.apache.james.spamassassin.flag, YES"
class="ToProcessor">
<processor>spam</processor>
</mailet>
</processor>
<processor name="spam">
<mailet match="All" class="ToRepository">
<repositoryPath>db://maildb/messages/spam/</repositoryPath>
<passTrough>true</passTrough>
</mailet>
<mailet match="[email protected]" class="FromRepository">
<repositoryPath>db://maildb/messages/spam</repositoryPath>
<processor> transport</processor>
<delete>true</delete>
</mailet>
</processor>
I didn't test that exact configuration, but an equivalent one.
If you leave like that, the [email protected] should be reprocessed by
the transport processor.
You will have for the other spams a message such as:
WARN 19:55:14,752 | james.spoolmanager | Message Mail1282672514625-3
reached the end of this processor, and is automatically deleted. This
may indicate a configuration error.
If you don't like it, you may add
<mailet match="All" class="Null"/>
after the FromRepository mailet.
Tks,
Eric
On 24/08/2010 12:54, Max Levinson wrote:
It is currently in a root processor.
<processor name="root">
<mailet nomatch="SenderHostIsLocal" class="SpamAssassin">
<spamdHost>localhost</spamdHost>
<spamdPort>783</spamdPort>
</mailet>
<mailet
match="HasMailAttributeWithValue=org.apache.james.spamassassin.flag, YES"
class="ToProcessor">
<processor>spam</processor>
</mailet>
<mailet match="[email protected]" class="FromRepository">
<repositoryPath>db://maildb/messages/spam</repositoryPath>
<processor> transport</processor>
<delete>true</delete>
</mailet>
</processor>
<processor name="spam">
<mailet match="All" class="ToRepository">
<repositoryPath>db://maildb/messages/spam/</repositoryPath>
</mailet>
</processor>
They way I see it is if message is already in spam repository and recipient
is [email protected] or any other matcher triggering it, FromRepository
mailet moves this email to transport processor, sort of release.
Does it make sense, but unfortunately it is not working :(
Maybe I do something wrong, and you need to use FromRepository mailet in
different way?
Thanks.
2010/8/24 Eric Charles<[email protected]>
Hi Max,
In which processor (root, transport, spam ?) did you put the FromRepository
mailet.
I never used it, but I would put it just after the ToRepository in spam.
If it still doesn't work at your side, I will give it a try.
Tell me...
Tks,
Eric
On 23/08/2010 10:59, Max Levinson wrote:
Hi guys, can anyone help on this?
2010/8/19 Max Levinson<[email protected]>
Hi Norman,
I just got achance to test it, as you know I am on James 3 from trunk.
Have anyone actually tried this mailet with James 3.
It's not working for me, unfortunately.
<mailet match="[email protected]" class="FromRepository">
<repositoryPath>db://maildb/messages/spam</repositoryPath>
<processor> transport</processor>
<delete>true</delete>
</mailet>
It says in the logs that mailet was initialised, but it's not resending
email.
What can be the problem?
2010/8/16 Norman Maurer<[email protected]>
Hi Max,
check the FromRepository Mailet...
http://james.apache.org/server/2.3.2/provided_mailets.html
Bye,
Norman
2010/8/16 Max Levinson<[email protected]>:
Hi guys,
I have a situation which requires your help, I have this DB repository:
<processor name="spam">
<mailet match="All" class="ToRepository">
<repositoryPath>db://maildb/messages/spam/</repositoryPath>
</mailet>
</processor>
All spam goes here, what if a user will decide to release a message
from
this repository(let's say release), how this can be achieved.
Maybe there is a mailet which can resend a message from repository?
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]