procmail
[Top] [All Lists]

Re: recipe to add keywords to an imap message (more)

2006-03-30 05:58:21
Udi Mottelo schreef:
Ruud:
Udi:

 | formail -i "X-Keywords: \$KW"

That doesn't do what you think it does.

  Why?
  The pipe command? or all the message?


With the \, you fixate the $, so it is equivalent to:

  | formail -i 'X-Keywords: $KW'

(notice the single quotes)

But '$' is not in the default SHELLMETAS, so $KW is never expanded. 

Without the '\' it should work, because you let procmail expand $KW.

  :0
  | formail -i "X-Keywords: $KW"


Maybe you meant "$\KW"?

-- 
Groet, Ruud

____________________________________________________________
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