You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Frank Fitzke <fr...@globolog.com> on 2010/10/08 13:19:23 UTC

Exception-Handling

Hi List,

i want to notify the Postmaster if a message causes an exception and go to the error processor.

So i altered the ToRepository and added a <notifyPostmaster> Function.

Does anyone got an eMail (eml-file) that causes an exception in the spoolmanager?
Or - is there an other safe way to throw an exception in a Mailet or a Matcher ?

cu es gl
    Frank
Frank Fitzke

Entwickler
Fon: +49 234 388 77 217 - Fax: +49 234 388 77 210  - mobil: - - E-Mail: frank.fitzke@globolog.com

Globolog GmbH - Lise-Meitner-Allee 4 - 44801 Bochum
Fon: +49 234 - 388 77 200 - Fax: +49 234 - 388 77 210 - E-Mail: info@globolog.com - Web: www.globolog.com
Geschäftsführer: Rainer Schulz, Rainer Stecken - Handelsregister: Bochum HRB 10560 - USt.IdNr.: DE244850223

Der Inhalt dieser Email, inklusive seiner Anhänge, ist vertraulich und ausschließlich für den bezeichneten Empfänger bestimmt. Wenn Sie nicht der vorgesehene Empfänger dieser Email oder dessen Vertreter sind, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Nutzung, Veröffentlichung, Vervielfältigung oder Weitergabe unzulässig ist. Wir bitten Sie in diesem Fall, sich mit dem Absender dieser Email in Verbindung zu setzen.
This e-mail is intended exclusively for the individual or entity to which it is addressed and may contain confidential or legally privileged information, which may not be disclosed under current legislation. Any form of disclosure, copying or distribution of this e-mail is strictly prohibited. If you have received this message in error, please notify the sender immediately by e-mail and delete all copies of the message.

Powered by TEAM UP!® 3

Besuchen Sie uns auf der DMS Expo vom 26. - 28. Oktober 2010 auf der Messe Stuttgart, Halle 7, Stand D11

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: Exception-Handling

Posted by Norman <no...@apache.org>.
  Hi Frank,

I wonder why you "hacked" the ToRepository mailet. You could just have 
insert the "NotifyPostmaster" mailet in the error processor. Did it not 
work for you ?

Bye,
Norman

Am 08.10.2010 13:19, schrieb Frank Fitzke:
> Hi List,
>
> i want to notify the Postmaster if a message causes an exception and go to the error processor.
>
> So i altered the ToRepository and added a<notifyPostmaster>  Function.
>
> Does anyone got an eMail (eml-file) that causes an exception in the spoolmanager?
> Or - is there an other safe way to throw an exception in a Mailet or a Matcher ?
>
> cu es gl
>      Frank
> Frank Fitzke
>
> Entwickler
> Fon: +49 234 388 77 217 - Fax: +49 234 388 77 210  - mobil: - - E-Mail: frank.fitzke@globolog.com
>
> Globolog GmbH - Lise-Meitner-Allee 4 - 44801 Bochum
> Fon: +49 234 - 388 77 200 - Fax: +49 234 - 388 77 210 - E-Mail: info@globolog.com - Web: www.globolog.com
> Geschäftsführer: Rainer Schulz, Rainer Stecken - Handelsregister: Bochum HRB 10560 - USt.IdNr.: DE244850223
>
> Der Inhalt dieser Email, inklusive seiner Anhänge, ist vertraulich und ausschließlich für den bezeichneten Empfänger bestimmt. Wenn Sie nicht der vorgesehene Empfänger dieser Email oder dessen Vertreter sind, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Nutzung, Veröffentlichung, Vervielfältigung oder Weitergabe unzulässig ist. Wir bitten Sie in diesem Fall, sich mit dem Absender dieser Email in Verbindung zu setzen.
> This e-mail is intended exclusively for the individual or entity to which it is addressed and may contain confidential or legally privileged information, which may not be disclosed under current legislation. Any form of disclosure, copying or distribution of this e-mail is strictly prohibited. If you have received this message in error, please notify the sender immediately by e-mail and delete all copies of the message.
>
> Powered by TEAM UP!® 3
>
> Besuchen Sie uns auf der DMS Expo vom 26. - 28. Oktober 2010 auf der Messe Stuttgart, Halle 7, Stand D11
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org