procmail
[Top] [All Lists]

Re: best way to edit a file from a procmail recipe

2007-03-04 21:10:01
Ruud,

Consider warnings and quotemeta:

     |perl -i -pwe 'next if /^\Q$ENV{DELETE}/' path/to/your/file

If this requires learning what those are, perhaps it's better to stick 
with what I know than to get in over my head:

  | (echo g/$stringoftheday/d ; echo x) | ex -s $file

So there's a shell; so sue me.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail