r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3 Schemes] Implementors guide

Graham
8-Jan-2010
[595x2]
I can't write the pop scheme .. I don't have a pop account that isn't 
SSL :(
Well, that's my excuse
Andreas
8-Jan-2010
[597x2]
hehe
you can use stunnel to work around that :)
Graham
8-Jan-2010
[599]
Not sure wireshark would help me then....
Andreas
8-Jan-2010
[600]
ah, yes, that may be a problem
Graham
8-Jan-2010
[601x2]
Now I couldn't figure this out

I had 
state: client/spec/state

but the state got confused ... 

so I had to write it out in full as I have done
You'll note that I have a local for state which is not used
Andreas
9-Jan-2010
[603x2]
won't work for the set-s, obviously
should work for the get-s, though. but anyway, you only read state 
one time in the switch, and another time in the default handler
Graham
9-Jan-2010
[605x3]
won't work for the sets ?
oh ....
okey dokey
Andreas
9-Jan-2010
[608x2]
whenever you set a new state, you'll have to do it via client/spec/state 
in any case
ok :)
Graham
9-Jan-2010
[610x4]
Downloaded and installed community version of communigate pro .. 
mail/pop/everything server ....
Hope this is going to be easier than the daytime server.
scheme ...
How should the pop scheme work?  Open the port, and then send commands 
to it?
Andreas
9-Jan-2010
[614]
i'm already playing around with a pop scheme
Graham
9-Jan-2010
[615]
hehe .. ok, I will leave it alone.
Andreas
9-Jan-2010
[616x3]
give me another day :)
actually, i have something minimal working already, if you want to 
try
no auth, though
Graham
9-Jan-2010
[619x2]
sure ...
my communigate pop server is waiting ...
Andreas
9-Jan-2010
[621x7]
http://bolka.at/share/prot-pop3.r[temporary url]
.
use with: s: open pop3://user:[pass-:-server] print read s
that should print the num of messages available
after that, print pick s 1 would print the first message
don't worry to much if it doesn't work, though. the design is stupid, 
and i'm reworking that at the moment :)
too*
Graham
9-Jan-2010
[628]
works :)
Andreas
9-Jan-2010
[629]
nice :)
Graham
9-Jan-2010
[630]
wait 1 is a linux fix?
Andreas
9-Jan-2010
[631x2]
yeah, but that's wrong
that should rather be `wait subport`, just like you do in smtp
Graham
9-Jan-2010
[633]
ok
Andreas
9-Jan-2010
[634x6]
ok, another version up at http://bolka.at/share/prot-pop3.r[temporary 
url]
same functionality, improved design
the initial read is no longer needed
so try with: s: open pop3://...
print length? s
print pick s 1
Graham
9-Jan-2010
[640]
stuck at the open
Andreas
9-Jan-2010
[641]
could you try and replace `wait either system/version/4 = 4 [1] [subport]` 
by just `wait 1`
Graham
9-Jan-2010
[642]
that works
Andreas
9-Jan-2010
[643]
interesting
Graham
9-Jan-2010
[644]
>> write mbox "RETR 1"
write
** Script error: copy does not allow char! for its value argument
** Where: write
** Near: write mbox "RETR 1"