[exim-dev] [Bug 795] New: No user message after accept with …

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Adam Osuchowski
Dátum:  
Címzett: exim-dev
Új témák: [exim-dev] [Bug 795] No user message after accept with endpass on ACL
Tárgy: [exim-dev] [Bug 795] New: No user message after accept with endpass on ACL
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=795
           Summary: No user message after accept with endpass on ACL
           Product: Exim
           Version: 4.69
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: ACLs
        AssignedTo: nigel@???
        ReportedBy: adwol@???
                CC: exim-dev@???



I have such ACL rule:

  accept  message = this is my message
          domains = +local_domains
          endpass
          verify  = recipient


in acl_smtp_rcpt. But where this rule condition is met and rule returns
accept the message sended to SMTP client is ,,250 Accepted'' instead of
,,250 this is my message''. If I remove endpass modifier from rule,
the answer is correct (,,250 this is my message''). The same situation
take place in acl_smtp_mail ACL.

I found in acl_check_condition() function body (src/acl.c) following statement:

    if (*epp && rc == OK) user_message = NULL;


Is it correct? Shouldn't it be rather:

    if (*epp && rc != OK) user_message = NULL;


user_message should be cleared if there is endpass modifier and rule
condition _fails_ because then control moves to next rule.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email