From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <001801c10e2e$44ad0a00$0100a8c0@winserv> From: "Michael Grunditz" To: <9fans@cse.psu.edu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0015_01C10E3F.05DAABF0" Subject: [9fans] I still dont understand... Date: Mon, 16 Jul 2001 21:33:58 +0200 Topicbox-Message-UUID: cf3b2580-eac9-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. ------=_NextPart_000_0015_01C10E3F.05DAABF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Now pop3 again... 1. I run agent 2. I copy my correct config to /mnt/auth and the correct directories = apear 3. I run upas/fs -f /pop/mailserver/user 3. First , I "got no APOP hdr from server" , I commented out that = section that didnt allow plaintext 3. retry upas/fs 4. "authentication agent failed", "if((fd =3D open(buf, ORDWR)) < 0)" = fails. 5. agent wites by default r r r but the open call wants something else , = so I changed the permissions in agent.c. 6 rerun agent , copy config , permissions changed. 7. still "authentication agent failed".. so now what ? /Michael Grunditz ------=_NextPart_000_0015_01C10E3F.05DAABF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Now pop3 again...
 
1. I run agent
2. I copy my correct config to = /mnt/auth and the=20 correct directories apear
3. I run upas/fs -f=20 /pop/mailserver/user
3. First , I "got no APOP hdr from = server" , I=20 commented out that section that didnt allow plaintext
3. retry upas/fs
4. "authentication agent failed", = "if((fd =3D=20 open(buf, ORDWR)) < 0)" fails.
5. agent wites by default r r r but the = open call=20 wants something else , so I changed the permissions in = agent.c.
6 rerun agent , copy config , = permissions=20 changed.
7. still "authentication agent=20 failed"..
 
so now what ?

