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 mi...@sunlife.com on 2006/10/25 18:13:45 UTC
Forcing mail into the error folder (or any disk area)
Hi All,
In my custom mailet i'd like to save mail which is causing me issues
(Unsupported MIME Types)
logger.error("Encountered Unsupported Mime Type");
mail.setState(Mail.ERROR); // Send this mail to the error queue
throw new Exception("Encountered Unsupported Mime Type");
I thought that mail.setState(Mail.ERROR) would send the mail to the error
processor and save it into
./var/mail/error
It didn't do it though.
Any other ideas on how i can save the entire incoming mail to disk so i can
look at it later.
Thanks
Michael
---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
RE: Forcing mail into the error folder (or any disk area)
Posted by "Noel J. Bergman" <no...@devtech.com>.
> I thought that mail.setState(Mail.ERROR) would send the mail to the error
> processor and save it into
It should send it to the error processor, but you are responsible for
storing it, using ToRepository, if you want it stored.
Turn on debugging for the SpoolManager if you need to watch the message
flow.
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org