msys.bounce.classify

March 26, 2020 Contributors

Name

msys.bounce.classify — Create a bounce classification for a message

Synopsis

msys.bounce.classify(msg);

msg: userdata, ec_message type

Description

This function takes a mail message (msys.core:_ec_message) and returns a tuple (code, code_string, description, orig_rcpt). code is a numerical classification code; code_string is the string representation of the code (such as BC_UNDETERMINED, BC_SOFT_TIMEOUT, etc); description is the textual description of the code; orig_rcpt is the original recipient of the mail. This function should be called only if a mail is an MDN. The bounce_classifier_override module must be configured for this function to produce the correct result.

Enable this function with the statement require('msys.bounce');.

See Also

“bounce_classifier_override – Override/Augment Bounce Classifications”, msys.bounce.classify_smtp_response