[exim-dev] [Bug 474] New: ACL condition to unset a variable

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: bug474
Ημερομηνία:  
Προς: exim-dev
Αντικείμενο: [exim-dev] [Bug 474] New: ACL condition to unset a variable
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

http://www.exim.org/bugzilla/show_bug.cgi?id=474

           Summary: ACL condition to unset a variable
           Product: Exim
           Version: N/A
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: wishlist
          Priority: medium
         Component: ACLs
        AssignedTo: ph10@???
        ReportedBy: anomie@???
         QAContact: exim-dev@???



Since we can create arbitrarily named variables, it would be nice if we could
also eliminate the variables when we're done with them. The patch I will attach
momentarily adds an 'unset' condition to match the 'set' condition. It also
adds an 'isset:' test much like the 'def:' test, that tests whether the
variable exists at all.

Currently, unset does not actually remove the variable node from the tree, it
just sets the data pointer to NULL. Then variable lookup and spool output check
for data being NULL and pretend the variable does not exist.

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