IMAP handler bug
[1/3] 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
[2/3] from: greggirwin:mindspring at: 11-May-2002 10:21
Hi Graham,
Have you tried putting a RECYCLE call inside your loop, maybe every 100 or
1000 messages?
--Gregg
[3/3] from: gchiu:compkarori at: 12-May-2002 9:26
> Have you tried putting a RECYCLE call inside your loop,
> maybe every 100 or
> 1000 messages?
>
Hi Gregg,
Yes, and it made no difference.
I had another look, and it seemed to get stuck on a message
with 3Mb of attachments. Removing that message allowed the
script to complete.
The thing was that it wasn't stalling on 'import-email but
after that ...
--
Graham Chiu