[REBOL] Re: IP Address
I don't think you can. That's the problem with email - you don't know who it's coming from. That's why we get so much spam. However, it looks like you want to send your address from work, so your home computer can contact your work computer. Surely you can just embed the ip address in the mail you are sending. But I think there will be a problem: your work ip will be an internal address on a subnet, or a dynamic ip, and behind a firewall, so it will not be visible from the outside. I have an idea, both machines check for mail and send to the same mail account. But each puts an identifier in the message so that you can tell who it's from. When each machine checks the mail, it doesn't delete it straight away necessarily. It first reads the mail, and only deletes those mails which were intended to be read by this machine. To do this, you need to open a pop port to your account manually, like this: port: open join pop:// [user : pass @ system/schemes/pop/host /] Now read and examine the mail you have before deciding which to delete. (Can help with that). Anton. Hi again, few questions (again). 1. is there a way to obtain the IP address of a e-mail sender from the header of the message? 'cause I have not find it directly specified there, but those of the smtp servers which receive the mail. 2. I'm building a bot in Rebol that can receive mails, parse them and execute the commands specified in them. This is to be able to interact with my computer at home while I'm at work as there have only e-mail service and my home ip address is not static (so putting apache on it and then using CGI has to be tunneled through the use of mail as information vector). Mauro -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: IP Address
Re: IP Address If you want to verify, you can use my Delete-emails.r script that let you see emails awaiting on your POP server, and allow you to see the full header with all Received: field. But I think you will only see the IP of your provider host, not you computer one. do http://membres.lycos.fr/didec/rebsite/delete-emails/delete-emails.r (View/1.2.8+ needed) Eventually, this script parse the Received: fields to pick IP addresses in order to check for spam in RBL (spamcop...), so if you want to do the same, you can pick the appropriate code in it. DideC I don't think you can. That's the problem with email - you don't know who it's coming from. That's why we get so much spam. However, it looks like you want to send your address from work, so your home computer can contact your work computer. Surely you can just embed the ip address in the mail you are sending. But I think there will be a problem: your work ip will be an internal address on a subnet, or a dynamic ip, and behind a firewall, so it will not be visible from the outside. I have an idea, both machines check for mail and send to the same mail account. But each puts an identifier in the message so that you can tell who it's from. When each machine checks the mail, it doesn't delete it straight away necessarily. It first reads the mail, and only deletes those mails which were intended to be read by this machine. To do this, you need to open a pop port to your account manually, like this: port: open join pop:// [user : pass @ system/schemes/pop/host /] Now read and examine the mail you have before deciding which to delete. (Can help with that). Anton. Hi again, few questions (again). 1. is there a way to obtain the IP address of a e-mail sender from the header of the message? 'cause I have not find it directly specified there, but those of the smtp servers which receive the mail. 2. I'm building a bot in Rebol that can receive mails, parse them and execute the commands specified in them. This is to be able to interact with my computer at home while I'm at work as there have only e-mail service and my home ip address is not static (so putting apache on it and then using CGI has to be tunneled through the use of mail as information vector). Mauro -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: IP Address
On Fri, 9 Jan 2004 18:03:30 +1100, Anton Rolls [EMAIL PROTECTED] wrote: I don't think you can. That's the problem with email - you don't know who it's coming from. That's why we get so much spam. However, it looks like you want to send your address from work, so your home computer can contact your work computer. Surely you can just embed the ip address in the mail you are sending. But I think there will be a problem: your work ip will be an internal address on a subnet, or a dynamic ip, and behind a firewall, so it will not be visible from the outside. Well it was just for statistical recording (call it data-collection-mania). For every message the bot is to be processing the important data is extracted and I thought that the ip address could be found as well. I will extract the first smtp server in the chain, where the mail should have started (that should be the last in the header list, isn't it?). As I said this is more for fun, just to undestand more about the language and on all many other things the language makes easy to manipulate. Nevertheless the constant update at work of the progress eMule is doing at home is not that bad 8) Mauro -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: IP Address
Mauro wrote: Is there a good (but simple) XML and HTML builder in Rebol out there that I can embed in my bot (something more than XMLgen)? Yes. You could use my ML.r script, which generates HTML and/or XML from a Rebol dialect. The following function shows my common envelope to surround a CGI response: Envelope: func [Head [block!] Body [block!]] [ print rejoin [ Content-Type: 'text/html newline newline ML compose/deep [?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd; html [ head [(Head)] body [(Body)] ] ] ] quit ] If you're interested in it, let me know, and I'll send you the scripts. -- Andrew J Martin Speaking in tongues and performing miracles. ICQ: 26227169 http://www.rebol.it/Valley/ http://valley.orcon.net.nz/ http://Valley.150m.com/ -- -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: IP Address
A J Martin wrote: Mauro wrote: Is there a good (but simple) XML and HTML builder in Rebol out there that I can embed in my bot (something more than XMLgen)? Yes. You could use my ML.r script, which generates HTML and/or XML from a Rebol dialect. The following function shows my common envelope to surround a CGI response: Why do you use below doctype instead of e.g. XHTML Transitional one? Just curious ... Envelope: func [Head [block!] Body [block!]] [ print rejoin [ Content-Type: 'text/html newline newline ML compose/deep [?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd; html [ head [(Head)] body [(Body)] ] ] ] quit ] If you're interested in it, let me know, and I'll send you the scripts. Thanks, -pekr- -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: IP Address
On Fri, 9 Jan 2004 09:11:13 +1300, A J Martin [EMAIL PROTECTED] wrote: Mauro wrote: Is there a good (but simple) XML and HTML builder in Rebol out there that I can embed in my bot (something more than XMLgen)? Yes. You could use my ML.r script, which generates HTML and/or XML from a Rebol dialect. The following function shows my common envelope to surround a CGI response: Envelope: func [Head [block!] Body [block!]] [ print rejoin [ Content-Type: 'text/html newline newline ML compose/deep [?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd; html [ head [(Head)] body [(Body)] ] ] ] quit ] If you're interested in it, let me know, and I'll send you the scripts. Yes thanks. I'll have a look to see if it can solve some problems I'm having with nested nodes. Isn't it in the library? I can't find it in my archive. (and was it there, I probably would have not looked at it... a script named ML.r that generates HTML and XML? Is it for MetaLanguages? MarkupLanguages?) Thanks again Mauro -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: IP Address
Pekr wrote: Why do you use below doctype instead of e.g. XHTML Transitional one? Because it allows me to use XHTML, SVG and MathML all in the one XHTML document. :) -- Andrew J Martin Speaking in tongues and performing miracles. ICQ: 26227169 http://www.rebol.it/Valley/ http://valley.orcon.net.nz/ http://Valley.150m.com/ -- -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: IP Address
On Thu, 08 Jan 2004 18:03:06 +0100 MF [EMAIL PROTECTED] wrote: 1. is there a way to obtain the IP address of a e-mail sender from the header of the message? 'cause I have not find it directly specified there, but those of the smtp servers which receive the mail. You should be able to get the IP address of the sender's mail server. It should be in the first or second chronologically received: lines. If the received lines are forged, then there's more work to be done. -- Graham Chiu http://www.compkarori.com/cerebrus/ -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.
[REBOL] Re: IP Address
On Thu, 08 Jan 2004 18:03:06 +0100 MF [EMAIL PROTECTED] wrote: service and my home ip address is not static (so putting apache on it and then using CGI has to be tunneled through the use of mail as information vector). What I did a couple of years ago was to get my home PC to constantly update a remote web page with it's own IP address if that address changed so I could come in that way. -- Graham Chiu http://www.compkarori.com/vanilla/ -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.