Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Aug 1998 00:37:29 -0500
From:      Child <child@mctcnet.net>
To:        questions@FreeBSD.ORG
Subject:   sed qustion?/ email extraction
Message-ID:  <199808300510.AAA12049@gw.sommers.dyn.ml.org>

next in thread | raw e-mail | index | archive | help
Dear all
i'm trying to extract a email message headers+body which will be piped in
from  an alias and kill of any MIME attachments and HTML formating that I
can then pipe to majordomo 
example...

date: Thu, 20 Aug 1998 18:29:12 +0000
    
From: UNITY Center <blahr@blah.com>                                          
Subject: picture from me 

his is a multi-part message in MIME format.
   
- --------------97658115C14BC4C2C1A2CB03
    
Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854";
x-mac-creator ="4D4F5353"
                  
Content-Transfer-Encoding: 7bit
    

    
Hello folks, this is me, believe it or not.
    

   
- --------------97658115C14BC4C2C1A2CB03
    
Content-Type: image/gif; x-mac-type="47494666"; x-mac-creator="3842494D";
name="
freebsd.gif"                                                                  
Content-Transfer-Encoding: base64   

etc etc

what I am hoping for is 

Date: Thu, 20 Aug 1998 18:29:12 +0000
    
From: UNITY Center <blahr@blah.com>                                          
Subject: picture from me 

Hello folks, this is me, believe it or not.
    

   
and get rid of the annoying HTML stuff
Hi:
    
Debbie here.
    

    
- ------=_NextPart_000_000E_01BDCCFD.9108B0E0
    
Content-Type: text/html;
    
    <anooying HTML STUFF >


can someone help me on how I could do this

Thanks ALOT
Jeremy Sommer



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808300510.AAA12049>