bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Busy looping on my IMAP server...


From: Alain Magloire
Subject: Re: Busy looping on my IMAP server...
Date: Mon, 15 Oct 2001 20:50:05 -0400 (EDT)

> 
> Bon soir!
> 
> I have to read the code, to see what is supposed to happen, but does
> anybody with a knowledge of IMAP have a comment on how I might get to:

Send me the message.

> 
> ~/s/mailutils/examples $ make mbox-explode && mbox-explode imap://sroberts:=
> address@hidden gg
> make: `mbox-explode' is up to date.
> g1 SELECT INBOX
> g1 OK [READ-WRITE] SELECT completed
> g2 FETCH 1 BODYSTRUCTURE
> g2 OK FETCH completed
> msg 001: 01 parts
> msg 001: part 01 > gg/m001.p01
> g3 FETCH 1 BODYSTRUCTURE
> g3 OK FETCH completed
> g4 FETCH 1 (FLAGS RFC822.SIZE BODY.PEEK[HEADER.FIELDS (Bcc Cc Content-Langu=
> age Content-Transfer-Encoding Content-Type Date From In-Reply-To Message-ID=
>  Reference Reply-To Sender Subject To X-UIDL)])
> g4 OK FETCH completed
> g5 FETCH 1 BODY.PEEK[HEADER.FIELDS (Content-Transfer-Encoding)]<0.1053>
> g5 OK FETCH completed
> g6 FETCH 1 BODY.PEEK[TEXT]<0.2048>
> g6 OK FETCH completed
> g7 FETCH 1 BODY.PEEK[TEXT]<510.2048>
>  .... just hanging.... so I attach with gdb...
> 
> And step in circle a little bit, and print out:
> 
> (gdb)=20
> imap_fetch (f_imap=3D0x80dec30) at folder_imap.c:1513
> 1513          if (strncmp (token, "FLAGS", 5) =3D=3D 0)
> (gdb)=20
> 1517          else if (strcasecmp (token, "BODY") =3D=3D 0)
> (gdb)=20
> 1524          else if (strcasecmp (token, "BODYSTRUCTURE") =3D=3D 0)
> (gdb)=20
> 1528          else if (strncmp (token, "INTERNALDATE", 12) =3D=3D 0)
> (gdb)=20
> 1532          else if (strncmp (token, "RFC822", 10) =3D=3D 0)
> (gdb)=20
> 1557          else if (strncmp (token, "UID", 3) =3D=3D 0)
> (gdb)=20
> 1562        }
> (gdb) p token
> $2 =3D "3\000DY", '\000' <repeats 84 times>, "T\203\005\b=F4=FB=FF=BF\003\0=
> 00\000\000\000\000\000\000T\203\005\b=F4=FB=FF=BF", '\000' <repeats 11 time=
> s>, "h`%\r\b"
> 
> I seem to be busy looping on the same chunk of text here, no more reads, ju=
> st
> going in and out of imap_token()...
> 
> Doesn't happen on all messages, either... just this one.

imap_token() should have advance the string on each iterations.

> Ok, I have to go get something to eat.

Later.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]