t wrote:
> foreach message messages [
> msg: import-email message
> print [
> "From: " first msg/from
> "Subject: " msg/subject
> ]
> ]
>
> I just want to change the print to write/append, or whatever, so that the
from field is not printed to the screen, but saved to a file. easly, right?
(knock on the wooden skull...)
Yes. It's almost as simple as what you say:
foreach message messages [
msg: import-email message
write/append %MyEmails.txt rejoin [
"From: " first msg/from
"Subject: " msg/subject
]
]
Just specify the name of the file, and 'rejoin (reduce and join) the block
together.
Easy!
Andrew Martin
Rolls up sleeve, and produces egg from target's ear..
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
-><-