procmail
[Top] [All Lists]

Problem with formail's -A option?

1995-12-21 01:58:10
Is there a problem with formail's -A option when called from a recipe?

Formail fails when called from procmail with the -A option unless there is
a special character (e.g. @, *, or ?) in the quoted string.  See the log 
below.  

Typically I would be adding a field such as an email address that 
would have the "@" in the string, but this time I don't want these 
chars.

I'm running procmail like

        % cat message | procmail


BTW - if I use formail by itself it works fine.  That is,

        % cat message | procmail -A "X-Loop: loop text"

formail will change the header.

Note in the log file the formail -A that *does* work has double quotes at 
the end of the statement.


Any ideas what is happening?  Am I missing something obvious?
I'm using v3.1pre4 procmail.


------ <Samples> ----------


I'm using this simple message for testing:

      To: Toline
      From: fromline
      Date: dateline
      Header: headerline one
      Header: headerline two

      Body of message.


And I'm using this .procmailrc file:


      # This line doesn't work!

      :0fhw
      | formail -A "X-Loop: new header"



      # this line does work (note the "?")

      :0fhw
      | formail -A "X-Loop: new header?"



      # *** BUT! *** all the other formail flags work fine

      :0fhw
      | formail -a "X-lup: new header"

      :0
      out


And this is the output from the log file.  Note the formail error:

procmail: [29587] Wed Dec 20 23:58:33 1995
procmail: Executing "formail,-A,X-Loop: new header"
Usage: formail [+nn] [-nn] [-bfrktnedq] [-m nn] [-xaiI field] [-s prog arg ...]
procmail: Program failure (64) of "formail"
procmail: Rescue of unfiltered data succeeded
procmail: Executing " formail -A "X-Loop: new header?""  <-- note double ""
procmail: [29587] Wed Dec 20 23:58:34 1995
procmail: Executing "formail,-a,X-lup: new header"
procmail: [29587] Wed Dec 20 23:58:34 1995
procmail: Assigning "LASTFOLDER=out"
procmail: Opening "out"
procmail: Acquiring kernel-lock
From fromline  Wed Dec 20 23:58:34 1995
  Folder: out                                                               185




Bill Moseley
moseley(_at_)netcom(_dot_)com


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