procmail
[Top] [All Lists]

Re: Message body, assign to a variable everything except lines starting with "content-" or "--"

2009-11-05 12:00:22
Hi,

Am 2009-11-05 17:54:02, schrieb reti(_at_)igrin(_dot_)co(_dot_)nz:
For example, here is the body with the words "test of the syntax":

------=_Part_100_1910259966.1257375844852
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

test of the syntax
------=_Part_100_1910259966.1257375844852--

The syntax probably needs to say something like:
Assign to variable MIME any lines except those that start with "content-"
OR "--"

So, in this example I want the variable MIME = "test of the syntax"

I tried the following and of course that returned nil because it looked at
the whole body, so I clearly needed a line by line assessment.

I use for this:

    BODY_STUFF=`formail -I ""`

Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    Tamay Dogan Network
    Debian GNU/Linux Consultant

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/>                 Michelle Konzack
<http://www.can4linux.org/>                   Apt. 917
<http://www.flexray4linux.org/>               50, rue de Soultz
Jabber linux4michelle(_at_)jabber(_dot_)ccc(_dot_)de           67100 
Strabourg/France
IRC    #Debian (irc.icq.com)                  Tel. DE: +49 177 9351947
ICQ    #328449886                             Tel. FR: +33  6  61925193
____________________________________________________________
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