Re: CGI Scripting with CRM

Paolo <[email protected]>
Newsgroups gmane.mail.spam.crm114
Message-ID <20090207121329.GA2235@localhost>
On Fri, Feb 06, 2009 at 05:31:10AM -0700, Chris Babcock wrote:
> I thought this might be of interest. CGI scripting with CRM114 happens
> to be insanely easy. The web page to be displayed is read from stdout.

cool :)

> syscall () (:environment:) /env/

hm, why (sys)calling env? special vars :_env_X: ar already set to the values
of corresponding X ENV vars - eg :_env_HOME: = $HOME.

> match [:param:] (:hex: :value:) /%(..)/

use /%([[:xdigit:]][[:xdigit:]])/ else you'd add 'x' to invalid/dbl-encoded
triplets like %%5c or %xy, looping forever (actually till buffer overflow)
on latter case.

> match <fromend> [:environment:] (:eol:) /\n/

ah, ok just for fun :) - else you'd parse QUERY_* and others your script 
expects.

> From there it's pretty straightforward to classify form input or

ok ...

> customize a webmail app to train Spam.

... but that's usually done by a backend.


thanks
-- 
 paolo
 
 GPG/PGP id:0x3A47DE45  - B5F9 AAA0 44BD 2B63 81E0  971F C6C0 0B87 3A47 DE45

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.