Yes, that is more or less the right thing.  Instead of
  mail_partial_body(stream, msgno, 0, 0, 0, 0);
it would be more clear if you did
  mail_partial_text(stream, msgno, 0, 0, 0, 0);

If I were you, I would do a mail_fetch_fast() of the entire mailbox first, and then pass the actual message sizes as the "last" argument rather than passing 0.

Also, I would use a larger transfer size than "a few KB". This isn't 1987; we do have a bit more memory on our machines today. The smaller your transfer size, the slower it will be.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to