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

port none not open?

 [1/2] from: bry:itnisk at: 30-Oct-2002 13:00

What does that message mean, especially in the context of saying something like the following: net-utils/url-parser/user-char: union net-utils/url-parser/user-char make bitset! "/" mailbox: open pop://user/account:[password--itnisk--com] port? Mailbox comment {the above returns true} b: first mailbox returns ** Access Error: Port none not open ** Near: first mailbox it might be good if error codes were not expressed as double negatives, I cannot figure out what port none not open should mean. Basically what I want is to adapt the groups email example from the user guide to write a collection of emails to disk. Actually it would be good enough if I could just loop through the mailbox and write each email to disk for the first step.

 [2/2] from: anton::lexicon::net at: 31-Oct-2002 22:19

Bryan, That's a bit confusing at first. But the word none refers to the rebol value none It's not an attempt to confuse you. The error reporting code looked to represent the port in text. It found a none value, so that's how it's formed. How the port got to be none is another question. I think when you requested the first mail from the pop port, that causes some pop scheme code to run. That code probably couldn't handle the slash in the user name and the port was set to none as a result of the way that code was written. Since it was probably not written with slashes in mind, the port is probably unintentionally set to none. I don't have a solution, but I still also recommend using the way mentioned by G. Scott Jones to either open or read mail. mailbox: open [ scheme: 'pop host: "" user: "user/account" pass: "password" ] b: first mailbox ; etc. Anton.