procmail
[Top] [All Lists]

Re: Using procmail to filter out original message that was replied to

1997-08-18 18:22:23
On Mon, 18 Aug 1997, Timothy J Luoma wrote:

      Author:         abagchee(_at_)notes(_dot_)borland(_dot_)com
      Original-Date:  Mon, 18 Aug 1997 16:25:46 -0700
      Message-ID:     
<882564F7(_dot_)00803752(_dot_)00(_at_)notes(_dot_)borland(_dot_)com>

I want to do a text search on just the newly added text.  Is
there a way to do this in Procmail?

I've thought about doing that, but never did....

I don't know that there is a way to do it in procmail without feeding the  
body to grep "^\>" and then you'd have to take into account multiple  
citations ie

Either sed or perl could do it.  If everyone used a standard quote mark.  
 
someone wrote:
this is a nested quote
and I want to get rid of it
using procmail
^^^^^^^^^^^^^^^^^^^^^^^^to be deleted? 

that's a good idea
but how do you expect to accomplish it?

I fianlly gave up on the idea, thinking it would cause more problems than it  
would solve (ie when people respond point by point and I can't see what they  
are quoting...

untested, but something like this should delete the part of the original
message you quoted Tim:

:0Bfbw
| sed -e '/^> >/d'

And as you noted, your responce would then lose some context.  
 
It would be nicer if folks just trimmed the quotes to what was necessary...

Why?  It doesn't impact on them - sort of like adding things to the
subject, long sigs, and not bothering to diable htmlization of messages.
It doesn't adversley effect the sender, so they don't care.  

-- 
"I must have a prodigious quantity of mind; it takes me as much as a
week sometimes to make it up."
                -- Mark Twain, "The Innocents Abroad"