procmail
[Top] [All Lists]

Re: Appending text to subject line

2000-02-24 02:06:29
To prepend:

   MATCH
   :0fwh
   * other conditions
   * 1^0 ^Subject:\/.*
   * 1^0
   | formail -I "Subject: start-text$MATCH"

In case one wants to fight what might follow 'Subject:' (like 20 tabs or so
:)

:0fwh
* other conditions
* ^Subject:[  ]\/[^  ].*
| formail -I "Subject: start-text $MATCH"

The [  ] contains a space and a tab.
I am not sure whether the [^  ] is necessary here,
and if not it might even slow down things.

Ruud