9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: arisawa@ar.aichi-u.ac.jp
To: 9fans@cse.psu.edu
Subject: Re: [9fans] pop3
Date: Tue,  1 Feb 2005 22:00:06 +0900	[thread overview]
Message-ID: <6a1c6d93eadf8a463b1de679a505c740@ar.aichi-u.ac.jp> (raw)
In-Reply-To: <3b447c77786671064c7444e6bdb3fca8@ar.aichi-u.ac.jp>

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


  reply	other threads:[~2005-02-01 13:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-01  6:59 arisawa
2005-02-01 13:00 ` arisawa [this message]
2005-02-01 14:08 ` arisawa
  -- strict thread matches above, loose matches on Subject: below --
2004-05-10  7:28 YAMANASHI Takeshi
2004-05-10  6:56 zer0db
2002-09-08 10:49 arisawa
2002-09-08  9:00 arisawa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6a1c6d93eadf8a463b1de679a505c740@ar.aichi-u.ac.jp \
    --to=arisawa@ar.aichi-u.ac.jp \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).