Network filters can return a three-digit 4xx or 5xx SMTP result code (since v2.5.1) as a prefix to the error response, eg. "456 invalid address". So for this change request I propose using a result code of 100 to cause the current message to be abandoned. SMTP result codes should not be in the 100..199 range so this should not cause any regressions.
(The relevant code is GFilters::NetworkFilter::sendResult() in src/gfilters/gnetworkfilter.cpp. The m_result should be set to Result::abandon if the reason starts with "100".)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Network filters can return a three-digit 4xx or 5xx SMTP result code (since v2.5.1) as a prefix to the error response, eg. "456 invalid address". So for this change request I propose using a result code of 100 to cause the current message to be abandoned. SMTP result codes should not be in the 100..199 range so this should not cause any regressions.
(The relevant code is GFilters::NetworkFilter::sendResult() in src/gfilters/gnetworkfilter.cpp. The m_result should be set to Result::abandon if the reason starts with "100".)