procmail
[Top] [All Lists]

Re: cleaning up quoted replies

2001-03-25 16:44:26
From: Timothy Luoma <elists(_at_)1stpc(_dot_)org>

One word:

   par

Well that looks like a good solution from what I can tell, but I
can't seem to get it to un/reformat the text that I referred to.

I use it on virtually every email I send from UNIX and on virtually
any USENET posting.  I just used it on your two lines above, which
originally looked like this:


Well that looks like a good solution from what I can tell, but I can't 
seem to get it to un/reformat the text that I referred to.

I have par hot-key-mapped into vi.


I tried an example out of the man page:

I'm not going to get into this any more on this list after this
note.  The list is about procmail, not par, and I don't want to drag
this out.  I'll simply say that it can handle it.  But
you need to set up some environment variables.  For example,
I have in .login,

setenv PARBODY '._A_a'
setenv PARINIT Rgqre
setenv PARQUOTE '_s>|:

YMMV.


The last point is that sometimes the program wouldn't
be logically able to tell, and therefore repair, broken
quotes from different levels of attributions.

Does this

here is a long line of text here and there there will be
one
word that is not quoted like all of the rest and then there will

Mean that one person said all three lines in one paragraph?  (Yes.)
Or does it mean that someone quoted an earlier speaker in Line 1 
(using 3 "> " marks), then gave an answer on Line 2, then quoted
more of the original party on Line 3?  In that case, you'd *want* the
result to look like this:

here is a long line of text here and there there will be

one

word that is not quoted like all of the rest and then there
will

Think about it: how is the program supposed to know if the attribution
markers are actually broken, i.e., off-count?

So sometimes I manually add a missing level of quotes to the broken
lines in vi, *then* run par on the paragraph.

That is, I take the above, insert one "> " on the second line
to get this:

here is a long line of text here and there there will be
one
word that is not quoted like all of the rest and then there will

Then run that through par (with a hot-key), and get something like
this:

here is a long line of text here and there there will
be one word that is not quoted like all of the rest
and then there will


Okay, basta on the par stuff for this list, I think.
I only went this far because I think a lot of people reading
along who didn't know about par might find that they are glad
to learn of its existence.

-- 
Netcom has imploded.  Please now use NOTnetcom.com for mail.
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Ex-Netcommies:  Mail "forwards" for free forwarding service!
NOT affiliated with EarthLink, Inc.'s Netcom brand identity.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>