If you call mail.setState(Mail.GHOST) in your mailet then the mailet will "eat" that mail and it will no go further on in the processing.
Stefano On 12 August 2014 14:14, Mahesh Sivarama Pillai <srm...@gmail.com> wrote: > Hi, > > In certain mail servers like sendmail, we can pipe the incoming message to > a script. Till the execution of the script, the mail will be stored in the > spool queue. The mail will not get moved to the inbox after the script is > run. So in effect the mail is deleted/ignored after the processing. If I > want to implement this in JAMES using mailets how do I do it ? Can I > prevent the email from going to the inbox of a user after processing the > business logic in Mailets or can I delete it right after the processing ?. > I don't want my inbox to grow. To give a background, I am implementing an > email application platform; so there is no real users associated with this > email server who want to manage their emails using any email client. And > this is not meant to be a relay server as well. The email JAMES is going to > recieve is forwarded from an Enterprise Email server. > > Please provide your comments/suggestions. > > Thanks > Mahesh --------------------------------------------------------------------- To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org For additional commands, e-mail: server-user-h...@james.apache.org