procmail
[Top] [All Lists]

Re: Auto-Reply question

1997-10-25 16:17:24
Charles Gagnon asked,

| What I need to know is how do I include the $SUBJECT and the $TO of the
| original message. I would like to write something like:

|  Your message to $TO concerning $SUBJECT could not be delivered...

Without the overhead of running an external process,

 :0
 * ^To:[        ]*\/[^  ].*
 { TO=$MATCH }

 :0
 * ^Subject:[   ]*\/[^  ].*
 { SUBJECT=$MATCH }

In each condition, the first set of brackets enclose space and tab; the
second set enclose caret, space, and tab.

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