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

[REBOL] Re: REBOL Cookbook in Beta

From: tomc:darkwing:uoregon at: 2-Sep-2003 16:17

I do like piping in *uix (solaris), I do not know if the method I use fails on other systems but what works for me is basicly . insert system/ports/output PROCESS copy system/ports/input where PROCESS is whatever your script does. here is an example of a filter I call from procmail to preprocess mail before it is sent to spamassassin. ! /home/users/tomc/bin/rebol -sqw rebol[ Title: "no comment" Author: "Tom Conlin" Date: 25-Mar-2003 Purpose: "to strip html comment tags intended to hide spam" ] set-modes system/ports/input [lines: false binary: false] comments: copy "" spam: copy system/ports/input parse spam [ thru <html> any[to "<!" mark: copy s thru ">" (append comments copy s loop length? s[remove :mark]) :mark ] ] insert system/ports/output rejoin [spam newline comments] On Tue, 2 Sep 2003, Michael J. Mastroianni wrote: