Series/import-email
[1/2] from: jon_saltzman::pitzer::edu at: 9-Nov-2001 1:47
Hi all, having some trouble with this code snippet (and being a newbie):
<snippet>
displayFields: [["Jon" "message" "one"]]
while [not tail? mailbox] [
msg: import-email first mailbox
insert tail displayFields [[msg/from msg/subject msg/date]]
mailbox: next mailbox
]
</snippet>
I've got a read mailbox item, which I'm now trying to separate only the from, subject
and date, and I'm trying to put those three things into a series (I think), so I can
then plop those results into a GUI list.. it just keeps repeating the last message over
and over..
I know the pop stuff works just find, and I can print out with a join right before insert
tail - what am I missing? Thanks!
-Jon
[2/2] from: philb:upnaway at: 10-Nov-2001 9:13
Hi Jon,
This code seems to work here???
rebol []
mb: pop://user:[pass--host--com]
mailbox: open mb
displayFields: [["Jon" "message" "one"]]
while [not tail? mailbox] [
msg: import-email first mailbox
print msg/subject
insert tail displayFields [[msg/from msg/subject msg/date]]
mailbox: next mailbox
]
close mailbox
halt
Cheers Phil
=== Original Message ===
Hi all, having some trouble with this code snippet (and being a newbie):
<snippet>
displayFields: [["Jon" "message" "one"]]
while [not tail? mailbox] [
msg: import-email first mailbox
insert tail displayFields [[msg/from msg/subject msg/date]]
mailbox: next mailbox
]
</snippet>
I've got a read mailbox item, which I'm now trying to separate only the from, subject
and date, and I'm trying to put those three things into a series (I think), so I can
then plop those results into a GUI list.. it just keeps repeating the last message over
and over..
I know the pop stuff works just find, and I can print out with a join right before insert
tail - what am I missing? Thanks!
-Jon