Re: [Mutt] #3000: Deleting >50k messages from IMAP boxes fails with
#3000: Deleting >50k messages from IMAP boxes fails with Fatal error:
---------------------+------------------------------------------------------
Reporter: myon | Owner: brendan
Type: defect | Status: reopened
Priority: minor | Milestone: 1.6
Component: IMAP | Version: 1.5.17
Resolution: | Keywords:
---------------------+------------------------------------------------------
Old description:
> {{{
> Hi,
>
> I'm trying to delete some 200k messages from a 240k IMAP folder.
> Tagging ~m1-10000 and deleting/expunging works. For larger selections
> (I first tried 200k and then 50k), mutt fails with
>
> Fatal error: word too long
>
> and closes the folder.
>
> Mutt version 1.5.17, both tarball and hg HEAD.
>
> Christoph
> }}}
New description:
{{{
Hi,
I'm trying to delete some 200k messages from a 240k IMAP folder.
Tagging ~m1-10000 and deleting/expunging works. For larger selections
(I first tried 200k and then 50k), mutt fails with
Fatal error: word too long
and closes the folder.
Mutt version 1.5.17, both tarball and hg HEAD.
Christoph
}}}
--
Comment(by brendan):
the fencepost observation is worth a closer look. The time problem is
weirder, but I wonder how long it takes to do such a large expunge.
Rereading cmd_parse_expunge, it's O(ctx->msgcount) for every single
EXPUNGE message (it's pretty naive code). On a huge mailbox like this one,
that could really add up.
I don't think this bug is actually to do with the command splitting code
though. It may need merging with one of the other IMAP segfault bugs.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3000#comment:14>
Mutt <http://www.mutt.org/>
The Mutt mail user agent