oh man,
|messages each. I'm looking into why the optimization doesn't
|scale (so to say).
i answered much too fast - the real problem is that the
"optimization" doesn't apply a MIN()imum test.
So the real fix is simply what is attached (against v14.6.2) and
what is on [master] now.
Sorry for the noise (and that third oversight),
Ciao from blooooooming Germany!
--steffen
diff --git a/imap.c b/imap.c
index f925230..f6f8f5e 100644
--- a/imap.c
+++ b/imap.c
@@ -1844,8 +1844,9 @@ imap_getheaders(int volatile bot, int topp) /* TODO should take iterator!! */
for (i = bot; i <= topp; i += chunk) {
int j = i + chunk - 1;
+ j = MIN(j, topp);
if (visible(message + j))
- /*ok = */imap_fetchheaders(&mb, message, i, (j < topp ? j : topp));
+ /*ok = */imap_fetchheaders(&mb, message, i, j);
if (interrupts)
onintr(0); /* XXX imaplock? */
}
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
S-nail-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/s-nail-users