Triggering LC scripts when emails are received

Matthias Rebbe | M-R-D matthias_livecode_150811 at m-r-d.de
Tue Mar 18 03:21:25 EDT 2014


Hi Peter,

do you mean the livecode-server engine with „executable"? I have installed it exactly how Runrev recommends it.
But you are right. Sensitiv data or executables should be outside public_html. I am already using a
special folder above public_html which contains sensitiv data like db usernames and passwords. So in any case
Livecode-Server engine is not running and therefore showing the complete script , no one can see this data except the standard script which contains the line with the include.

But i will try this also with the engine. Thanks for the hint.

Regards,

Matthias


Am 18.03.2014 um 06:05 schrieb Peter W A Wood <peterwawood at gmail.com>:

> Hi Mattias
> 
> I believe that it is safer to install executables outside the public_html directory as it gives the possibility for somebody who knows how to run their scripts on your server. I don't know how to do that but I have a /bin directory at the same level  as public_html for executables which can be made more secure.
> 
> Regards
> 
> Peter
> 
> 
> On 18 Mar 2014, at 05:50, Matthias Rebbe | M-R-D wrote:
> 
>> Hi jbv,
>> 
>> Alex is right. It is working this way and believe it or not, i was also working on this today.
>> 
>> I must admit, that i use my own instances of livecode server on On-rev. 
>> It is installed under public_html/cgi-bin/livecode-server502
>> 
>> So for my configuration  i selected „Pipe to program“ and entered
>> 
>> public_html/cgi-bin/livecode-server502/livecode-server /home/MyAccountname/public_html/MyLivecodeScript.lc
>> 
>> It does not work, if i just enter the path to the script. I have to enter the path to the livecode-server engine and the complete path to the livecode script.
>> I do not know the paths to the preinstalled livecode-server engines on On-rev, but maybe someone from the list could help. If not, i am sure On-Rev support team knows
>> the answer for that.
>> 
>> Please be aware, that the script must not output anything. If it outputs something, even just a space or blank line, then although the script is executed the incoming mail is bounced.
>> So please check your script for any blank lines or even spaces before the tag <?rev and after the tag ?>. It took me some hours to find out that just a small
>> space after the ?> tag caused the incoming mails bouncing.
>> 
>> Hope i could help.
>> 
>> 
>> Regards,
>> 
>> Matthias
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> Am 17.03.2014 um 21:53 schrieb Alex Tweedly <alex at tweedly.net>:
>> 
>>> In cPanel, within the "Email" section, add an email forwarder.
>>> Fill in the adddress you want to intercept, then click on "Advanced options"
>>> Select "Pipe to a program", and fill in the program script name for your program
>>> 
>>> NB I haven't actually done this yet !!
>>> 
>>> I've been meaning to try it out for a while, just not needed it yet, and so I haven't got round to trying it out - but it *should* work.
>>> 
>>> I'll try it soon ... let me know if it works for you.
>>> -- Alex.
>>> 
>>> 
>>> On 17/03/2014 17:00, jbv at souslelogo.com wrote:
>>>> Hi list,
>>>> 
>>>> I need to trigger LC scripts (on an on-rev account or with LC server)
>>>> when an email is received on an email address. The address will be
>>>> the same but email senders will vary and according to the sender's
>>>> email, different scripts will be triggered. The idea is to process the
>>>> content of the email with the scripts...
>>>> I guess the trick is a server setting. Does anyone know how ?
>>>> 
>>>> Thanks in advance.
>>>> jbv
>>>> 
>>>> 
>>>> _______________________________________________
>>>> use-livecode mailing list
>>>> use-livecode at lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode








More information about the use-livecode mailing list