procmail
[Top] [All Lists]

Re: Adding Subject line from a file

2003-12-06 23:19:29
At 20:20 2003-12-06 -0800, rkurth(_at_)starband(_dot_)net did say:

I need to add the subject line to the following recipe using what is in the
file called .subject.


formail -I "Subject: `cat .subject`"

Note the use of reverse tickmarks. This is a function of standard _SHELL_ expansion, not something special with procmail.

I am doing it this way so that different users can add there own subject
line and msg without messing with the recipe.

You could have an includerc, in which they define simple variables -- but could enter other stuff which certainly could hose syntax - then again, so can hard newlines in the text file you're using for the replacement subject, to wit:

[.subject]
I'm a naughty boy
From: not_my_address(_at_)someotherdomain(_dot_)tld


---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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