Re: [Dovecot] Trim trailing whitespace from username

2008-05-29 Thread Timo Sirainen
On Wed, 2008-05-28 at 15:40 -0700, David Jonas wrote: > I spoke too soon. Dovecot still complains about the invalid character. > While testing I had forgotten to update to remove from > username_chars. I should have known really, since the invalid chars > check is done before var_expand() in au

Re: [Dovecot] Trim trailing whitespace from username

2008-05-28 Thread David Jonas
Cassidy Larson wrote: If you're using MySQL for your database driver you can easily use the TRIM() function in your query to strip off leading and ending whitespace characters. I do that and a "LCASE()" to forcethe userna

Re: [Dovecot] Trim trailing whitespace from username

2008-05-28 Thread Cassidy Larson
If you're using MySQL for your database driver you can easily use the TRIM() function in your query to strip off leading and ending whitespace characters. I do that and a "LCASE()" to forcethe usernames to lowercase in the

Re: [Dovecot] Trim trailing whitespace from username

2008-05-28 Thread David Jonas
Timo Sirainen wrote: On Fri, 2008-05-16 at 00:48 -0700, David Jonas wrote: Recently we changed Postfix to use Dovecot for our SASL authentication and we ran into trouble with some of our clients having extraneous spaces at the end of their usernames. The quick fix was to add a space to usernam

Re: [Dovecot] Trim trailing whitespace from username

2008-05-16 Thread David Jonas
Timo Sirainen wrote: On Fri, 2008-05-16 at 00:48 -0700, David Jonas wrote: Recently we changed Postfix to use Dovecot for our SASL authentication and we ran into trouble with some of our clients having extraneous spaces at the end of their usernames. The quick fix was to add a space to usernam

Re: [Dovecot] Trim trailing whitespace from username

2008-05-16 Thread Timo Sirainen
On Fri, 2008-05-16 at 00:48 -0700, David Jonas wrote: > Recently we changed Postfix to use Dovecot for our SASL authentication > and we ran into trouble with some of our clients having extraneous > spaces at the end of their usernames. The quick fix was to add a space > to username_chars. The sl

[Dovecot] Trim trailing whitespace from username

2008-05-16 Thread David Jonas
Recently we changed Postfix to use Dovecot for our SASL authentication and we ran into trouble with some of our clients having extraneous spaces at the end of their usernames. The quick fix was to add a space to username_chars. The slightly longer fix was a pretty simple patch to Dovecot. I put