[plt-scheme] imap-get-messages for big sets

From: dvanhorn at emba.uvm.edu (dvanhorn at emba.uvm.edu)
Date: Tue Nov 19 15:01:15 EST 2002


I'm retrieving messages from an IMAP server in the following manner...

(let-values (((imap msg-count recent-msg-count) 
              (imap-connect ...)))
  (imap-get-messages imap (range i j) '(uid)))

Where (range i j) returns a list (i (+ i 1) ... j).

I've noticed that for a range of length ~1900 or greater, the following error

   imap-get-messages: no result for message i

Any ideas on why this is happening?

I tested this with (range 1 1850), (range 1000 2850); both succeed.  (range 1
1900), (range 1000 2900); both failed.  '(uid) vs '(header ...) doesn't seem to
matter either.  And I'm sure there are more than ~3500 messages in the mailbox
I'm testing with.

Thanks in advance,

dvanhorn at cs dot uvm dot edu

Posted on the users mailing list.