Hi all,
I'm new to Macros,, so forgive me if my question has
been covered here already a dozen times. I've tried
using the "Record" function, and setting up an application,
but it seems there's something I'm missing.
I'm working with large text files from a discussion list
archive, weekly digests and such and each one with
hundreds of posts, and thousands of lines.
What I'm trying to do is delete some of the header and
routing info, usually about 20 lines, but it's not consistent.
Here's an example, of the section I'd like to edit/delete.
From: "Return-Path:" including that line,,
To: "Message-ID:" including that line.
The only thing consistent in the data would be those two
things. Return-Path & Message-ID. Everything in between
would usually be different and I'd like to have removed.
Thanks,
Ron
-- End --
==> Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from almond.ease.lsoft.com (almond.ease.lsoft.com [209.119.0.160])
by server1.safepages.com (Postfix) with ESMTP id B70A060FA
for <read@nnnmnmn>; Mon, 21 Jan 2002 08:31:25 +0000 (GMT)
Received: from home (maillist.abusenet.org) by almond.ease.lsoft.com (LSMTP for Windows NT v1.1b) with SMTP id <[email protected]>; Mon, 21 Jan 2002 3:31:26 -0500
Received: from HOME.EASE.LSOFT.COM by HOME.EASE.LSOFT.COM (LISTSERV-TCP/IP
release 1.8e) with spool id 69424875 for
[email protected]; Mon, 21 Jan 2002 03:31:26 -0500
Received: from imo-m04.mx.aol.com by home.ease.lsoft.com (LSMTP for Windows NT
v1.1b) with SMTP id <[email protected]>; Mon, 21 Jan
2002 3:31:25 -0500
Received: from [email protected] by imo-m04.mx.aol.com (mail_out_v31_r1.25.) id
5.36.21efb0fe (15863) for <[email protected]>; Mon,
21 Jan 2002 03:31:20 -0500 (EST)
Received: from web38.aolmail.aol.com (web38.aolmail.aol.com [205.188.222.14])
by air-id06.mx.aol.com (v82.22) with ESMTP id MAILINID62-0121033120;
Mon, 21 Jan 2002 03:31:20 1900
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Mailer: Unknown (No Version)
==>> Message-ID: <[email protected]>
Date: Mon, 21 Jan 2002 03:31:20 EST
Reply-To: [email protected]>
Sender: Faithful <[email protected]>
From: "Mark" <[email protected]>
Subject: Re: [LI] Sample Post
I'm new to Macros,, so forgive me if my question has
been covered here already a dozen times. I've tried
using the "Record" function, and setting up an application,
but it seems there's something I'm missing.
I'm working with large text files from a discussion list
archive, weekly digests and such and each one with
hundreds of posts, and thousands of lines.
What I'm trying to do is delete some of the header and
routing info, usually about 20 lines, but it's not consistent.
Here's an example, of the section I'd like to edit/delete.
From: "Return-Path:" including that line,,
To: "Message-ID:" including that line.
The only thing consistent in the data would be those two
things. Return-Path & Message-ID. Everything in between
would usually be different and I'd like to have removed.
Thanks,
Ron
-- End --
==> Return-Path: <[email protected]>
Delivered-To: [email protected]
Received: from almond.ease.lsoft.com (almond.ease.lsoft.com [209.119.0.160])
by server1.safepages.com (Postfix) with ESMTP id B70A060FA
for <read@nnnmnmn>; Mon, 21 Jan 2002 08:31:25 +0000 (GMT)
Received: from home (maillist.abusenet.org) by almond.ease.lsoft.com (LSMTP for Windows NT v1.1b) with SMTP id <[email protected]>; Mon, 21 Jan 2002 3:31:26 -0500
Received: from HOME.EASE.LSOFT.COM by HOME.EASE.LSOFT.COM (LISTSERV-TCP/IP
release 1.8e) with spool id 69424875 for
[email protected]; Mon, 21 Jan 2002 03:31:26 -0500
Received: from imo-m04.mx.aol.com by home.ease.lsoft.com (LSMTP for Windows NT
v1.1b) with SMTP id <[email protected]>; Mon, 21 Jan
2002 3:31:25 -0500
Received: from [email protected] by imo-m04.mx.aol.com (mail_out_v31_r1.25.) id
5.36.21efb0fe (15863) for <[email protected]>; Mon,
21 Jan 2002 03:31:20 -0500 (EST)
Received: from web38.aolmail.aol.com (web38.aolmail.aol.com [205.188.222.14])
by air-id06.mx.aol.com (v82.22) with ESMTP id MAILINID62-0121033120;
Mon, 21 Jan 2002 03:31:20 1900
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Mailer: Unknown (No Version)
==>> Message-ID: <[email protected]>
Date: Mon, 21 Jan 2002 03:31:20 EST
Reply-To: [email protected]>
Sender: Faithful <[email protected]>
From: "Mark" <[email protected]>
Subject: Re: [LI] Sample Post