Re: [exim] sieve filters from (ldap-)database

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tony Finch
Datum:  
To: Timo Boettcher
CC: exim-users
Betreff: Re: [exim] sieve filters from (ldap-)database
On Wed, 16 Feb 2005, Timo Boettcher wrote:
>
> What I found so far is:
> Courier-imap uses "." as path-separator for subfolders, and sieve
> seems to use "/", so for INBOX/subfolder I end up with
> ~/.maildir/INBOX/subfolder/mymail instead of
> ~/.maildir/.subfolder/mymail
> I tried to solve that with some string-expansion on $address_file
> in the forward_address_file transport when I actually deliver the
> mail, but I hope there is a better way to do that...


I think the only way to do it will be to use ${sg {$address_file} {/}{/.} }
to fiddle the path separators, and matbe another ${sg to deal with INBOX.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}