[EXIM] user+text@domain.com

Pàgina inicial
Delete this message
Reply to this message
Autor: Jon Morby
Data:  
A: exim-users
Assumpte: [EXIM] user+text@domain.com
Sorry if this has already been asked, but I'm trying to work out how to parse a username to see if it's got a +text, and if so split that into two parameters (dropping the +)

ie I want to do something like

jon+noise@??? -> "deliver -m noise jon"

ie split it into $1 $2 and $3

$1 = jon
$2 = noise
$3 = domain.com

I've fiddled briefly this evening but couldn't make it work ... Any
suggestions?

The transport I have currently looks like this (and doesn't take into
account the +)

pipe_imap:
driver = pipe;
command = "/usr/cyrus/bin/deliver ${local_part}",
return_path_add,
return_output,
prefix = "",
user = cyrus

I've tried

command = "/usr/cyrus/bin/deliver ${if match {$local_part} {^([^+]*)(.*)} {-m $2 $1} ${local_part} }",

but to no avail
-- 
Jon Morby                                  mail: jon@???
Fidonet/Internet Gateway                   http: www.fido.net


--
*** Exim information can be found at http://www.exim.org/ ***