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

World: r3wp

[RAMBO] The REBOL bug and enhancement database

Graham
8-Feb-2007
[2671x2]
and what is actually being sent is  .. lf "." lf
gmail just hangs on this because it is expecting to see crlf "." 
crlf
BrianH
8-Feb-2007
[2673]
Is it sending lf or is it sending the platform-specific line ending?
Graham
8-Feb-2007
[2674x4]
Now if you send  crlf "." crlf to smtp.gmail.com, gmail just then 
drops the line on you.
because the port is opened with /lines, it is actually sending crlf 
"." crlf lf
which gmail does not like at all.
so, you have to send crlf ".^M" instead !
BrianH
8-Feb-2007
[2678]
I think you can open a port with /lines in a way that specifies the 
line ending string.
Graham
8-Feb-2007
[2679x2]
I've only tested this on windows .. will have to see what core does 
on linux
but all the internet protocols use crlf and not lf
BrianH
8-Feb-2007
[2681]
It seems to me that crlf should be specified as the line ending for 
most internet protocols.
Graham
8-Feb-2007
[2682]
yes
BrianH
8-Feb-2007
[2683]
Sorry, you just said that.
Graham
8-Feb-2007
[2684x2]
took me a few days of puzzling what was going on.
of course ethereal turned out to be no help because I was tracing 
ssl.
BrianH
8-Feb-2007
[2686]
This seems like an easy fix to someone who has the time, the SDK 
source and the inclination.
Graham
8-Feb-2007
[2687x2]
Yep
most of us are missing all three
BrianH
8-Feb-2007
[2689]
I'm just missing the time (and the need).
Gabriele
8-Feb-2007
[2690x5]
wait! i know why that is happening.
the default for tcp:// is CRLF
BUT the default for ssl:// is LF! that is a bug i reported some time 
ago. (it created problems for https:// too)
you can workaround it by adding a  /with refinement to the open (it 
will not hurt tcp either)
http://www.rebol.net/cgi-bin/rambo.r?id=3532&
BrianH
8-Feb-2007
[2695]
Can such /with refinements be added to the default protocols built 
on SSL? It shouldn't hurt when the ssl:// default is eventually fixed.
Gabriele
8-Feb-2007
[2696x2]
it was added to http, it should to any other protocol that uses ssl.
but the bug should really be fixed! i have reported it in 2004 ;)
Graham
8-Feb-2007
[2698x2]
Good to know!
that history is repeating itself :(
BrianH
8-Feb-2007
[2700]
Perhaps you can use the /with refinement in your esmtps protocol, 
Graham.
Graham
8-Feb-2007
[2701]
Yeah ..
Gabriele
8-Feb-2007
[2702]
yes, i think it will work fine if you just open/with
Graham
8-Feb-2007
[2703]
Someone at RT should really go thru the old bugs and make sure that 
they are all fixed
Gabriele
8-Feb-2007
[2704x2]
that will eventually happen.
that's why they are in rambo - they won't be forgotten.
Maxim
8-Feb-2007
[2706]
is forgetting them better than not fixing them?  I wonder  ;-)
BrianH
8-Feb-2007
[2707]
I'm looking at the http protocol source, and I find no indication 
of any fix to the default line ending of ssl:// - do I have the right 
source? It is dated 5-Dec-2005...
Graham
8-Feb-2007
[2708]
same as mine
Gabriele
9-Feb-2007
[2709]
hmm, was that lost?
Ladislav
11-Feb-2007
[2710]
my understanding is, that the usage of the /ONLY refinement is an 
error in cases like:

    a-string: ""
    insert/only a-string "ab"


currently REBOL just ignores the refinement, what are your preferences?
Henrik
11-Feb-2007
[2711]
what should /only do for strings?
Ladislav
11-Feb-2007
[2712]
If you carefully read my post, then you may see that you asked the 
same question I did
Henrik
11-Feb-2007
[2713]
ok, sorry, I understood it as if you had the answer and wanted to 
hear others first. :-)
Ladislav
11-Feb-2007
[2714]
I just have my preferences, but don't know what the others prefer
Volker
11-Feb-2007
[2715]
It should put  a string in the position of one char :D
Its an programmer-error. Do we  need a runtime-check?
Ladislav
11-Feb-2007
[2716]
I guess, that it is simpler to silently ignore the refinement from 
the interpreter designer POV
Henrik
11-Feb-2007
[2717]
Ok, I guess, I'm completely misunderstanding the problem. Volker, 
what do you mean by putting a string in the position of one char?
Ladislav
11-Feb-2007
[2718]
that is what insert/only a-string "ab" requests for, althought it 
cannot be done
Henrik
11-Feb-2007
[2719]
ah, so it would replace the character at the position and then insert 
the string from there?
Volker
11-Feb-2007
[2720]
Henrik, look at how  it works with  blocks ;)