Menu

#40 Network filter abandon result

open
nobody
None
5
2025-09-11
2024-12-09
No

Network filters should support a tri-state result code (ok/fail/abandon) in the same way as executable filters (with exit code 0/1..99/100).

Raised on behalf on Yunus.

Discussion

  • Graeme Walker

    Graeme Walker - 2024-12-10

    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".)

     
  • Yunus YILDIRIM

    Yunus YILDIRIM - 2025-09-09

    Hello Graeme,
    hope you're doing well. Is there anything I can do to help with this development?

     
  • Graeme Walker

    Graeme Walker - 2025-09-11

    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".)

     
    👍
    1
  • Yunus YILDIRIM

    Yunus YILDIRIM - 2025-09-11

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.