On Fri, 1 Aug 2003, Shawn Walker wrote: > How to cancel retrieving a message from the IMAP server? Say there is a > rather large email and the user decide to cancel the download, that is just > one example. But, I don't want to close the mail stream session.
The simple answer is "you can't". If you want to have a cancelable download, you need to do a series of partial fetches (e.g. by calling mail_partial_body()) and allow a cancellation after each step of the series. Look at the Pine source code since Pine works this way. -- Mark -- http://staff.washington.edu/mrc Science does not emerge from voting, party politics, or public debate. Si vis pacem, para bellum.
