[EMAIL PROTECTED] wrote:
>
> HI,
>
> Can anyone tell me where
> I should add the command
> "remove mailbox" in this
> script.
>
> while [not tail? mailbox] [
> msg: import-email first mailbox
> print [
> "From: " first msg/from
> "Subject: " msg/subject
> ]
> remove mailbox
> mailbox: next mailbox <--- Remove this line
> ]
>
> No matter where I put it in my script,
> it won't delete all my messages. ??
>
> I sent myself 3 emails and only
> one was deleted. And no matter
> how many times I re-ran the script,
> I can't delete the other two.??
The problem is this that after you do a 'remove mailbox, the mailbox
will automatically point at the next message.
>> foo: [1 2 3]
== [1 2 3]
>> remove foo
== [2 3]
>> foo: next foo
== [3]
As you can see, after the remove, you don't need to use 'next.
Julian Kinraid