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

[REBOL] Mail and News

From: mario::cassani::icl::com at: 29-Jun-2001 10:48

Hallo REBOL people, I am using the following code to create a summary of the new mail I receive but (thanks to the "excellent" MS Exchange Server) there are messages without the "To:" header value making the script give error... msgheader: join msgcnt [ " From: " first msg/from " To: " first msg/to " Subject: " msg/subject " Date: " msg/date ] Having a lot of messages coming from mailing list (REBOL to mention one ;)), I'd like to minimize the overhead of big, long checks like: either not none? msg/from [ ] [ ] either not none? msg/to [ ] [ ] I prefer to use some function to convert msg/from in something else. In addition I try to position myself on the last known message the next time I check for new mail: box: open pop://... skip box msgcnt while [not tail? box] [ msg: import-email first box ; I think 'first messes ; ... next box msgcnt: msgcnt + 1 ] this doesn't work and I can live without it for mail but not for news! How can I solve these problems? Thank you for your help ============================================================ Mario Cassani PGP Key fingerprint: 9929 74CF 62E9 A7A4 60D6 05DC 8034 F354 ------------------------------------------------------------ (to) optimize: Make a program faster by improving the algorithms rather than by buying a faster machine.