Hello Peter,

Sunday, September 22, 2002, 8:05:25 PM, you wrote:

PCN> On Sun, Sep 22, 2002 at 06:15:08PM +0100, challenger wrote:
>> Now my next problem. This line is out of /var/log/maildir:
>> 
>> Sep 22 18:47:24 server1 pop3d: LOGIN,user=moretti^M,ip=[::ffff:X.X.X.X]
>> 
>> I've already recognized this "^M" before I got all the above problems
>> solved. Where does it come from? Somehow I expect const char *user to
>> be the username as entered by the user without any specials chars...
>> The same thing applies to const char *pass. Well, I can crop this char
>> in my auth code, but then again I think, there is something not
>> working properly.

PCN> ^M is a newline (or carriage return - I forget which it is).  You're
PCN> reading it in.  Just look for it and overwrite it with a null.

Ok. This works. I also don't know if it is lf or cr. Anyway, I've overwritten
the second last char (before null) with null, and it works perfectly.

Thanks for you help.

Markus




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to