procmail
[Top] [All Lists]

Re: Create new mail with procmail

1997-01-14 12:06:52
Thomas Ihmann asked,

| I need a script that notifies my pager on incoming mails. I tried a cript
| like :
| :0 c
| ! my_pager(_at_)paging(_dot_)com
| 
| but it wouldn't work. So what I really need is a script that creates a new
| mail using the old subject and leaving the body blank (directed to
| my_pager(_at_)paging(_dot_)com).

Just add the `h' flag:

 :0hc
 ! my_pager(_at_)paging(_dot_)com

retains the original subject but does not send a body.  You might want to
specify some conditions, though, so that you aren't paged for every single
piece of incoming mail.