The following issue has been RESOLVED.
======================================================================
http://www.dbmail.org/mantis/view.php?id=578
======================================================================
Reported By: joshmarshall
Assigned To: paul
======================================================================
Project: DBMail
Issue ID: 578
Category: IMAP daemon
Reproducibility: random
Severity: minor
Priority: high
Status: resolved
target:
Resolution: fixed
Fixed in Version: 2.2.5
======================================================================
Date Submitted: 26-Apr-07 04:04 CEST
Last Modified: 01-Jun-07 22:07 CEST
======================================================================
Summary: Thunderbird gives error invalid message range
specified
Description:
When accessing the mailbox via IMAP, Mozilla Thunderbird (tested on 1.5.0.9
and above) periodically comes up with an error message "invalid message
range specified" after deleting some emails.
Using Debian package version 2.2.5-rc
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
related to 0000575 Search using PINE returns incorrect res...
======================================================================
----------------------------------------------------------------------
ezaton - 28-Apr-07 12:16
----------------------------------------------------------------------
Same here, using 2.2.4 (latest release).
I was unable to pinpoint the problem up to a reproducible state.
Here's my log:
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Info:[imap]
imap4.c,IMAPClientHandler(+325): Finished command uid [0]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Info:[imap]
imap4.c,IMAPClientHandler(+195): COMMAND: [771 UID fetch 538293 (UID
RFC822.SIZE FLAGS BODY.PEEK[HEA
DER.FIELDS (From To Cc Subject Date Message-ID Priority X-Priority
References Newsgroups In-Reply-To Content-Type Content-Type)])]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[0]: 'fetch'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[1]: '538293'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[2]: '('
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[3]: 'UID'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[4]: 'RFC822.SIZE'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[5]: 'FLAGS'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[6]: 'BODY.PEEK'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[7]: '['
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[8]: 'HEADER.FIELDS'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[9]: '('
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[10]: 'From'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[11]: 'To'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[12]: 'Cc'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[13]: 'Subject'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[14]: 'Date'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[15]: 'Message-ID'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[16]: 'Priority'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[17]: 'X-Priority'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[18]: 'References'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[19]: 'Newsgroups'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[20]: 'In-Reply-To'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[21]: 'Content-Type'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[22]: 'Content-Type'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[23]: ')'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[24]: ']'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,build_args_array_ext(+2210): arg[25]: ')'
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Info:[imap]
imap4.c,IMAPClientHandler(+308): Executing command uid...
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[db]
db.c,db_acl_has_right(+4204): checking ACL [read_flag] for user [3] on
mailbox [1]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[db]
db.c,db_acl_has_right(+4214): mailbox [1] is owned by user [3], is that
also [3]?
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[db]
db.c,db_acl_has_right(+4218): mailbox [1] is owned by user [3], giving all
rights
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args(+479): parse
args[2] = [UID]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args(+576): args[idx
= 2] = UID (return
ing 3)
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args(+479): parse
args[3] = [RFC822.SIZ
E]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args(+576): args[idx
= 3] = RFC822.SIZE
(returning 4)
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args(+479): parse
args[4] = [FLAGS]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args(+576): args[idx
= 4] = FLAGS (retu
rning 5)
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args(+479): parse
args[5] = [BODY.PEEK]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,_imap_session_fetch_parse_partspec(+315): token
[HEADER.FIELDS], nextto
ken [(]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,_imap_session_fetch_parse_octet_range(+414): parse
token [)]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,dbmail_imap_session_fetch_parse_args(+479): parse
args[24] = [)]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[sql]
dbmysql.c,db_query(+286): query [SELECT message_idnr FROM dbmail_messages
WHERE mailbox_idnr = 1 AND
status IN (0,1) ORDER BY message_idnr]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[mailbox]
dbmail-mailbox.c,mailbox_build_uid_map(+156): ids [1136], msn [1136]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[mailbox]
dbmail-mailbox.c,dbmail_mailbox_get_set(+1273): [538293]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[misc]
misc.c,g_tree_merge(+1242): a[0] [OR] b[0] -> a[0]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Debug:[imapsession]
dbmail-imapsession.c,dbmail_imap_session_printf(+1314): RESPONSE: [771 BAD
invalid message range specified^M ]
Apr 28 13:05:21 rafael dbmail/imap4d[10540]: Info:[imap]
imap4.c,IMAPClientHandler(+325): Finished command uid [1]
----------------------------------------------------------------------
aaron - 09-May-07 23:17
----------------------------------------------------------------------
Could you test latest SVN (rev 2546 or newer) and see if Thunderbird is any
happier now?
----------------------------------------------------------------------
rhstone - 15-May-07 02:14
----------------------------------------------------------------------
Here's a trace of the same issue occurring with PINE.
> 00000025 STORE 2256 +Flags (\SEEN)
> * 2256 FETCH (FLAGS (\Seen))
> 00000025 OK STORE completed
> 00000026 STORE 2256 +Flags (\DELETED)
> * 2256 FETCH (FLAGS (\Seen \Deleted))
> 00000026 OK STORE completed
> 00000027 SEARCH 1:2225 DELETED
> * SEARCH
> 00000027 OK SEARCH completed
> 00000028 EXPUNGE
> * 2256 EXPUNGE
> * 2254 EXPUNGE
> * 2253 EXPUNGE
> * 2252 EXPUNGE
> * 2251 EXPUNGE
> * 2250 EXPUNGE
> 00000028 OK EXPUNGE completed
> 00000029 FETCH 2247 (BODYSTRUCTURE FLAGS)
> 00000029 BAD invalid message range specified
> 0000002a FETCH 2247 BODY[TEXT]
> 0000002a BAD invalid message range specified
> 0000002b FETCH 2248 (BODYSTRUCTURE FLAGS)
> 0000002b BAD invalid message range specified
> 0000002c FETCH 2248 BODY[TEXT]
> 0000002c BAD invalid message range specified
----------------------------------------------------------------------
paul - 15-May-07 15:57
----------------------------------------------------------------------
Thanks Robbie, that trace put me right on track. Please test rev 2572. I
think I fixed it.
----------------------------------------------------------------------
rhstone - 15-May-07 18:23
----------------------------------------------------------------------
Paul, I'm delighted it helped you. I upgraded to rev 2572 and the bug seems
to be gone. However, now it looks like I'm not getting new messages as they
come in.
00000017 NOOP
* 1 RECENT
00000017 OK NOOP completed
00000018 NOOP
* 1 RECENT
00000018 OK NOOP completed
00000019 NOOP
* 1 RECENT
00000019 OK NOOP completed
0000001a NOOP
* 1 RECENT
0000001a OK NOOP completed
0000001b NOOP
* 1 RECENT
0000001b OK NOOP completed
0000001c NOOP
* 1 RECENT
0000001c OK NOOP completed
0000001d NOOP
* 1 RECENT
0000001d OK NOOP completed
0000001e NOOP
* 1 RECENT
0000001e OK NOOP completed
0000001f NOOP
* 1 RECENT
0000001f OK NOOP completed
----------------------------------------------------------------------
rhstone - 18-May-07 07:15
----------------------------------------------------------------------
I'm wrong about the recent message notification. I Think you've fixed this
bug and I'm placing my vote to recommend it be marked as resolved. I may
not have voting privileges, but I'll cast one anyway :-)
I'm going to keep an eye on what takes dbmail so long to offer the message
number up to PINE when a NOOP is executed. So far I have noticed it
reports
1 RECENT
but doesn't indicate the message number of the new arrival, and therefore
PINE does not execute a FETCH. It may just take a few NOOPs to do so, is
that a reasonable guess?
----------------------------------------------------------------------
paul - 18-May-07 09:41
----------------------------------------------------------------------
Robbie, there's still a problem with the noop response and new messages
coming in during a session. It's a minor problem though, and I'll fix it
tonight (gmt).
----------------------------------------------------------------------
paul - 26-May-07 19:08
----------------------------------------------------------------------
Could you please verify this was fixed by 2.2.5rc3?
Issue History
Date Modified Username Field Change
======================================================================
26-Apr-07 04:04 joshmarshall New Issue
28-Apr-07 12:16 ezaton Note Added: 0002111
28-Apr-07 12:16 ezaton Issue Monitored: ezaton
28-Apr-07 23:15 aaron Relationship added related to 0000575
09-May-07 23:17 aaron Note Added: 0002149
15-May-07 02:14 rhstone Note Added: 0002174
15-May-07 15:57 paul Note Added: 0002176
15-May-07 18:18 rhstone Note Added: 0002180
15-May-07 18:23 rhstone Note Edited: 0002180
18-May-07 07:15 rhstone Note Added: 0002186
18-May-07 09:41 paul Note Added: 0002187
26-May-07 19:08 paul Note Added: 0002217
26-May-07 19:08 paul Assigned To => paul
26-May-07 19:08 paul Status new => assigned
01-Jun-07 22:07 paul Priority normal => high
01-Jun-07 22:07 paul Status assigned => resolved
01-Jun-07 22:07 paul Resolution open => fixed
01-Jun-07 22:07 paul Fixed in Version => 2.2.5
======================================================================
_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev