|
in match attribute you must insert a class that extend
GenericMatcher class, so, probably, a class is capitalized. So you
must to write a Matcher that can recognize if a mail is inbound or
not and than you fill your matcher in match attribute.. example: <mailet match="IsInbound" class="ToRepository"> <repositoryPath>file://var/mail/backup/inbound</repositoryPath> <passThrough> true </passThrough> </mailet> <mailet match="IsOutbound" class="ToRepository"> <repositoryPath>file://var/mail/backup/outbound</repositoryPath> <passThrough> true </passThrough> </mailet> finally remember to import in ypur config the package of your custom Matcher ... <matcherpackages> <matcherpackage>org.apache.james.transport.matchers</matcherpackage> <matcherpackage>org.apache.james.transport.matchers.smime</matcherpackage> <matcherpackage>your.custom.matcherpackage</matcherpackage> </matcherpackages>... enjoy Il 06/05/2011 09:40, Aclian Aclian ha scritto: Thank you nroman! you are the best!another and last question :) how could I separate the Emails? In to Inbound & Outbound somthing like this? is it possible? <mailet match="inbound" class="ToRepository"> <repositoryPath>file://var/mail/backup/inbound</repositoryPath> <passThrough> true </passThrough> </mailet> <mailet match="outbound" class="ToRepository"> <repositoryPath>file://var/mail/backup/outbound</repositoryPath> <passThrough> true </passThrough> </mailet> Bye, Aclian </mailet>Date: Thu, 5 May 2011 21:43:48 +0200 Subject: Re: How to Install Mailet? From: [email protected] To: [email protected] yes it is.. You can use: <mailet match="All" class="ToRepository"> <repositoryPath> file://var/mail/backup/</repositoryPath> <passThrough> true </passThrough> </mailet> Bye, Norman 2011/5/5 Aclian Aclian <[email protected]>: --
![]()
Daniele Lozzi
Software Architect Babel S.r.l. - http://www.babel.it T: 06.9826.9600 F: 06.9826.9680 P.zza S.Benedetto da Norcia, 33 - 00040 Pomezia (Roma)
CONFIDENZIALE: Questo messaggio ed i suoi allegati sono di
carattere confidenziale per i destinatari in indirizzo.
E' vietato l'inoltro non autorizzato a destinatari diversi da quelli indicati nel messaggio originale. Se ricevuto per errore, l'uso del contenuto e' proibito; si prega di comunicarlo al mittente e cancellarlo immediatamente. |
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

