[exim] Delivering sieve "inbox" to maildir

Página Inicial
Delete this message
Reply to this message
Autor: Paul Warren
Data:  
Para: exim-users
Assunto: [exim] Delivering sieve "inbox" to maildir
I'm trying to get the Sieve default delivery for "inbox" to go to a
directory in Maildir format, rather than a file.

Our system supports both Maildir and mbox being specified in .forward
files, so the redirect router that handles the filter files specifies
separate "file_transport" and "directory_transport" options, and which
one gets used depends on whether the filename ends with "/".

The documentation has an example of how to convert the "inbox" string
into a path:

https://www.exim.org/exim-html-current/doc/html/spec_html/ch-the_appendfile_transport.html#SECTfildiropt

file = ${if eq{$address_file}{inbox} \
            {/var/mail/$local_part_data} \
            {${if eq{${substr_0_1:$address_file}}{/} \
                  {$address_file} \
                  {$home/mail/$address_file} \
            }} \
       }

The problem I've got is that because "inbox" doesn't end in "/", it gets
handled by the "file_transport" transport, so I can't see how to then
deliver it to a directory.

Is there a way around this, either by forcing the string "inbox" to be
handled by the "directory_transport", or by having the "file_transport"
conditionally deliver to a directory?

Paul




--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/