procmail
[Top] [All Lists]

Re: Can't change the Subject:

2005-07-14 02:33:33
On Thu, Jul 14, 2005 at 03:10:10AM -0500, Michael Bluejay wrote:

I'm trying to write a recipe to prepend a word to the SUBJECT:


I also tried this:

      TAG = ""

      :0
      * textToMatch
      { TAG = "SPAM" }

      MATCH       # kill this

      :0 fhw
      * !  TAG ?? ^^^^
      *   ^Subject: *\/[^ ].*
      | $FORMAIL -I "Subject: $TAG - ${MATCH:-<no subject>}"

When this fails my logfile says:

      procmail: Match on "^Subject: *\/[^ ].*"
      procmail: Executing " $FORMAIL -I "Subject: $TAG - ${MATCH:-<no 
subject>}""
      /bin/sh: -I: command not found

Looks like it might work if your system knew what $FORMAIL was.
Try losing the variable and just using the executable:

   | formail -I blah


After you get that solved, we can clean up the syntax a bit.

Dallman

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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