* [9fans] pop3
@ 2002-09-08 9:00 arisawa
0 siblings, 0 replies; 7+ messages in thread
From: arisawa @ 2002-09-08 9:00 UTC (permalink / raw)
To: 9fans
Hello,
This day I received a mail with long long long single line CC field.
The size is over 100kB!
I tried pop3 but both pop3 server and client failed into endless
loop.
Where should I fix ?
And I hate such a mail. How can I cut that ?
cpu% mail
1 105009 9/08 10:18 dmuka22@eircom.net
...
cpu% ps
arisawa 52759 6:45 0:00 280K Ready pop3
cpu% acid 52830
/proc/52830/text:386 plan 9 executable
/sys/lib/acid/port
/sys/lib/acid/386
acid: stk()
At pc:0x0002002d:memchr+0x13 /sys/src/libc/386/memchr.s:13
memchr(n=0x00002000,p=0x00030728,c=0x0000000a)
/sys/src/libc/386/memchr.s:4
called from Brdline+0x5d /sys/src/libbio/brdline.c:29
Brdline(bp=0x000306f0,delim=0x0000000a) /sys/src/libbio/brdline.c:7
called from readmbox+0x31d /usr/arisawa/src/pop3/pop3.c:243
readmbox(box=0x0002d3b8) /usr/arisawa/src/pop3/pop3.c:164
called from dologin+0x239 /usr/arisawa/src/pop3/pop3.c:759
dologin(response=0x7fffeb91) /usr/arisawa/src/pop3/pop3.c:719
called from apopcmd+0x39 /usr/arisawa/src/pop3/pop3.c:796
apopcmd(arg=0x7fffeb89) /usr/arisawa/src/pop3/pop3.c:789
called from main+0x15d /usr/arisawa/src/pop3/pop3.c:138
main(argv=0x7fffefdc,argc=0x00000000)
/usr/arisawa/src/pop3/pop3.c:91
called from _main+0x31 /sys/src/libc/386/main9.s:16
acid:
echo kill > /proc/52830/ctl
cpu%
Kenji Arisawa
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] pop3
@ 2002-09-08 10:49 arisawa
0 siblings, 0 replies; 7+ messages in thread
From: arisawa @ 2002-09-08 10:49 UTC (permalink / raw)
To: 9fans
>This day I received a mail with long long long single line CC field.
>The size is over 100kB!
This was incorrect.
`Long long long' was BCC field.
cpu% pwd
/mail/fs/mbox
cpu% ls -l 1
--r--r--r-- M 59205 arisawa arisawa 65140 Sep 8 19:35 1/bcc
--r--r--r-- M 59205 arisawa arisawa 39368 Sep 8 19:35 1/body
--r--r--r-- M 59205 arisawa arisawa 0 Sep 8 19:35 1/cc
--r--r--r-- M 59205 arisawa arisawa 43 Sep 8 19:35 1/date
--r--r--r-- M 59205 arisawa arisawa 40 Sep 8 19:35 1/digest
--r--r--r-- M 59205 arisawa arisawa 0 Sep 8 19:35 1/disposition
--r--r--r-- M 59205 arisawa arisawa 0 Sep 8 19:35 1/filename
--r--r--r-- M 59205 arisawa arisawa 18 Sep 8 19:35 1/from
--r--r--r-- M 59205 arisawa arisawa 65253 Sep 8 19:35 1/header
--r--r--r-- M 59205 arisawa arisawa 65358 Sep 8 19:35 1/info
--r--r--r-- M 59205 arisawa arisawa 0 Sep 8 19:35 1/inreplyto
--r--r--r-- M 59205 arisawa arisawa 2 Sep 8 19:35 1/lines
--r--r--r-- M 59205 arisawa arisawa 0 Sep 8 19:35 1/messageid
--r--r--r-- M 59205 arisawa arisawa 0 Sep 8 19:35 1/mimeheader
--r--r--r-- M 59205 arisawa arisawa 105009 Sep 8 19:35 1/raw
--r--r--r-- M 59205 arisawa arisawa 39368 Sep 8 19:35 1/rawbody
--r--r--r-- M 59205 arisawa arisawa 65640 Sep 8 19:35 1/rawheader
--r--r--r-- M 59205 arisawa arisawa 23 Sep 8 19:35 1/replyto
--r--r--r-- M 59205 arisawa arisawa 0 Sep 8 19:35 1/sender
--r--r--r-- M 59205 arisawa arisawa 0 Sep 8 19:35 1/subject
--r--r--r-- M 59205 arisawa arisawa 23 Sep 8 19:35 1/to
--r--r--r-- M 59205 arisawa arisawa 10 Sep 8 19:35 1/type
--r--r--r-- M 59205 arisawa arisawa 43 Sep 8 19:35 1/unixdate
--r--r--r-- M 59205 arisawa arisawa 68 Sep 8 19:35 1/unixheader
cpu%
Actual body size is not 39368 but very small.
cpu% cat 1/body
[many many may mail addresses is sniped]
@graphic-designer.com,slavinm@delphi.com,chwa@bbs.openfind.com.tw
Subject: CONFIDENTIAL BUSINESS PROPOSAL!!!
Date: Sun, 8 Sep 2002 02:16:47 +0100
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
X-Originating-IP: 192.116.116.5
X-Mailer: Eircom Net CRC Webmail (http://www.eircom.net/)
Organization: Eircom Net (http://www.eircom.net/)
[mail body continued # snipped]
Kenji Arisawa
^ permalink raw reply [flat|nested] 7+ messages in thread
* [9fans] pop3
@ 2004-05-10 6:56 zer0db
0 siblings, 0 replies; 7+ messages in thread
From: zer0db @ 2004-05-10 6:56 UTC (permalink / raw)
To: 9fans
I cant seem to connect to a remote mail server (pop3) and display it as a
local file. Would I use upas/fs <remote_server> <mount_point>. I know im
missing something cause the last time I got it to work I had to
authenticate then everything will show up in faces.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] pop3
@ 2004-05-10 7:28 YAMANASHI Takeshi
0 siblings, 0 replies; 7+ messages in thread
From: YAMANASHI Takeshi @ 2004-05-10 7:28 UTC (permalink / raw)
To: 9fans
On Mon May 10 15:58:32 JST 2004, zer0db@fl2600.com wrote:
> I cant seem to connect to a remote mail server (pop3) and display it as a
> local file. Would I use upas/fs <remote_server> <mount_point>.
Options to upas/fs shouldn't be `upas/fs -f /pop/mail_server/user_name' ?
--
^ permalink raw reply [flat|nested] 7+ messages in thread
* [9fans] pop3
@ 2005-02-01 6:59 arisawa
2005-02-01 13:00 ` arisawa
2005-02-01 14:08 ` arisawa
0 siblings, 2 replies; 7+ messages in thread
From: arisawa @ 2005-02-01 6:59 UTC (permalink / raw)
To: 9fans
Hello,
My pop3 is something wrong after I rebooted my server.
<Problem 1>
That runs in infinite loop if I try to get my mail with clear text password.
ar% ps
...
arisawa 13505 95:16 0:00 332K Ready pop3
...
ar%
ar% acid 13505
/proc/13505/text:386 plan 9 executable
/sys/lib/acid/port
/sys/lib/acid/386
acid: stk()
memchr(n=0x2000,p=0x38358,c=0xa)+0x13 /sys/src/libc/386/memchr.s:13
Brdline(bp=0x38320,delim=0xa)+0x5b /sys/src/libbio/brdline.c:29
readmbox(box=0x2e59c)+0x31d /sys/src/cmd/upas/pop3/pop3.c:245
dologin(response=0x7fffeb61)+0x11b /sys/src/cmd/upas/pop3/pop3.c:767
apopcmd(arg=0x7fffeb59)+0x39 /sys/src/cmd/upas/pop3/pop3.c:801
main(argv=0x7fffefac,argc=0x0)+0x15d /sys/src/cmd/upas/pop3/pop3.c:140
_main+0x31 /sys/src/libc/386/main9.s:16
acid: lstk()
memchr(n=0x2000,p=0x38358,c=0xa)+0x13 /sys/src/libc/386/memchr.s:13
Brdline(bp=0x38320,delim=0xa)+0x5b /sys/src/libbio/brdline.c:29
ip=0x38358
i=0x2000
j=0x134
ep=0x0
readmbox(box=0x2e59c)+0x31d /sys/src/cmd/upas/pop3/pop3.c:245
err=0x33c50
pid=0x34c2
fd=0x3
d=0x4bf30
nd=0xee
i=0xe1
m=0x37f2c
buf=0x2f363232
n=0x28
lines=0x7
b=0x38320
dologin(response=0x7fffeb61)+0x11b /sys/src/cmd/upas/pop3/pop3.c:767
ai=0x33c60
apopcmd(arg=0x7fffeb59)+0x39 /sys/src/cmd/upas/pop3/pop3.c:801
resp=0x7fffeb61
main(argv=0x7fffefac,argc=0x0)+0x15d /sys/src/cmd/upas/pop3/pop3.c:140
_argc=0x0
_args=0x0
fd=0x0
cmdbuf=0x504f5041
arg=0x7fffeb59
c=0x2b160
_main+0x31 /sys/src/libc/386/main9.s:16
acid:
Of couse I know my server reject plain text password.
<Problem 2>
I cannot get my mail using MD5 charange/response.
pop3 does not fall into infinite loop.
/sys/log/auth shows I am authenticate.
/sys/log/pop3 says nothing.
I also tried upas/pop3 with -d option.
The debugging information shows the last message is
ar% tail /sys/log/pop3
-> +OK POP3 server ready <42e43b7c405786ef.29766d694ebdd862@hera>
CAPA
-> +OK
-> TOP
-> PIPELINING
-> UIDL
-> STLS
-> .
That comes "capa" request from client.
What should I check?
Thanks in advance.
Kenji Arisawa
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] pop3
2005-02-01 6:59 arisawa
@ 2005-02-01 13:00 ` arisawa
2005-02-01 14:08 ` arisawa
1 sibling, 0 replies; 7+ messages in thread
From: arisawa @ 2005-02-01 13:00 UTC (permalink / raw)
To: 9fans
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] pop3
2005-02-01 6:59 arisawa
2005-02-01 13:00 ` arisawa
@ 2005-02-01 14:08 ` arisawa
1 sibling, 0 replies; 7+ messages in thread
From: arisawa @ 2005-02-01 14:08 UTC (permalink / raw)
To: 9fans
I said
><Problem 2>
>I cannot get my mail using MD5 charange/response.
>pop3 does not fall into infinite loop.
>/sys/log/auth shows I am authenticate.
>/sys/log/pop3 says nothing.
however
>/sys/log/auth shows I am authenticate.
is probably my mistake.
The first command from Mac is CAPA and then pop3 server responds
and nothing.
Kenji Arisawa
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-02-01 14:08 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-08 9:00 [9fans] pop3 arisawa
2002-09-08 10:49 arisawa
2004-05-10 6:56 zer0db
2004-05-10 7:28 YAMANASHI Takeshi
2005-02-01 6:59 arisawa
2005-02-01 13:00 ` arisawa
2005-02-01 14:08 ` arisawa
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).