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

[REBOL] email filtering trouble (CGI stuff)

From: carlos:lorenz:g:mail at: 9-Jun-2005 19:06

Hi list, Maybe this is not so much REBOL problem but I do need some help. I am trying to write a cgi script to filter my incoming emails while at the ISP server. My ISP has CPANEL and people there say it is not complicate to write a filter using a pipe just like that: $header_subject: contains "keyword" |/home/usr/ Obviously I do not want use Perl but REBOL instead so i wrote a small script just to test the filtering: ------------------------------------ #!rebol -cs REBOL[] write/append %/home/usr/mylog.txt now/date ------------------------------ ------ As REBOL is running in CGI mode I wrote the following filter: $header_subject: contains "keyword" |/home/usr/cgi-bin/filter.cgi It works. All the email is being piped to my script but to my surprise all I have is the whole content of each message appended to my very own REBOL script!! What am I doing wrong? -- *:-.,_,.-:*'``'*:-.,_,.-: Carlos Lorenz *:-.,_,.-:*'``'*:-.,_,.-: -- *:-.,_,.-:*'``'*:-.,_,.-: Carlos Lorenz *:-.,_,.-:*'``'*:-.,_,.-: