From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6a1c6d93eadf8a463b1de679a505c740@ar.aichi-u.ac.jp> Date: Tue, 1 Feb 2005 22:00:06 +0900 From: arisawa@ar.aichi-u.ac.jp To: 9fans@cse.psu.edu Subject: Re: [9fans] pop3 In-Reply-To: <3b447c77786671064c7444e6bdb3fca8@ar.aichi-u.ac.jp> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 3b9e9492-eace-11e9-9e20-41e7f4b1d025 Half of the problem is resolved. Mac OSX is cleaver enough because the mail reader use challenge/response even if I instruct it to use clear text password, if pop3 server accepts challenge/response. The following loop in pop3.c makes a problem. readmbox(char *box) { .... for(;;){ p = Brdline(b, '\n'); if(p == nil){ if(Blinelen(b) == 0) break; }else lines++; } .... } The code is unclear if p==nil and Blinelen(b) != 0 happens. I replaced it by for(;;){ p = Brdline(b, '\n'); if(p == nil) break; else lines++; } then infinite loop is stopped. Now I can get mails from my server if I instruct Mac OXS to use clear password. However if I instruct it to use challenge/response, I cannot get mails. I don't know the reason yet. Kenji Arisawa