procmail
[Top] [All Lists]

Re: Assigning the body to a variable?

2001-04-17 03:01:59
* Randy <Procmail(_at_)tcgdata(_dot_)com> [010416 22:56]:
Hi guys,

I can't be too far off with this.  However, I am quite new to Procmail, so 
please forgive me ignorance.  I simply want to assign the body of the 
message to a variable... Can someone please lend a hand?  Here is what I 
have below... and I am sure it is something small and stupid.

      :0b
      {
              TheBody = \<
      }

    :0fhbw
      | go.exe >>list.mail

According to the man page, you can extract the body using formail.
Perhaps try this (untested, of course!):

:0
{ THE_BODY=`|formail -I ""` }

-- 
Teach me, and I will hold my peace: and if I have been ignorant in
any thing, instruct me.
   -- Book of Job, 6:24
--
_______________________________________________
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>