RE: [Exim] Regular expressions Help

Top Pagina
Delete this message
Reply to this message
Auteur: Philip Hazel
Datum:  
Aan: Bernard Stern
CC: exim-users
Onderwerp: RE: [Exim] Regular expressions Help
On Thu, 25 Jul 2002, Bernard Stern wrote:

> > As you can see my director, AddressChange mangles the local_part to have the text 'hps+' prepended. At the moment, the transport is correctly generating mail box files all in lower case, ie :
> > /var/spool/mail/hps+pmiles
>
> > I need exim to generate mail box files in mixed case, where the 'hps' is always in upper case. ie :
> > /var/spool/mail/HPS+pmiles
>
> > Is this possible, and if so how?
>
> have you tried setting
>
> locally_caseless = false
>
> in the main configuration? The value defaults to true.



Alternatively, if you want to force all characters preceding + to
uppercase at the time the mailbox name is generated, you could use
something like this (untested):

  file = /var/spool/mail/\
    ${if match{$local_part}{^([a-z])+\\+(.*)}\
    {${uc:$1}+$2}{$local_part}}


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.