Percent-encoded IMAP user names

Pavlo Lavrenenko <santa-IUlZPdMEdC1Wk0Htik3J/[email protected]>
Newsgroups gmane.mail.imap.dbmail.devel
Message-ID <[email protected]>
Hi. Looks like dbmail does not perform any kind of decoding for the logins like 
test%40test@domain. Thats not a big problem, I can improve this as log as I use 
customized auth module. What I am worried about is that such names are easily 
treated as printf-alike patterns inside dbmail_imap_session_buff_printf()

This causes some unpleasant consequences:

A001 LOGIN "test%[email protected]" "zzzxxx123"
A001 OK [CAPABILITY IMAP4rev1 IDLE RIGHTS=texk NAMESPACE CHILDREN SORT QUOTA 
THREAD=ORDEREDSUBJECT UNSELECT STARTTLS ID] User test 
[email protected] authenticated

Paul, can you give a hint is it safe to leave such behavior as-is?

-- 
Best regards,
Pavlo Lavrenenko,
PortaOne, Inc., Junior Software Developer
Tel: +1-866-SIP VOIP (+1 866 747 8647) ext. 7624

PortaOne - VoIP Solutions Company
Visit our Website: http://www.portaone.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.