Discussion:
[Mimedefang] Error in filter_begin
Thomas Kristensen
2018-05-14 11:32:13 UTC
Permalink
Hey

What happens with the email, if there is a error in filter_begin? Ex. A database server offline and there is a query in filter_begin ?

Med venlig hilsen
Thomas Kristensen
[MM_mail_logo_3_AS]
Storhaven 12 - 7100 Vejle
Tlf: 75 72 54 99 - Fax: 75 72 65 33
E-mail: ***@multimed.dk
Dianne Skoll
2018-05-14 21:10:10 UTC
Permalink
On Mon, 14 May 2018 11:32:13 +0000
Post by Thomas Kristensen
What happens with the email, if there is a error in filter_begin? Ex.
A database server offline and there is a query in filter_begin ?
It's up to you to catch the error and call action_tempfail (or whatever
you deem appropriate for handling the error.)

You also need to remember that it happened and make filter and filter_end
do nothing. Since filter_begin/filter/filter_end are all called in the
same process, it's safe to remember that an error happened in a global
variable.

Regards,

Dianne.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http://lists.roaringpenguin.com/m

Loading...