[REBOL] IMAP handler bug
From: gchiu::compkarori::co::nz at: 11-May-2002 11:42
I've got 3528 ( and increasing ) messages in my INBOX.
>> rebol/version
== 2.5.2.3.1
the following script locks up at message 2699, when memory
usage jumps suddenly from about 9Mb to 22Mb, and CPU usage
stays at about 95%. I can interrupt the script with ESC,
but memory usage stays the same, until I quit Rebol. The
same thing happens with stable versions of Rebol as well,
and under IOS.
Rebol [
title: "test IMAP"
file: %testimap.r
author: "Graham Chiu"
date: 10-May-2002
purpose: {
test IMAP
}
]
server: 192.168.1.190/INBOX ; shop
user: "userid"
password: "mypassword"
mailbox: open to-url rejoin [ "imap://" user ":" password
@
server ]
print [ "Number of messages: " length? mailbox ]
cnt: 0
while [ not tail? mailbox ] [
cnt: cnt + 1
prin [ " " cnt ]
msg: import-email first mailbox
mailbox: next mailbox
]
--
Graham Chiu