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

[REBOL] Re: catching the error with 'import-email?

From: petr:krenzelok:trz:cz at: 4-Dec-2001 14:00

Petr Krenzelok wrote:
> Jon Saltzman wrote: > > > Hi Petr, > > I am working on a mail client which has a function just like this, and > > I've had no trouble with it on a Windows client - here's my code: > > > > <snippet> > > mail: open pop://user:[pass--server] > > if error? try [msg: import-email pick mail 1] [ print "Error" ] > > </snippet> > > > > This produces: > > >> mail: open pop://user:[pass--server] > > >> if error? try [msg: import-email pick mail 1] [ print "Error" ] > > == none > > > > Well, I can understand it. However - I piped ls -l linux command to the script > and it failed returning throw error. .... > But maybe the problem was with copy .... the strange thing is, that Rebol > doesn't preserve port data, once 'copy on port is used, while it does so, once > read-io is used. Strange thing, as we were suggested to not use read-io > anymore ... Holger?
commenting myself :-) Once I write data manually to mailbox file, and then read it back using 'pop protocol, 'import-email works. What is the difference? Looking at pop scheme, I can't find out, what is the difference, as we are talking the same string :-) Well, as Rebol doesn't support locking files, it is very dangerous for me to work directly with mailbox file, as 'remove on pop port could corrupt the file, if another Rebol process would try to append new email at the end ... or so I think ... -pekr-