1 message in net.sourceforge.lists.courier-maildrop[maildropl] regex substitute in mailf...
FromSent OnAttachments
Jens FrankeNov 19, 2002 9:59 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] regex substitute in mailfilterActions...
From:Jens Franke (byte@gmx.de)
Date:Nov 19, 2002 9:59:43 am
List:net.sourceforge.lists.courier-maildrop

Hi,

we uses maildrop with qmail and virtualdomains with vmailmgr.

Qmail converts Dots in Colons

i.e. jens.franke become jens:franke and also the directory named with ":" i.e. /home/virtual/domain/users/jens:franke

Now in the mailfilter i use the env var $EXT, which contains the user without converting Dots in Colons (jens.franke).

now I want to deliver mail via

to "./users/$EXT"

How can i convert the Dots to Colons so the right Directory is used ?

in Perl i would use $ext =~ s/:/\./