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

Questions

 [1/8] from: David_A_Brown::vanguard::com at: 1-May-2003 16:37


I am a new Rebol user. I am very impressed. The tool is very powerful and very cool. I am using Rebol Core 2.5, View 1.2.1.3.1, Windows XP desktop. I have a number of questions: 1) I tried to used the e-mail demo. In user setup I put in our mailserver name. I am able to ping it from the windows command line. I get the following "Error sending e-mail. Check fields and check your network setup." Any ideas? 2) When I search a web page for a string and if successful write it to a .html file some links do not work because they are relative. I tried to do the following but did not know how to handle quotes within a string. page: read http://www.xyz.com/ htmlbase: "<BASE href="http://www.xyz/com/">" if find page "jobs" [write %result.html [htmlbase + page]] 3) What would be the best way to not just search for a word on a website but to search to see if the word is contained on any web pages that are directly linked to from the original page? 4) What is the best way to search for two strings that are both contained in the same header and then identity the link from the header?

 [2/8] from: hallvard:ystad:helpinhand at: 2-May-2003 11:13


Dixit [David_A_Brown--vanguard--com] (22.37 01.05.2003):
>1) I tried to used the e-mail demo. In user setup I put in our mailserver >name. I am able to ping it from the windows command line. >I get the following > "Error sending e-mail. Check fields and check your network setup." >Any ideas?
No, I'm afraid not. I have a similar problem with my very little Kasper program (http://folk.uio.no/hallvary/rebol/kasper.r). It seems to always tell me I'm offline, no matter how online I am.
>2) When I search a web page for a string and if successful write it to a >.html file some links do not work because they are relative.
<<quoted lines omitted: 3>>
> htmlbase: "<BASE href="http://www.xyz/com/">" > if find page "jobs" [write %result.html [htmlbase + page]]
Try this: htmlbase: {<BASE href="http://www.xyz/com/">} There are two ways to mark strings in rebol: "like this" and {like this}.
>3) What would be the best way to not just search for a word on a website >but to search to see if the word is contained on any web pages that are >directly linked to from the original page?
You would have to download those other web pages as well, and perform a search in them too. Or did you mean something more specific?
>4) What is the best way to search for two strings that are both contained >in the same header and then identity the link from the header?
Not sure I understand what you mean. Can you explain or give an example? ~H

 [3/8] from: antonr:iinet:au at: 5-May-2003 13:53


Check out the help and source of set-net. In the help it tells the format of the settings block, with default-server being your smtp server. The source shows you where in the rebol system object all those settings end up. Make sure your pop and smtp servers are written the right way around. eg. set-net [[me--here--org] "smtp.here.org" "pop.here.org"] The set-net line in in the user.r file in the rebol root directory (system/options/home). The other thing is it could be that you have to check for mail first before trying to send. Some mail servers require you do this shortly before sending as a measure against spammers. And popular email clients do this automatically for you. Anton.

 [4/8] from: mat:plothatching at: 5-May-2003 12:14


Hello Anton, A> set-net [[me--here--org] "smtp.here.org" "pop.here.org"] A> The set-net line in in the user.r file in the A> rebol root directory (system/options/home). Just a thought but Rebol doesn't support SMTP auth does it? At the moment I point it to a local server but given that the SMTP sending seems multi-threaded, it'd be nice to be able to point it to my up stream provider instead. It requires auth though. Regards, Mat Bettinson - +44-(0)20-83401514.

 [5/8] from: greggirwin:mindspring at: 5-May-2003 9:39


Hi Mat, MB> Just a thought but Rebol doesn't support SMTP auth does it? At the MB> moment I point it to a local server but given that the SMTP sending MB> seems multi-threaded, it'd be nice to be able to point it to my up MB> stream provider instead. It requires auth though. Scott Jones's esend.r and esmtp.r handle authentication. -- Gregg

 [6/8] from: mat:plothatching at: 6-May-2003 17:21


Hello Gregg, GI> Scott Jones's esend.r and esmtp.r handle authentication. Apologies for the delay in the reply. I can't find those in the script library and Google isn't being very helpful either. Could you point me in the right direction? Regards, Mat Bettinson - +44-(0)20-83401514.

 [7/8] from: greggirwin:mindspring at: 6-May-2003 16:20


Hi Mat, GI>> Scott Jones's esend.r and esmtp.r handle authentication. MB> Apologies for the delay in the reply. I can't find those in the script MB> library and Google isn't being very helpful either. MB> Could you point me in the right direction? I added them to the library at rebol.org. You can find them under the mail category. -- Gregg

 [8/8] from: mat:plothatching at: 7-May-2003 10:08


Hello Gregg, [esmtp.r and esend.r] MB>> Could you point me in the right direction? GI> I added them to the library at rebol.org. You can find them under the GI> mail category. Thanks for that Gregg. Regards, Mat Bettinson - +44-(0)20-83401514.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted