[Dovecot] Case of %n (feauture request)
Chris Wakelin
c.d.wakelin at reading.ac.uk
Mon Oct 24 11:40:06 EEST 2005
Doesn't ".../%d/%Ln" do what you want? See doc/variables.txt.
Best Wishes,
Chris
Alexander Shikoff wrote:
> Hello,
>
> I'm using dovecot not for a long time but I've newer seen most powerful
> and handy POP3/IMAP server. Thank Timo for dovecot; thank community for help!
>
> I would like to notice that %n is case-sensitive: it always stores user part
> of login without case conversions. As a result there are some inconveniences
> with virtual user organization, for example:
>
> password_query = SELECT `password` FROM `users` WHERE login = '%u'
> user_query = SELECT "mbox:/var/mail/virtual/%d/%n:INBOX=/var/mail/virtual/%d/%n:INDEX=MEMORY"
> AS `mail`, 101 AS `uid`, 101 AS `gid` FROM users WHERE login = '%u'
>
> In this example authentication works perfectly but user can not access it's
> mailbox because all mailbox names are lower-case.
>
> I think it would be more handy to make %d, %n and %u aliases lower-case
> and introduce three new aliases %D %N %U which store values without case
> conversions. But I'm not enough skilled in C to write a patch... and now I'm
> waiting for comments on this and answer from the developer.
>
> Thanks in advance, Alexander.
>
--
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
Christopher Wakelin, c.d.wakelin at reading.ac.uk
IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439
Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
More information about the dovecot
mailing list