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

Detecting sent emails.

 [1/9] from: edanaii::cox::net at: 3-Nov-2002 7:55


I assume REBOL can do this, but I'm not sure how to detect the event. So, how can I detect when an email is being sent by the system. I assume I use System/Standard/SMTP or something like it. Any clues, greatly appreciated. -- Sincerely, | Tell me, tell me, where I'm going; I don't know Ed Dana | where I've been. Tell me, tell me. Oh won't you Software Developer | tell me, and then tell me again! My body's aching, 1Ghz Athlon Amiga | my heart is breaking and I don't know where to go! | So tell me, tell me, why don't you tell me? I just | gotta know! - Styx, Crystal Ball

 [2/9] from: edanaii:cox at: 4-Nov-2002 18:07


I'll take this as a "no". :) Ed Dana wrote:
> I assume REBOL can do this, but I'm not sure how to detect the event. > > So, how can I detect when an email is being sent by the system. I > assume I use System/Standard/SMTP or something like it. > > Any clues, greatly appreciated. >
-- Sincerely, | Control is an illusion, you infantile egomaniac. Ed Dana | Nobody knows what's gonna happen next: not on a Software Developer | freeway, not in an airplane, not inside our own 1Ghz Athlon Amiga | bodies and certainly not on a racetrack with 40 | other infantile egomaniacs. | -- Days of Thunder

 [3/9] from: brett:codeconscious at: 5-Nov-2002 18:26


> I'll take this as a "no". :)
Well...depends. If you are talking about cooperative scripts and by system you mean the REBOL interpreter then I can think of at least the following possibilites: 1) Trap at the script level. Set the word SEND to your own send function which does your custom code and then calls the original SEND. 2) Trap at the networking level. Patch the SMTP scheme. 3) Trap outside the process. Write your own SMTP proxy and change your user.r to point to the proxy. Regards, Brett.

 [4/9] from: edanaii:cox at: 5-Nov-2002 8:06


Brett Handley wrote:
>>I'll take this as a "no". :) >>
<<quoted lines omitted: 9>>
>3) Trap outside the process. >Write your own SMTP proxy and change your user.r to point to the proxy.
Interesting. 2 and 3 would be the two options I'd be most interested in. Were can I find info on how to go about it? -- Sincerely, | Mud can make you prisoner, and the plains can bake Ed Dana | you dry. Snow can burn your eyes, but only people Software Developer | make you cry. 1Ghz Athlon Amiga | -- Lee Marvin, Paint Your Wagon. =========== http://OurWorld.CompuServe.com/Homepages/EDanaII ===========

 [5/9] from: carl:s:rebol at: 5-Nov-2002 15:58


Just an FYI, we just fixed the net-error function which was doing a throw make error! which could sneak past a TRY (looking for a CATCH). This would happen in some cases using SEND function. Will be in next release. At 06:26 PM 11/5/02 +1100, you wrote:

 [6/9] from: brett:codeconscious at: 6-Nov-2002 12:35


> 2 and 3 would be the two options I'd be most interested in. > > Were can I find info on how to go about it?
===To Patch the SMTP scheme. Be aware that RT may change the SMTP scheme in future (same thought for option 1 too). You will need to learn how schemes work. rebolforces.com has an article about writing your own scheme - this should help with some of the concepts. The STMP scheme can be found at SYSTEM/SCHEMES/SMTP For example try this in your console: probe mold system/schemes/smtp ===Write your own SMTP proxy. You would need to read the relevent specification for the SMTP protocol or get a book on internet protocols. Examples of networking code in REBOL can be found in the library at rebol.org. Regards, Brett.

 [7/9] from: edanaii:cox at: 5-Nov-2002 21:28


Brett Handley wrote:
>>2 and 3 would be the two options I'd be most interested in. >>
<<quoted lines omitted: 4>>
>Be aware that RT may change the SMTP scheme in future (same thought for >option 1 too).
Not a problem, since this is just me, playing around. :)
>You will need to learn how schemes work. rebolforces.com has an article >about writing your own scheme - this should help with some of the concepts. >The STMP scheme can be found at > > SYSTEM/SCHEMES/SMTP > >For example try this in your console: > > probe mold system/schemes/smtp >
Yep. I've done that, but that's as much as I know to do. I'll start with RebolForces. Thanks.
>===Write your own SMTP proxy. > >You would need to read the relevent specification for the SMTP protocol or >get a book on internet protocols. Examples of networking code in REBOL can >be found in the library at rebol.org. >
I looked at Rebol.org. Nothing lept out at me. Got any examples in particular? Thanks again. -- Sincerely, | The problems of two little people don't amount to Ed Dana | a hill of beans in this crazy mixed-up world! But Software Developer | this is OUR hill, and these are OUR beans! 1Ghz Athlon Amiga | -- Naked Gun via Casablanca.

 [8/9] from: brett:codeconscious at: 6-Nov-2002 19:22


> I looked at Rebol.org. Nothing lept out at me. Got any examples in > particular?
I was thinking that looking at the webservers and the multisession script there would probably help you to write a server. Also don't forget about Maarten Koopman's hipe serve which he built Rugby on top of. I believe rebolforces.com has an article about using it to write a server. Regards, Brett.

 [9/9] from: edanaii:cox at: 6-Nov-2002 18:24


Brett Handley wrote:
>>I looked at Rebol.org. Nothing lept out at me. Got any examples in >>particular?
<<quoted lines omitted: 4>>
>Maarten Koopman's hipe serve which he built Rugby on top of. I believe >rebolforces.com has an article about using it to write a server.
All right. Thanks for the info. :) -- Sincerely, | Cold Hearted Orb, that rules the night. Removes Ed Dana | the colours from our sight! Red is gray and Software Developer | yellow white! But we decide which is right... 1Ghz Athlon Amiga | And which is an illusion! | -- The Moody Blues, Late Lament.

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