procmail
[Top] [All Lists]

Re: save message on autoreply

1996-05-05 12:08:13
Philip Guenther responded to Stan Ryckman's suggestion to Mark Shadley:

| Interestly, the procmail solution (reversed from David's original answer):
| 
| :0
| * ! ^Subject:.*Re:
| *   ^Subject:.*get-pgp-key
| * ! ^X-Loop: my-mailbox(_at_)my(_dot_)site
| | (formail -rA"X-Loop: my-mailbox(_at_)my(_dot_)site"; \
|       cat $HOME/.pgpheader $HOME/.pgpkey) | $SENDMAIL -oi -t
|     :0 A:
|     Shadcat
| 
| actually uses one fewer process than the solution using 'tee'.

And if you don't put a `c' flag at the top, it will also do one thing fewer
than the solution that used "tee".  While we're at it, it (and my original
form of it) can also benefit from an `h' flag on the recipe that pipes to
formail, since formail -r without -k won't be using the body anyway:

  :0ch
  * ! ^Subject:.*Re:
  *   ^Subject:.*get-pgp-key
  * ! ^X-Loop: my-mailbox(_at_)my(_dot_)site
  | (formail -rA"X-Loop: my-mailbox(_at_)my(_dot_)site"; \
        cat $HOME/.pgpheader $HOME/.pgpkey) | $SENDMAIL -oi -t
      :0 A:
      Shadcat

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