Chris Knipe | 2 May 2005 15:26

"catch all" alias?

Lo all,

I'm battling a bit to make a wild card alias...

I have the following in my alias file:

pmx-auto-approve*:  |/usr/local/pmx4/bin/pmx-qdigest-approve

I want it to catch anything AFTER pmx-auto-approve.  i.e.

pmx-auto-approve+<some random string here> <at> mydomain.com

--
Chris.

I love deadlines. I especially love the whooshing sound they make as they fly by..." - Douglas Adams,
'Hitchhiker's Guide to the Galaxy'
--

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Odhiambo G. Washington | 2 May 2005 23:23

Re: "catch all" alias?

* Chris Knipe <savage <at> savage.za.org> [20050502 16:28]: wrote:
> Lo all,
> 
> I'm battling a bit to make a wild card alias...
> 
> I have the following in my alias file:
> 
> pmx-auto-approve*:  |/usr/local/pmx4/bin/pmx-qdigest-approve
> 
> I want it to catch anything AFTER pmx-auto-approve.  i.e.
> 
> pmx-auto-approve+<some random string here> <at> mydomain.com

I think a router with local_part_suffix = +* should do it.

        cheers
       - wash 
+----------------------------------+-----------------------------------------+
Odhiambo Washington            		. WANANCHI ONLINE LTD (Nairobi, KE)  |
wash _at_ wananchi _ dot _ com		. 1ere Etage, Loita Hse, Loita St.,  |
GSM: (+254) 722 743 223			. # 10286, 00100 NAIROBI             |
GSM: (+254) 733 744 121			. (+254) 020 313 985 - 9             |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"  
						 --from a /. post

--

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/
(Continue reading)

Giuliano Gavazzi | 2 May 2005 16:43

Re: "catch all" alias?

At 3:26 pm +0200 2005/05/02, Chris Knipe wrote:
>Lo all,
>
>I'm battling a bit to make a wild card alias...
>
>I have the following in my alias file:
>
>pmx-auto-approve*:  |/usr/local/pmx4/bin/pmx-qdigest-approve
>
>I want it to catch anything AFTER pmx-auto-approve.  i.e.
>
>pmx-auto-approve+<some random string here> <at> mydomain.com
>

you could use local_part_suffix in your systemaliases router, or in a 
copy of that router, just after the standard one, if you want to have 
exceptions.
In this second case you could have:

aliasA+bah: userBah
aliasA:	userA

and every aliasA+* (or simply aliasA) would go to userA, except for 
aliasA+bah that would go to userBah.

Giuliano

--

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
(Continue reading)


Gmane