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

World: r3wp

[Core] Discuss core issues

Gabriele
8-May-2006
[4302]
i think there are issues with ftp as a url path is not guaranteed 
to match the file system path
Sunanda
8-May-2006
[4303]
A URL path is _supposed_ to map to the file system path _if_ the 
scheme is ftp://
/
 has no assumed hierachical meaning in other URL schemes.
Hence the confusion at times.

I think REBOL is playing safe in not assuming the mapping. And, given 
how badly many FTP clients are written, that is probably for the 
best.
Louis
8-May-2006
[4304]
How can I change the smtp port to 26?
Graham
8-May-2006
[4305]
install the protocol on port 26
Louis
8-May-2006
[4306]
How?  :>)
Graham
8-May-2006
[4307]
http://www.rebol.com/docs/core23/rebolcore-13.html- on how to use 
the port specification directly.
Louis
8-May-2006
[4308x2]
I don't find what you are referring to.  I've tried this:

system/schemes/smtp/port-id: 26


But either that is incorrect or else something else is the problem.
This doesn't work either:

smtp: open/lines tcp://bible-way.org:26
Graham
8-May-2006
[4310x3]
It should do.
then you can query the smtp directly.
Try 

insert smtp "HELO Louis-here"
probe copy smtp
and you should see a response
or not ...
Louis
8-May-2006
[4313]
>> smtp: open/lines tcp://bible-way.org:26
>> insert smtp "HELO Louis-here"
>> probe copy smtp
** Access Error: Network timeout
** Near: probe copy smtp
>>
Graham
9-May-2006
[4314]
>> smtp: open/lines tcp://bible-way.org:26
>> insert smtp "HELO Louis.com"
>> pick smtp 1

== {220-box61.bluehost.com ESMTP Exim 4.52 #1 Mon, 08 May 2006 22:02:46 
-0600 }
>> pick smtp 1

== {220-We do not authorize the use of this system to transport unsolicited, 
}
>> pick smtp 1
== "220 and/or bulk e-mail."
>> pick smtp 1

== {250 box61.bluehost.com Hello 203-79-92-225.cable.paradise.net.nz 
[203.79.92.225]}
Louis
9-May-2006
[4315]
Hummmm.  Thanks, Graham. There must be something else I am doing 
wrong.
ScottT
9-May-2006
[4316]
I think I wish smtp just went away forever.  so many different better 
ways to send messages already.
Louis
9-May-2006
[4317x2]
What agravates me is that this script worked fine until we changed 
hosting service. Now this and other scripts are broken.
Well, I can't find anything wrong with the script, and trace/net 
gives no error messages.
Izkata
9-May-2006
[4319]
copy waits for the port to close, then returns everything sent
Louis
9-May-2006
[4320x2]
Now I am getting:

Net-log: ["Opening" "tcp" "for" "esmtp"]
Net-log: [none "220"]

Net-log: {220-box61.bluehost.com ESMTP Exim 4.52 #1 Tue, 09 May 2006 
05:01:25 -0600 }

Net-log: {220-We do not authorize the use of this system to transport 
unsolicited, }
Net-log: "220 and/or bulk e-mail."
Net-log: [["HELO" system/network/host] "250"]

Net-log: {250 box61.bluehost.com Hello ip68-97-225-211.ok.ok.cox.net 
[68.97.225.211]}
Net-log: ["AUTH CRAM-MD5" "334"]
Net-log: ["WARNING! Using plain authentication."]

Net-log: [{AUTH PLAIN bGF0dXJrQGJpYmxlLXdheS5vcmcAbGF0dXJrQGJpYmxlLXdheS5vcmcAaXN0cmkx}
    "235"
]
Izkata, I don't understand what you mean.
Oldes
9-May-2006
[4322x5]
system/schemes/smtp/port-id: 26
Hm, it was already mentioned. Your problem is, that your provider 
do not accept PLAIN authentication, It requires CRAM-MD5 authentication 
as you can see from the log
The script for counting cram-md5 auth is here:

do http://box.lebeda.ws/~hmm/rebol/projects/cram-md5/latest/cram-md5.r
There is quick patch which should helps you to send crypted passwords

do http://box.lebeda.ws/~hmm/rebol/projects/smtp/latest/esmtp_1.3.2.r
hm, but now I see, that this is not the problem, your problem is, 
that you provider do not accept any authentication as I'm getting 
this error:
Server error: tcp 503 AUTH command used when not advertised
Louis
9-May-2006
[4327]
Should I turn off authentication? If so, how?
Oldes
9-May-2006
[4328x2]
maybe using this way: set-net [[laturk-:-bible-way-:-org] bible-way.org 
none none none none none none]
(if you are not using proxy)
Henrik
9-May-2006
[4330]
oldes: great, now louis email address is webpublic :-)
Oldes
9-May-2006
[4331]
hm, sorry for that. Maybe altme web output should cripple the emails.
Henrik
9-May-2006
[4332]
made a feature request for it
Anton
9-May-2006
[4333]
Temporarily made this group not web-public. I guess in a day or two 
we can switch it back. Not sure how it works.
Louis
9-May-2006
[4334x2]
Sorry to log off so suddenly like that. I had some computer problems.
Don't worry about that email address. It was a temporary one I created 
for test purposes.
Izkata
9-May-2006
[4336]
Hmm.. I don't know the correct terminology, so I can't explain what 
I mean very well...

>> smtp: open/lines tcp://bible-way.org:26
>> insert smtp "HELO Louis-here"
>> probe copy smtp
** Access Error: Network timeout
** Near: probe copy smtp


SMTP ports stay open while data is transferred back and forth.  Copy 
doesn't return until the port is closed - so in the above line, copy 
is waiting until the server closes SMTP, and the server is waiting 
for a command from the client.


It's the reason why (as I understand it) Grahams "pick smtp 1" worked, 
but copy did not - SMTP was still open, even though there was data 
for the client to read.  (I was stuck on that myself for a long time 
 ;-)
Louis
9-May-2006
[4337x2]
Oldes, that worked! Many thanks. I would probably have never figured 
that out by myself.
Izkata, thanks. I am learning many things today.
PeterWood
9-May-2006
[4339x2]
Henrik: "Oldes: great, now louis email address is webpublic :-)"

No more so than by right-clicking on his name in the thread :-)
Oops I  forgot about the web-public stuff!!!
Louis
11-May-2006
[4341x2]
Which is fastest/best?      

y
 <> ch-db/2/drop

or 

ch-db/2/drop <> "y"
Or does it make any difference?
Tomc
11-May-2006
[4343x2]
with the constant first it does not have to decide/figure out the 
type of  'drop
should minutely  quicker
Allen
11-May-2006
[4345]
just be careful though, because you may end up compariing a 1 char 
string! vs a char! , you might not get the result you expect
y
 <> #"y"
== true
Louis
11-May-2006
[4346]
Thanks, Tomc and Allen. And Allen, I didn't realize that. Thanks 
for the warning!
Geomol
11-May-2006
[4347x2]
To test performance of some code, you can use this function:

time: func [:f /local t] [
	t: now/time/precise
	do f
	now/time/precise - t
]

Example:
>> time [loop 100000 [ch-db/2/drop <> "y"]]
== 0:00:00.34105
Btw. performance-wise the 2 ways look equal good.
Louis
11-May-2006
[4349]
Thanks, Geomol!
JaimeVargas
11-May-2006
[4350]
I recommend using time-blk.r from Ladislav it does multiple measurements 
until the measurement error is below supplied threshold.
Louis
11-May-2006
[4351]
Thanks Jaime, I'll check that out.