procmail
[Top] [All Lists]

Extracting text from a message body

1995-12-08 12:43:19
I have a _bunch_ of messages that I need to process.  Each message is in a 
seperate file, as in the following:

MAIL From:<list(_at_)abc(_dot_)com>
RCPT To:<brankin(_at_)foo(_dot_)com>
RCPT To:<jbrownf(_at_)foo(_dot_)com>
RCPT To:<psmicke(_at_)foo(_dot_)com>
Date: Thu, 7 Dec 1995 18:31:59 -0700
Message-Id: <s0c6d35e(_dot_)095(_at_)wp(_dot_)pgn(_dot_)com>
Errors-To: list(_at_)abc(_dot_)com
Reply-To: list(_at_)abc(_dot_)com
Originator: list(_at_)abc(_dot_)com
Sender: list(_at_)abc(_dot_)com
Precedence: bulk
 From: Brian Rankin (brankin(_at_)fwl(_dot_)org)
To: Multiple recipients of list <list(_at_)abc(_dot_)com>
Subject: Expire/Reduce Horrors and more Horrors -Reply -Reply

This is the text


The problem is:  
a)  How do I write a rule that will place the MAIL From: value into a 
variable, and place RECPT To: value into a variable?

b)  Since the message is to be delivered to the RECPT To: value, I think I 
need to delete the regular From: and To: lines from the message.  How do I do 
this?

Any suggestions greatly appreciated.

Sincerely,

Brian Rankin



<Prev in Thread] Current Thread [Next in Thread>
  • Extracting text from a message body, Brian Rankin <=