[Dovecot] Variable expansion in LDA vs POP/IMAP

Timo Sirainen tss at iki.fi
Sun May 27 16:47:48 EEST 2007


On Sun, 2007-05-27 at 15:19 +0200, Stephane Enten wrote:
> On Sat, May 26, 2007 at 06:26:40PM +0300, Timo Sirainen wrote:
>  > > you should NOT be doing select 
>  > > concat('/mail/01/%2LMd/%2.2LMd/%LMd/mail/%Ln') as maildir
>  > 
>  > Actually that does work. It's only the value returned from database
>  > that's not expanded. I think that'd be a bad idea because then any
>  > usernames or paths containing '%' characters would break.
> 
> I understand that the only intended expanded string is the query one,
> not the answer.
> 
> But then something's weird cause it's actualy expanded by deliver (in my
> setup they share the same dovecot-auth process hence the same SQL
> query).

That's a bug then, because it should work identically with deliver.
Fixed: http://hg.dovecot.org/dovecot-1.0/rev/2b462faf9867

Hopefully around Dovecot v2.0 I can finally get rid of this kind of
special handling in deliver and just have one generic code that works
the same everywhere..

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070527/a7dea33f/attachment.bin 


More information about the dovecot mailing list