procmail
[Top] [All Lists]

Re: Please dont laugh at my recipe, help needed

1998-12-17 15:40:44
Todd Lindstrom asked,

| I have a rather cumbersome recipe that I know is very very
| poor in its construction.  I'd like to know what kind of
| shortcut I can do to make it a better regular expression.
| 
| Please dont laugh - I know it is bad  :-)

Sean Straw and Ed Sabol have made suggestions about the condition; I'd like
to say something about one of the actions:

|   :0
|   | cat > /dev/null; rsh mymachine /home/me/bin/playit -v30 
/home/me/bin/youvegotmail.au

If you want to get rid of stdin, there is no need to cat it to /dev/null;
besides, the output redirector and the semicolon force a local shell, which
you don't need to run rsh.  Instead, use the `i' flag so that procmail won't
care what happens to stdin:

  :0i
  | rsh mymachine /home/me/bin/playit -v30 /home/me/bin/youvegotmail.au

<Prev in Thread] Current Thread [Next in Thread>