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

close, Error in the docs?

 [1/5] from: yogi::helimail::de at: 7-Nov-2001 22:51


Hello, I am right new to REBOL. And there, I have an understanding-problem: In the docs (REBOL/Core) the examples shows: mailbox: pop://user:[pass--domain--tld] close mailbox But I get an error-message. If I type in the REBOL-shell: "? close", it says, that close wants a port as value. Where's the error? To the docs, I need this to delete the mails in the pop-account. cu, yogi

 [2/5] from: ryanc:iesco-dms at: 7-Nov-2001 14:07


here is your prob...
>> mailbox: pop://user:[pass--domain--tld]
== pop://user:[pass--domain--tld]
>> type? mailbox
== url! 'close will only work on an open port. Something like this should work fine: mailbox: open pop://user:[pass--domain--tld] close mailbox --Ryan Marc Michael wrote:

 [3/5] from: tim:johnsons-web at: 7-Nov-2001 13:16


On Wed, Nov 07, 2001 at 10:51:08PM +0100, Marc Michael wrote:
> Hello, > I am right new to REBOL. And there, I have an
<<quoted lines omitted: 6>>
> "close" wants a port as value. > Where's the error?
Hiya Yogi: It looks like you just assigned 'mailbox the "path" to your POP serve, which is a URL. Try it again. This time - at the rebol-shell command prompt:
>> mailbox: pop://user:[pass--domain--tld] >>type? mailbox >>url!
; you will see something like the above ; now try:
>>mymail: open mailbox
; you should now get a connection to the POP server. ; once you do, do this
>>type? mymail
; and you should get
>>port!
; now you can 'close it
>>close mymail
HTH
> To the docs, I need this to delete the mails in the pop-account. > cu, yogi > > -- > To unsubscribe from this list, please send an email to > [rebol-request--rebol--com] with "unsubscribe" in the > subject, without the quotes.
-- Tim Johnson <[tim--johnsons-web--com]> http://www.johnsons-web.com

 [4/5] from: ammonjohnson::yahoo at: 7-Nov-2001 18:15


Hi, Hmm... I get:
>> ? close
USAGE: CLOSE port DESCRIPTION: Closes an open port connection. CLOSE is a native value. ARGUMENTS: port -- (Type: port) from the console, some other neat functions are ??, Source. For example:
>> ?? close
close: native
>> source close
close: native [ "Closes an open port connection." port [port!] ] Source will return the source of a function! HTH Ammon

 [5/5] from: yogi:helimail at: 8-Nov-2001 23:08


Ryan Cole wrote:
> here is your prob... >>>mailbox: pop://user:[pass--domain--tld]
<<quoted lines omitted: 7>>
> mailbox: open pop://user:[pass--domain--tld] > close mailbox
Ok, thanks. Now it works. cu, yogi

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted