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:
Hi Yunus. I have this ready for the 2.7 release, but if you need it now I have attached a patch against the 2.6 source. (Apply with "patch -p1 < patch-fr40.p1".)
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".)
Hello Graeme,
hope you're doing well. Is there anything I can do to help with this development?
Hi Yunus. I have this ready for the 2.7 release, but if you need it now I have attached a patch against the 2.6 source. (Apply with "patch -p1 < patch-fr40.p1".)
I don't need it right now. I'm just curious because I haven't seen any update in a long time on this issue :)
Thanks.