Hello
I run dbmail-2.1.3-svn with nearly 3500 messages in IMAP folders.
When I tried to read INBOX with 1108 messages, I get:
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [* LIST () "/" "INBOX"^M ]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [4 OK LIST completed^M ]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: Finished
command list [0]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: line read
for PID 29662
Oct 18 08:33:36 fox dbmail/imap4d[29662]: COMMAND: [5 SELECT "INBOX"]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: arg[0]: 'INBOX'
Oct 18 08:33:36 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: Executing
command select...
Oct 18 08:33:36 fox dbmail/imap4d[29662]: db.c,db_findmailbox: looking for
mailbox with FQN [INBOX].
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT mailbox_idnr FROM dbmail_mailboxes WHERE name='INBOX' AND
owner_idnr='2']
Oct 18 08:33:36 fox dbmail/imap4d[29662]: db.c,db_acl_has_right: checking ACL
for user [2] on mailbox [1]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT mailbox_idnr FROM dbmail_mailboxes WHERE mailbox_idnr = '1' AND
owner_idnr = '2']
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT no_select FROM dbmail_mailboxes WHERE mailbox_idnr = '1']
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT
permission,seen_flag,answered_flag,deleted_flag,flagged_flag,recent_flag,draft_flag
FROM dbmail_mailboxes WHERE mailbox_idnr = '1']
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT 'a',COUNT(*) FROM dbmail_messages WHERE mailbox_idnr='1' AND
(status='0' OR status='1') UNION SELECT 'b',COUNT(*) FROM dbmail_messages
WHERE mailbox_idnr='1' AND (status='0' OR status='1') AND seen_flag=1 UNION
SELECT 'c',COUNT(*) FROM dbmail_messages WHERE mailbox_idnr='1' AND
(status='0' OR status='1') AND recent_flag=1]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT message_idnr FROM dbmail_messages WHERE mailbox_idnr = '1' AND status
< '2' ORDER BY message_idnr ASC]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: db.c,db_getmailbox: exists [1107]
num_rows [1107]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT message_idnr+1 FROM dbmail_messages ORDER BY message_idnr DESC LIMIT
1]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT
permission,seen_flag,answered_flag,deleted_flag,flagged_flag,recent_flag,draft_flag
FROM dbmail_mailboxes WHERE mailbox_idnr = '1']
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT 'a',COUNT(*) FROM dbmail_messages WHERE mailbox_idnr='1' AND
(status='0' OR status='1') UNION SELECT 'b',COUNT(*) FROM dbmail_messages
WHERE mailbox_idnr='1' AND (status='0' OR status='1') AND seen_flag=1 UNION
SELECT 'c',COUNT(*) FROM dbmail_messages WHERE mailbox_idnr='1' AND
(status='0' OR status='1') AND recent_flag=1]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT message_idnr FROM dbmail_messages WHERE mailbox_idnr = '1' AND status
< '2' ORDER BY message_idnr ASC]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: db.c,db_getmailbox: exists [1107]
num_rows [1107]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT message_idnr+1 FROM dbmail_messages ORDER BY message_idnr DESC LIMIT
1]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [* 1107 EXISTS^M ]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [* 0 RECENT^M ]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [* FLAGS (\Seen \Answered
\Deleted \Flagged \Draft \Recent)^M ]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [* OK [PERMANENTFLAGS
(\Seen \Answered \Deleted \Flagged \Draft \Recent)]^M ]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [* OK [UIDNEXT 39537]
Predicted next UID^M ]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [* OK [UIDVALIDITY 1] UID
value^M ]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT MIN(message_idnr) FROM dbmail_messages WHERE mailbox_idnr = '1' AND
status < '2' AND seen_flag = '0']
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [* OK [UNSEEN 1104] first
unseen message^M ]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT message_idnr FROM dbmail_messages WHERE recent_flag = 1 AND
mailbox_idnr = '1']
Oct 18 08:33:36 fox dbmail/imap4d[29662]:
dbmail-imapsession.c,dbmail_imap_session_mailbox_select_recent: recent [0] in
mailbox [1]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [5 OK [READ-WRITE] SELECT
completed^M ]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: Finished
command select [0]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT
permission,seen_flag,answered_flag,deleted_flag,flagged_flag,recent_flag,draft_flag
FROM dbmail_mailboxes WHERE mailbox_idnr = '1']
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT 'a',COUNT(*) FROM dbmail_messages WHERE mailbox_idnr='1' AND
(status='0' OR status='1') UNION SELECT 'b',COUNT(*) FROM dbmail_messages
WHERE mailbox_idnr='1' AND (status='0' OR status='1') AND seen_flag=1 UNION
SELECT 'c',COUNT(*) FROM dbmail_messages WHERE mailbox_idnr='1' AND
(status='0' OR status='1') AND recent_flag=1]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT message_idnr FROM dbmail_messages WHERE mailbox_idnr = '1' AND status
< '2' ORDER BY message_idnr ASC]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: db.c,db_getmailbox: exists [1107]
num_rows [1107]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT message_idnr+1 FROM dbmail_messages ORDER BY message_idnr DESC LIMIT
1]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: line read
for PID 29662
Oct 18 08:33:36 fox dbmail/imap4d[29662]: COMMAND: [6 UID FETCH 39452 (UID
RFC822.SIZE FLAGS BODY.PEEK[])]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: arg[0]: 'FETCH'
Oct 18 08:33:36 fox dbmail/imap4d[29662]: arg[1]: '39452'
Oct 18 08:33:36 fox dbmail/imap4d[29662]: arg[2]: '('
Oct 18 08:33:36 fox dbmail/imap4d[29662]: arg[3]: 'UID'
Oct 18 08:33:36 fox dbmail/imap4d[29662]: arg[4]: 'RFC822.SIZE'
Oct 18 08:33:36 fox dbmail/imap4d[29662]: arg[5]: 'FLAGS'
Oct 18 08:33:36 fox dbmail/imap4d[29662]: arg[6]: 'BODY.PEEK'
Oct 18 08:33:36 fox dbmail/imap4d[29662]: arg[7]: '['
Oct 18 08:33:36 fox dbmail/imap4d[29662]: arg[8]: ']'
Oct 18 08:33:36 fox dbmail/imap4d[29662]: arg[9]: ')'
Oct 18 08:33:36 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: Executing
command uid...
Oct 18 08:33:36 fox dbmail/imap4d[29662]: db.c,db_acl_has_right: checking ACL
for user [2] on mailbox [1]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT mailbox_idnr FROM dbmail_mailboxes WHERE mailbox_idnr = '1' AND
owner_idnr = '2']
Oct 18 08:33:36 fox dbmail/imap4d[29662]:
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args: parse args[2] =
[UID]
Oct 18 08:33:36 fox dbmail/imap4d[29662]:
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args: args[idx = 2] =
UID (returning 3)
Oct 18 08:33:36 fox dbmail/imap4d[29662]:
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args: parse args[3] =
[RFC822.SIZE]
Oct 18 08:33:36 fox dbmail/imap4d[29662]:
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args: args[idx = 3] =
RFC822.SIZE (returning 4)
Oct 18 08:33:36 fox dbmail/imap4d[29662]:
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args: parse args[4] =
[FLAGS]
Oct 18 08:33:36 fox dbmail/imap4d[29662]:
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args: args[idx = 4] =
FLAGS (returning 5)
Oct 18 08:33:36 fox dbmail/imap4d[29662]:
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args: parse args[5] =
[BODY.PEEK]
Oct 18 08:33:36 fox dbmail/imap4d[29662]:
dbmail-imapsession.c,_imap_session_fetch_parse_octet_range: parse token [)]
Oct 18 08:33:36 fox dbmail/imap4d[29662]:
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args: parse args[8] =
[)]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: imapcommands.c,_ic_fetch:
hdrparse_needed [0]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: imapcommands.c,_ic_fetch:
msgparse_needed [0]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: imapcommands.c,_ic_fetch:
fetch_start [39452] fetch_end [39452]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT seen_flag, answered_flag, deleted_flag, flagged_flag, draft_flag,
recent_flag, DATE_FORMAT(internal_date, '%Y-%m-%d %T'), rfcsize, message_idnr
FROM dbmail_messages msg, dbmail_physmessage pm WHERE pm.id =
msg.physmessage_id AND message_idnr BETWEEN '39452' AND '39452' AND
mailbox_idnr = '1' AND status < '2' ORDER BY message_idnr ASC]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [* 1100 FETCH (]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [RFC822.SIZE 2409]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [ ]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [FLAGS (\Seen \Answered)]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [ ]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [UID 39452]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: RESPONSE: [ ]
Oct 18 08:33:36 fox dbmail/imap4d[29662]:
dbmail-imapsession.c,_imap_cache_update: cache message [39452] filter [1]
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT physmessage_id FROM dbmail_messages WHERE message_idnr = '39452']
Oct 18 08:33:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT messageblk FROM dbmail_messageblks WHERE physmessage_id = '19871'
ORDER BY messageblk_idnr]
Oct 18 08:33:37 fox dbmail/imap4d[29662]:
dbmail-message.c,_set_content_from_stream: parse message
Oct 18 08:33:37 fox dbmail/imap4d[29662]:
dbmail-imapsession.c,_imap_cache_update: cache size [2409]
Oct 18 08:33:37 fox dbmail/imap4d[29662]: RESPONSE: [BODY[] {2409}^M ]
Oct 18 08:33:37 fox dbmail/imap4d[29662]: RESPONSE: [)^M ]
Oct 18 08:33:37 fox dbmail/imap4d[29662]: RESPONSE: [6 OK UID FETCH
completed^M ]
Oct 18 08:33:37 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: Finished
command uid [0]
Oct 18 08:34:36 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: line read
for PID 29662
Oct 18 08:34:36 fox dbmail/imap4d[29662]: COMMAND: [7 NOOP]
Oct 18 08:34:36 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: Executing
command noop...
Oct 18 08:34:36 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: Finished
command noop [0]
Oct 18 08:34:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT
permission,seen_flag,answered_flag,deleted_flag,flagged_flag,recent_flag,draft_flag
FROM dbmail_mailboxes WHERE mailbox_idnr = '1']
Oct 18 08:34:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT 'a',COUNT(*) FROM dbmail_messages WHERE mailbox_idnr='1' AND
(status='0' OR status='1') UNION SELECT 'b',COUNT(*) FROM dbmail_messages
WHERE mailbox_idnr='1' AND (status='0' OR status='1') AND seen_flag=1 UNION
SELECT 'c',COUNT(*) FROM dbmail_messages WHERE mailbox_idnr='1' AND
(status='0' OR status='1') AND recent_flag=1]
Oct 18 08:34:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT message_idnr FROM dbmail_messages WHERE mailbox_idnr = '1' AND status
< '2' ORDER BY message_idnr ASC]
Oct 18 08:34:36 fox dbmail/imap4d[29662]: db.c,db_getmailbox: exists [1108]
num_rows [1108]
Oct 18 08:34:36 fox dbmail/imap4d[29662]: dbmysql.c,db_query: executing query
[SELECT message_idnr+1 FROM dbmail_messages ORDER BY message_idnr DESC LIMIT
1]
Oct 18 08:34:36 fox dbmail/imap4d[29662]: RESPONSE: [* 1108 EXISTS^M ]
Oct 18 08:34:36 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: ok update
sent^M
Oct 18 08:34:36 fox dbmail/imap4d[29662]: RESPONSE: [* 1 RECENT^M ]
Oct 18 08:34:36 fox dbmail/imap4d[29662]: RESPONSE: [7 OK NOOP completed^M ]
Oct 18 08:34:36 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: tag = 7
*** glibc detected *** corrupted double-linked list: 0x080f94e0 ***
Oct 18 08:34:58 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: line read
for PID 29662
Oct 18 08:34:58 fox dbmail/imap4d[29662]: COMMAND: [8 NOOP]
Oct 18 08:34:58 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: Executing
command noop...
Oct 18 08:34:58 fox dbmail/imap4d[29662]: imap4.c,IMAPClientHandler: Finished
command noop [0]
and I can't read _new_ messages - those, that was not cashed by mail client
Old messaged read OK.
When I run dbmail-2.0.7 - all ok.
--
Oleg