Thanks very much, I'll play with it a bit.
On Fri, 13 Jun 2003, Daniel Liston wrote:
>
> This is a fine idea, but how do you handle differences between top
> posters, bottom posters, and those that insert comments inline with
> the quoted message body?
>
> You could modify 'resend' to do what you want with a regular
> expression to monitor the message body too. Without regard to the
> warnings in my first paragraph, the code would look something like
> this;
>
> while <INBODY> {
> if (( $_ =~ m/^>.*$/ ) && ( $. >= 6 )) {
> next;
> }
> }
>
> To explain, the code above is checking the message body for lines
> beginning with "> anything to end of line" and skipping over them
> if the line number is greater than 5.
>
> Dan Liston
>
> Hennie Rautenbach wrote:
> > Nope ! I want everything stripped that has a ">" at the beginning of the
> > line except for the top 5 lines beginning with ">" !
> >
> > It is to remove the stuff that people don't trim from their messages
> > when replying.
> >
> > Daniel Liston wrote:
> >
> >> You mean like the footer stamped onto your message? :)
> >>
> >> Procmail can manipulate a message just about any way you want it to.
> >> The problem is writing a regular expression that will strip out what
> >> you want stripped while NOT stripping lines you do not want stripped
> >> out.
> >>
> >> Dan Liston
> >>
> >> Hennie Rautenbach wrote:
> >>
> >>> Dear folks,
> >>>
> >>> Can anyone point me to a filter that strips majordomo distributed
> >>> messages of unnecessary quoted text ? Such as the most annoying
> >>> disclaimers etc. that always end up in the replies (digests etc.)
> >>>
> >>> Is there such a beast ?
> >>>
> >>> Looking forward to your positive reply.
> >>>
> >>> Best regards,
> >>>
> >>> Hennie
> >>>
> >>>
> >>>
> >>> --------------------------------------------------------------------------------
> >>>
> >>>
> >>> This transmission is for the intended addressee only and is confidential
> >>> information. If you have received this transmission in error, please
> >>> delete it and notify the sender. The contents of this e-mail are the
> >>> opinion of the writer only and are not endorsed by Sabinet Online
> >>> Limited unless expressly stated otherwise.
> >>> --------------------------------------------------------------------------------
> >>>
> >>
> >>
> >>
> >
>
>
>
--------------------------------------------------------------------------------
This transmission is for the intended addressee only and is confidential
information. If you have received this transmission in error, please
delete it and notify the sender. The contents of this e-mail are the
opinion of the writer only and are not endorsed by Sabinet Online
Limited unless expressly stated otherwise.
--------------------------------------------------------------------------------
References:
|
|