Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Anybody with POP Email experience using REBOL?
Pages: [1] Print
Author Topic: Anybody with POP Email experience using REBOL?  (Read 344 times)
leke
Jr. Member
**
Offline Offline

Posts: 91


View Profile WWW
Anybody with POP Email experience using REBOL?
« on: January 04, 2006, 01:38:13 AM »

From the example in the core guide:
pop://user:pass@mail.example.com

If
Code:
system/schemes/pop/host: "mail.bluebottle.com"; my POP server
should I use
Code:
pop: open pop://r3bol:mypassword@bluebottle.com
or
Code:
pop: open pop://r3bol:mypassword@mail.bluebottle.com
or
Code:
pop://r3bol@bluebottle.com:mypassword@mail.bluebottle.com; (with or without the mail)
I get an error for each.

Here's my script:
Code:
system/user/email: "r3bol@bluebottle.com"
system/schemes/default/host: "smtp.bluebottle.com"
system/schemes/pop/host: "mail.bluebottle.com"
system/schemes/default/proxy/host
system/schemes/default/proxy/port-id
system/schemes/default/proxy/type

pop: open pop://r3bol@bluebottle.com:my_password@mail.bluebottle.com
forall pop [print first pop]
close pop
Logged

Anton
Jr. Member
**
Offline Offline

Posts: 65

Rebol veteran


View Profile WWW
Re: Anybody with POP Email experience using REBOL?
« Reply #1 on: August 21, 2006, 08:31:37 AM »

Probably it is the "@" character in the username which is causing the error. The url parser or the pop scheme handler gets confused by it. Anyway, the solution is probably to use a scheme spec block instead of a url.

port: open [scheme: 'pop user: "r3bol@bluebottle.com" pass: "mypassword" host: "mail.bluebottle.com"]

Or, more generically:

port: open compose [scheme: 'pop user: (user) pass: (pass) host: (server)]
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Anybody with POP Email experience using REBOL?
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 07, 2008, 11:19:52 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2233 Posts in 581 Topics by 1886 Members
Latest Member: antigopit

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc