Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Series/import-email

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