[EXIM] user+text@domain.com

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Jon Morby
Fecha:  
A: exim-users
Asunto: [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/ ***