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] > >
