On 3/17/2009 6:47 AM, LuKreme wrote:
> I rewrite foo_...@example.com to foo+...@example.com
> 
> virtaul.pcre:
> /^(.*)_(.*)@example.com$/    ${1}+$...@example.com
> 
> virtual_alias_maps =
>     hash:$config_directory/virtual
>     pcre:$config_directory/virtual.pcre,
>     mysql:$config_directory/mysql_virtual_alias_maps.cf
> 
> your line would look like
> /^(.*)@(.*)\.example.com$/    ${1}+$...@example.com
> 
> In fact, I like that idea, I might implement it.

I like this idea, since I have encountered some sites that don't allow
plus addressing when signing up for things...

The only obvious issue is to make sure you don't have any users with
underscores as part of their local username.

I know you could just add a new line for each additional character you
wanted to allow for, but could it be done on one line? E.g., if I wanted
to also be able to use a '.' (dot), change this line:

/^(.*)_(.*)@example.com$/

to something like:

/^(.*)_|.(.*)@example.com$/

(not sure if using the 'or' vertical bar will work as expected here)

-- 

Best regards,

Charles

Reply via email to