[exim-dev] [Bug 1553] New: introduce $config_file and $confi…

Inizio della pagina
Delete this message
Reply to this message
Autore: Heiko Schlittermann
Data:  
To: exim-dev
Nuovi argomenti: [exim-dev] [Bug 1553] introduce $config_file and $config_dir expansion items, [exim-dev] [Bug 1553] introduce $config_file and $config_dir expansion items, [exim-dev] [Bug 1553] introduce $config_file and $config_dir expansion items
Oggetto: [exim-dev] [Bug 1553] New: introduce $config_file and $config_dir expansion items
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1553
           Summary: introduce $config_file and $config_dir expansion items
           Product: Exim
           Version: N/A
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: wishlist
          Priority: low
         Component: Unfiled
        AssignedTo: nigel@???
        ReportedBy: hs@???
                CC: exim-dev@???



Created an attachment (id=764)
--> (http://bugs.exim.org/attachment.cgi?id=764)
Implementation and documentation for the above wish list item

To have relocatable configurations it would be great to have expansion items
referencing the current main configuration file and directory.

... = lsearch;$config_dir/domains

would become valid and possible. Macros would be suffient here, but as soon as
re-expansion is nessesary, macros do not work anymore:

CFDIR = ...
domains
=${expand:${lookup{$sender_host_address}lsearch{CFDIR/domainsbysender}}}

having domainsbysender:
1.1.1.1: lsearch;CFDIR/domains-$sender_host_address

With my patch I could use
1.1.1.1: lsearch;$config_dir/domains-$sender_host_address


The introduction of these two variables make it possible to have relocatable
configuration directories. For me it's a big benefit for testing existing
configurations at another file system location. (Currently I'm not sure how to
handle included file names, I was thinking about some $this_config_dir,
$this_config_file, but I'm not sure if somebody needs it.)


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