/Michael=20 Grunditz
------=_NextPart_000_0015_01C10E3F.05DAABF0-- From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] I still dont understand... From: David Gordon Hogan MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010716195334.36D2F19A32@mail.cse.psu.edu> Date: Mon, 16 Jul 2001 15:53:30 -0400 Topicbox-Message-UUID: cf4f6d4c-eac9-11e9-9e20-41e7f4b1d025 There are some bugs in the upas/fs plaintext POP implementation, which probably weren't detected because upas/fs insists on APOP if the server supports it. Here's a patch for them. Note that there is another bug -- upas/fs will die if your POP mbox has 0 messages. I haven't got around to fixing that. /n/dump/2001/0716/sys/src/cmd/upas/fs/pop3.c:132,133 c /n/dump/2001/0705/sys/src/cmd/upas/fs/pop3.c:132,133 < sprint(buf, "/mnt/auth/pop/%s/%s", pop->host, pop->user); < if((fd = open(buf, OREAD)) < 0) --- > sprint(buf, "/mnt/auth/pop3/%s/%s", pop->host, pop->user); > if((fd = open(buf, ORDWR)) < 0) /n/dump/2001/0716/sys/src/cmd/upas/fs/pop3.c:469 c /n/dump/2001/0705/sys/src/cmd/upas/fs/pop3.c:469 < int nf, ppop; --- > int nf; /n/dump/2001/0716/sys/src/cmd/upas/fs/pop3.c:472,473 c /n/dump/2001/0705/sys/src/cmd/upas/fs/pop3.c:472 < ppop = strncmp(path, "/pop/", 5) == 0; < if(!ppop && strncmp(path, "/apop/", 6) != 0) --- > if(strncmp(path, "/pop/", 5) != 0 && strncmp(path, "/apop/", 6) != 0) /n/dump/2001/0716/sys/src/cmd/upas/fs/pop3.c:491 c /n/dump/2001/0705/sys/src/cmd/upas/fs/pop3.c:490,491 < pop->ppop = ppop; --- > if(strncmp(path, "/pop/", 5) == 0) > pop->ppop = 1; From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <002801c10e31$a9d528b0$0100a8c0@winserv> From: "Michael Grunditz" To: <9fans@cse.psu.edu> References: <20010716195334.36D2F19A32@mail.cse.psu.edu> Subject: Re: [9fans] I still dont understand... MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Date: Mon, 16 Jul 2001 21:58:17 +0200 Topicbox-Message-UUID: cf612bfe-eac9-11e9-9e20-41e7f4b1d025 But .. comments in source /Michael ----- Original Message ----- From: "David Gordon Hogan" To: <9fans@cse.psu.edu> Sent: Monday, July 16, 2001 9:53 PM Subject: Re: [9fans] I still dont understand... > There are some bugs in the upas/fs plaintext POP implementation, which > probably weren't detected because upas/fs insists on APOP if the server > supports it. Here's a patch for them. Note that there is another bug -- upas/fs > will die if your POP mbox has 0 messages. I haven't got around to fixing that. > > /n/dump/2001/0716/sys/src/cmd/upas/fs/pop3.c:132,133 c /n/dump/2001/0705/sys/src/cmd/upas/fs/pop3.c:132,133 > < sprint(buf, "/mnt/auth/pop/%s/%s", pop->host, pop->user); > < if((fd = open(buf, OREAD)) < 0) This doesnt work ,its now it fails... ie , this if((fd = open(buf, OREAD)) < 0) I have allredy tried that > --- > > sprint(buf, "/mnt/auth/pop3/%s/%s", pop->host, pop->user); > > if((fd = open(buf, ORDWR)) < 0) > /n/dump/2001/0716/sys/src/cmd/upas/fs/pop3.c:469 c /n/dump/2001/0705/sys/src/cmd/upas/fs/pop3.c:469 > < int nf, ppop; > --- > > int nf; > /n/dump/2001/0716/sys/src/cmd/upas/fs/pop3.c:472,473 c /n/dump/2001/0705/sys/src/cmd/upas/fs/pop3.c:472 > < ppop = strncmp(path, "/pop/", 5) == 0; > < if(!ppop && strncmp(path, "/apop/", 6) != 0) > --- > > if(strncmp(path, "/pop/", 5) != 0 && strncmp(path, "/apop/", 6) != 0) > /n/dump/2001/0716/sys/src/cmd/upas/fs/pop3.c:491 c /n/dump/2001/0705/sys/src/cmd/upas/fs/pop3.c:490,491 > < pop->ppop = ppop; > --- > > if(strncmp(path, "/pop/", 5) == 0) > > pop->ppop = 1; > This doesnt fail here .. From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <002e01c10e31$f73756f0$0100a8c0@winserv> From: "Michael Grunditz" To: <9fans@cse.psu.edu> References: <20010716195334.36D2F19A32@mail.cse.psu.edu> <024301c10e32$85ca8400$3cf7c6d4@SOMA> Subject: Re: [9fans] I still dont understand... MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Date: Mon, 16 Jul 2001 22:00:30 +0200 Topicbox-Message-UUID: cf6a5558-eac9-11e9-9e20-41e7f4b1d025 I agree , I will try that if I get the first things to go well... :) /Michael ----- Original Message ----- From: "Boyd Roberts" To: <9fans@cse.psu.edu> Sent: Monday, July 16, 2001 10:04 PM Subject: Re: [9fans] I still dont understand... > From: "David Gordon Hogan" > > Note that there is another bug -- upas/fs > > will die if your POP mbox has 0 messages. I haven't got > > around to fixing that. > > can't be too hard to fix. > > i assume it issues a STAT. this is how you do it in limbo: > > - (e, s) = request(CMD_STAT, nil); > - case e { > - ERR => > - return(s, big 0); > - OK => > - if (debug) > - sys->print("%s\n", s); > - } > - > - messages := big 0; > - size := big 0; > - (n, l) := sys->tokenize(s, " "); > - case n { > - 1 => > - sys->print("%d message%s for '%s@%s', maildrop size unknown.\n", int messages, plural(messages), user, host); > - messages = big hd l; > - > - 2 => > - messages = big hd l; > - size = big hd tl l; > - > - * => > - return (sys->sprint("unknown number of messages for '%s@%s'.\n", user, host), big 0); > - } > > then loop over messages. > > From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <003401c10e32$2ce826d0$0100a8c0@winserv> From: "Michael Grunditz" To: <9fans@cse.psu.edu> References: <20010716195334.36D2F19A32@mail.cse.psu.edu> <002801c10e31$a9d528b0$0100a8c0@winserv> Subject: Re: [9fans] I still dont understand... MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Date: Mon, 16 Jul 2001 22:02:00 +0200 Topicbox-Message-UUID: cf71ad8a-eac9-11e9-9e20-41e7f4b1d025 again.. What I wanted to say was that I allready worked around those two bugs.. /Michael ----- Original Message ----- From: "Michael Grunditz" To: <9fans@cse.psu.edu> Sent: Monday, July 16, 2001 9:58 PM Subject: Re: [9fans] I still dont understand... > But .. comments in source > > /Michael > ----- Original Message ----- > From: "David Gordon Hogan" > To: <9fans@cse.psu.edu> > Sent: Monday, July 16, 2001 9:53 PM > Subject: Re: [9fans] I still dont understand... > > > > There are some bugs in the upas/fs plaintext POP implementation, which > > probably weren't detected because upas/fs insists on APOP if the server > > supports it. Here's a patch for them. Note that there is another bug -- > upas/fs > > will die if your POP mbox has 0 messages. I haven't got around to fixing > that. > > > > /n/dump/2001/0716/sys/src/cmd/upas/fs/pop3.c:132,133 c > /n/dump/2001/0705/sys/src/cmd/upas/fs/pop3.c:132,133 > > < sprint(buf, "/mnt/auth/pop/%s/%s", pop->host, pop->user); > > < if((fd = open(buf, OREAD)) < 0) > > > This doesnt work ,its now it fails... ie , this > > if((fd = open(buf, OREAD)) < 0) > > I have allredy tried that > > > --- > > > sprint(buf, "/mnt/auth/pop3/%s/%s", pop->host, pop->user); > > > if((fd = open(buf, ORDWR)) < 0) > > /n/dump/2001/0716/sys/src/cmd/upas/fs/pop3.c:469 c > /n/dump/2001/0705/sys/src/cmd/upas/fs/pop3.c:469 > > < int nf, ppop; > > --- > > > int nf; > > /n/dump/2001/0716/sys/src/cmd/upas/fs/pop3.c:472,473 c > /n/dump/2001/0705/sys/src/cmd/upas/fs/pop3.c:472 > > < ppop = strncmp(path, "/pop/", 5) == 0; > > < if(!ppop && strncmp(path, "/apop/", 6) != 0) > > --- > > > if(strncmp(path, "/pop/", 5) != 0 && strncmp(path, "/apop/", 6) != 0) > > /n/dump/2001/0716/sys/src/cmd/upas/fs/pop3.c:491 c > /n/dump/2001/0705/sys/src/cmd/upas/fs/pop3.c:490,491 > > < pop->ppop = ppop; > > --- > > > if(strncmp(path, "/pop/", 5) == 0) > > > pop->ppop = 1; > > > > > This doesnt fail here .. > From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <024301c10e32$85ca8400$3cf7c6d4@SOMA> From: "Boyd Roberts" To: <9fans@cse.psu.edu> References: <20010716195334.36D2F19A32@mail.cse.psu.edu> Subject: Re: [9fans] I still dont understand... MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Date: Mon, 16 Jul 2001 22:04:29 +0200 Topicbox-Message-UUID: cf54df2a-eac9-11e9-9e20-41e7f4b1d025 From: "David Gordon Hogan" > Note that there is another bug -- upas/fs > will die if your POP mbox has 0 messages. I haven't got > around to fixing that. can't be too hard to fix. i assume it issues a STAT. this is how you do it in limbo: - (e, s) = request(CMD_STAT, nil); - case e { - ERR => - return(s, big 0); - OK => - if (debug) - sys->print("%s\n", s); - } - - messages := big 0; - size := big 0; - (n, l) := sys->tokenize(s, " "); - case n { - 1 => - sys->print("%d message%s for '%s@%s', maildrop size unknown.\n", int messages, plural(messages), user, host); - messages = big hd l; - - 2 => - messages = big hd l; - size = big hd tl l; - - * => - return (sys->sprint("unknown number of messages for '%s@%s'.\n", user, host), big 0); - } then loop over messages. From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] I still dont understand... From: David Gordon Hogan MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010716203342.09B0219A32@mail.cse.psu.edu> Date: Mon, 16 Jul 2001 16:33:39 -0400 Topicbox-Message-UUID: cf841d3a-eac9-11e9-9e20-41e7f4b1d025 > This doesnt work ,its now it fails... ie , this > > if((fd = open(buf, OREAD)) < 0) > > I have allredy tried that Note that there are two changes in that pair of lines: the OREAD change, and the change of the pathname from /mnt/auth/pop3/%s/%s to /mnt/auth/pop/%s/%s. While agent lets you call it "pop" or "pop3" (or whatever you like) the sample config file uses "pop", and it seemed more consistent to have "pop" or "apop", not "pop3" or "apop". So make sure that the file it is trying to open actually exists... From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] I still dont understand... From: David Gordon Hogan MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010716203946.6AF4B19A56@mail.cse.psu.edu> Date: Mon, 16 Jul 2001 16:39:38 -0400 Topicbox-Message-UUID: cffdbf46-eac9-11e9-9e20-41e7f4b1d025 > i assume it issues a STAT. this is how you do it in limbo: Nope, it goes straight ahead and issues a UIDL. Unfortunately empty mailboxes are a special case (stupid protocol). I know how to fix this, I just haven't done it yet. From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <029101c10e5b$20fd2b80$3cf7c6d4@SOMA> From: "Boyd Roberts" To: <9fans@cse.psu.edu> References: <20010716203946.6AF4B19A56@mail.cse.psu.edu> Subject: Re: [9fans] I still dont understand... MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Date: Tue, 17 Jul 2001 02:55:09 +0200 Topicbox-Message-UUID: d00d729c-eac9-11e9-9e20-41e7f4b1d025 From: "David Gordon Hogan" > Nope, it goes straight ahead and issues a UIDL. Unfortunately > empty mailboxes are a special case (stupid protocol). I know > how to fix this, I just haven't done it yet. very bad move -- human. when i wrote my client in C (and later in limbo) i took on board the advice 'be conservative in what you send'.