I done some experiments.
Logs:
A) GOOD log:
$ telnet server 143
Trying x.x.x.x
Connected to fox.
Escape character is '^]'.
* OK dbmail imap (protocol version 4r1) server 2.1 ready to run
1 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 AUTH=LOGIN ACL NAMESPACE
1 OK CAPABILITY completed
2 LOGIN "user" "password"
2 OK LOGIN completed
3 SELECT INBOX
* 1113 EXISTS
* 9 RECENT
* FLAGS (\Seen \Answered \Deleted \Flagged \Draft \Recent)
* OK [PERMANENTFLAGS (\Seen \Answered \Deleted \Flagged \Draft \Recent)]
* OK [UIDNEXT 39585] Predicted next UID
* OK [UIDVALIDITY 1] UID value
* OK [UNSEEN 1106] first unseen message
3 OK [READ-WRITE] SELECT completed
4 UID FETCH 39567 (UID RFC822.SIZE FLAGS ENVELOPE BODY.PEEK[HEADER.FIELDS
(REFERENCES)])
* 1105 FETCH (RFC822.SIZE 5080 FLAGS (\Seen \Answered \Recent) UID 39567
ENVELOPE ("Tue, 18 Oct 2005 09:24:43 +0200" "Re: [Dbmail-dev] One more bug
with dbmail-2.1.3-svn" (("Paul J Stevens" NIL "paul" "nfg.nl")) ((NIL NIL
"dbmail-dev-bounces" "dbmail.org")) (("DBMAIL Developers Mailinglist" NIL
"dbmail-dev" "dbmail.org")) (("DBMAIL Developers Mailinglist" NIL
"dbmail-dev" "dbmail.org")) NIL NIL
"<[EMAIL PROTECTED]>" "<[EMAIL PROTECTED]>")
BODY[HEADER.FIELDS (REFERENCES)] NIL)
4 OK UID FETCH completed
As you see, no glibc error
B) BAD log:
$ telnet fox 143
Trying x.x.x.x
Connected to fox.
Escape character is '^]'.
* OK dbmail imap (protocol version 4r1) server 2.1 ready to run
1 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 AUTH=LOGIN ACL NAMESPACE
1 OK CAPABILITY completed
2 LOGIN "user" "password"
2 OK LOGIN completed
3 SELECT INBOX
* 1113 EXISTS
* 9 RECENT
* FLAGS (\Seen \Answered \Deleted \Flagged \Draft \Recent)
* OK [PERMANENTFLAGS (\Seen \Answered \Deleted \Flagged \Draft \Recent)]
* OK [UIDNEXT 39585] Predicted next UID
* OK [UIDVALIDITY 1] UID value
* OK [UNSEEN 1106] first unseen message
3 OK [READ-WRITE] SELECT completed
4 UID FETCH 39567,39570 (UID RFC822.SIZE FLAGS ENVELOPE
BODY.PEEK[HEADER.FIELDS (REFERENCES)])
* 1105 FETCH (RFC822.SIZE 5080 FLAGS (\Seen \Answered \Recent) UID 39567
ENVELOPE ("Tue, 18 Oct 2005 09:24:43 +0200" "Re: [Dbmail-dev] One more bug
with dbmail-2.1.3-svn" (("Paul J Stevens" NIL "paul" "nfg.nl")) ((NIL NIL
"dbmail-dev-bounces" "dbmail.org")) (("DBMAIL Developers Mailinglist" NIL
"dbmail-dev" "dbmail.org")) (("DBMAIL Developers Mailinglist" NIL
"dbmail-dev" "dbmail.org")) NIL NIL
"<[EMAIL PROTECTED]>" "<[EMAIL PROTECTED]>")
BODY[HEADER.FIELDS (REFERENCES)] NIL)
* 1106 FETCH (RFC822.SIZE 1012272 FLAGS (\Recent) UID 39570 Connection closed
by foreign host.
And now, I get glibc corrupted double-linked list.
So, if I fetch headers for more than 1 message - I get this error
(for example:
4 UID FETCH 39567,39570,39572 (UID RFC822.SIZE FLAGS ENVELOPE
BODY.PEEK[HEADER.FIELDS (REFERENCES)])
- glibc error:
... * 1106 FETCH (RFC822.SIZE 1012272 FLAGS (\Recent) UID 39570 Connection
closed by foreign host.
or:
4 UID FETCH 39570,39572 (UID RFC822.SIZE FLAGS ENVELOPE
BODY.PEEK[HEADER.FIELDS (REFERENCES)])
- also get error:
... * 1107 FETCH (RFC822.SIZE 30802 FLAGS (\Recent) UID 39572 Connection
closed by foreign host.
)
May be this help you undestand where is error.
--
Oleg