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

[REBOL] Re: Reading POP mail

From: matt:blis at: 1-Oct-2001 19:58

> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]] > On Behalf Of Tim Johnson > Sent: 01 October 2001 20:31 > To: [rebol-list--rebol--com] > Subject: [REBOL] Re: Reading POP mail > > Hi Matt: > On Mon, Oct 01, 2001 at 02:20:10PM +0100, Matt Burns wrote: > > Hi all, wondering if someone could enlighten me... > > > > I'm trying to read email from a pop account on the mail > server from a > > CGI script using > > > > mailbox: open pop://myuser:[mypass--mydomain--com] > > > > but I get an error > > > > ** User Error: Server error: tcp connection failed > > > > but when i try the *exact* same command (copy and paste from the cgi > > script) via the rebol console it connects properly > > > > Anyone got any ideas? > Could it be a side affect from other code in your script? > Can you provide the list with the rest of the script? > (Taking care of course to obfuscate the password/login > strings) ..later >
Thank. The complete script (minus the obvious user/domain details) is as follows: REBOL [Title: "check mail"] print "Content-Type: text/plain" print "" mailbox: open pop://user:[pass--domain--com] while [not tail? mailbox] [ msg: import-email first mailbox print "mail: " print msg/subject print newline mailbox: next mailbox ] close mailbox The error occurs on the open line. I've also tried entering this in the rebol console via telnet, and I get the same error. Any help appreciated. Matt.