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

email from rebol

 [1/4] from: bry:itnisk at: 29-Oct-2002 12:58


I try to do the following: Read-mail: read pop://user/account:[password--itnisk--com] And get an error, now this is the way I have to set up my pop3 account on Outlook or Mozilla, so it should be possible to set it up in the same way in rebol right? I'm supposing Rebol is being thrown by the / in between user and the account, is there a way to escape that.

 [2/4] from: gscottjones::mchsi::com at: 29-Oct-2002 6:34


From: "bryan"
> I try to do the following: > Read-mail: read pop://user/account:[password--itnisk--com]
<<quoted lines omitted: 3>>
> I'm supposing Rebol is being thrown by the / in between user and the > account, is there a way to escape that.
Hi, Bryan, The best answer may depend on the pop server. The simplest thing to try is: read-mail: read pop://user%2Faccount:[password--itnisk--com] An alternative approach may be to try: read-mail: read [ scheme: 'pop host: "itnisk.com" user: "user/account" pass: "password" ] If you are feeling adventuresome, you can see if the following patch works (I have no easy way to test it): net-utils/url-parser/user-char: union net-utils/url-parser/user-char make bitset! "/" ;then Read-mail: read pop://user/account:[password--itnisk--com] It would be helpful for the future to know if any/all of these work (especially the last). Best of luck. --Scott Jones

 [3/4] from: bry:itnisk at: 29-Oct-2002 15:52


>The best answer may depend on the pop server. The simplest thing to
try >is:
>read-mail: read pop://user%2Faccount:[password--itnisk--com]
didn't work
>An alternative approach may be to try: >read-mail: read [
<<quoted lines omitted: 3>>
> pass: "password" >]
that worked
>net-utils/url-parser/user-char: union net-utils/url-parser/user-char
make
>bitset! "/" >;then >Read-mail: read pop://user/account:[password--itnisk--com]
that worked also(by the way any good place to read about net-utils and so forth?)

 [4/4] from: gscottjones:mchsi at: 29-Oct-2002 9:19


From: "bryan"
> ... (by the way any good place to read about > net-utils and so forth?)
Hi, Bryan, Thanks for letting me know what worked. The second option has been REBOL's official answer to non-compliant pop (or ftp) authentication strategies. The third I figured out with a little experimentation (originally for pop servers requiring the username to be the full email address (pop specification not allowing "@" in the username portion)). Best place to read about net-utils is to look at the source itself. probe net-utils with the most pertinent portion being: probe net-utils/url-parser Hope that helps. --Scott Jones

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