|
| Sun, Sep 07th | home | browse | articles | contact | chat | submit | faq | newsletter | about | stats | scoop | 05:10 UTC |
|
login « register « recover password « |
| [Article] | add comment | [Article] |
| Theme topics | Apps | Resources | Window Managers | Afterstep | Blackbox | Enlightenment | Fluxbox | GTK | IceWM | KDE | MetaCity | Sawfish | Window Maker |
It's bad enough having to put up with our own bad habits. What can we do about others who can't or won't change their annoying ways? One solution is to learn patience. This takes a long time and is not at all fun. Another is to quietly reorder the world the way we like it when they're not looking. We secretly reseat the toilet paper roll so the flap goes over instead of under. We turn all the coat hangers to face the same way. We put the spices on the rack the way they belong. t-prot is another tool in this arsenal. It makes the ragtag email we receive look like the good and proper email we send. Copyright notice: All reader-contributed material on freshmeat.net is the property and responsibility of its author; for reprint rights, please contact the author directly. The Internet has grown large enough that there's little hope of forcing all its users to love, honor, and obey guidelines such as these. Every new mail user agent seems to default to quoting the entire message to which the author is replying (which usually quotes the previous one and the previous one and the previous one). In part, this is a blessing, since otherwise nothing would ever be quoted, and we'd never have any idea what "me" was "tooing". It also means, however, that a large portion of the messages that hit our inboxes contain 273 quoted lines with a couple of original ones at the top or bottom. Many people have no idea they're doing this and will never be computer-literate enough to delete the quoted text or prune it to just the relevant parts. Others are fully aware of what they're doing but simply don't care. What can we do? My solution for people who send HTML messages, MS Word files, and the like was not to transform everyone in the world into a reasonable person, but to write scripts that convert their messages into plain text ones that look like every other message. t-prot lets me do the same for quoting. Let's see an example:
(I apologize to the members of the lilypond-user mailing list that the examples here come from their posts. Unfortunately, as I watched my mail for messages that would be good for this article, the best ones all came from there. :) Now, what can we make of this message? It's a screenful of a quotation of a message we have presumably already read. We're seeing 28% of it. Is there something new at the bottom? In the middle, interspersed among more quoting? Or did the author just hit "Reply" and "Send" by mistake, without adding anything? One way to find out is to hit pagedown, pagedown, pagedown. Another is to let t-prot do its magic:
Voilà! The whole message fits on one screen, and we can see all we need to see as soon as we open it. Here's how it works: t-prot is simply a filter; pipe a message through it, and more palatable results are produced. It can:
"TOFU"? The manual page explains it this way:
So "t-prot" provides "TOFU Protection". Some more examples:
This time, we have some new text at the top with a huge quote below. That's probably all there is to the message, right? But can you be sure? What if he's put tomorrow's winning lottery numbers at the bottom? You'll never be satisfied until you've scrolled down (and been disappointed). But if you were using t-prot, you'd see this:
Here's another six-line message...
... from which t-prot strips a 67-line quote and a 15-line (!) signature:
One more. Is there anything here?:
Yes, indeed. t-prot squeezes out the extras on both sides and brings us the gold hidden in the middle:
t-prot is well-documented and very customizable. You can control which annoyances you want it to handle, how much quoting is too much, etc. If you haven't already, imagine how much more quickly you can go through the day's mail from a list if only the important parts of a message are shown. Run on over to Jochen Striepe's site, give t-prot a try, and give him your thanks. By the way...You may have guessed that the MUA in the above screenshots is mutt. t-prot is simply a filter and can be used with any email or Usenet software, but it was originally written with mutt in mind and has some features which make it especially nice when combined with mutt. So, as long as we're talking about mutt, let me share a few favorite mutt tips:
If you have any other mutt goodness to share, please add it to the comments below. Author's bio: jeff covey no longer has a cat on his shoulder. T-Shirts and Fame! We're eager to find people interested in writing articles on software-related topics. We're flexible on length, style, and topic, so long as you know what you're talking about and back up your opinions with facts. Anyone who writes an article gets a t-shirt from ThinkGeek in addition to 15 minutes of fame. If you think you'd like to try your hand at it, let jeff.covey@freshmeat.net know what you'd like to write about. [Comments are disabled]
[»]
Old ways... I like programms like t-prot, it's a shame theres ain't more of em out
there. In fact they should be added to some mail/news clients as a default
snip'er. --
[»]
mutt-display-filter My display filter may be found at http://aperiodic.net/phil/configs/bin/mutt-display-filter. Though my mutt colors are done in a very different style than jeff's, you can see my setup at http://aperiodic.net/phil/configs/mutt/colors. --Phil (played with t-prot a while back, perhaps I'll revisit.) --
[»]
Re: mutt-display-filter
Thanks for sharing, Phil!! :-) --
[»]
Cat on Shoulder? Could someone kindly explain about the cat? BozMo --
[»]
Re: Cat on Shoulder?
She got tired, and hopped down. --
[»]
Re: mutt-display-filter
[»]
Nice tool. Google Mail has a nice way of stripping down quoted segments and just getting to the meat of replies. I haven't tried to tear it apart to see how they've engineered what constitutes as meat, modified meat, or duplicated meat, but it definitely reminds me of something I'm seeing here with t-prot. I look forward to trying it. Thanks.
[»]
Mutt colors? I like your mutt colors setup. Would you care to give us your .muttrc settings?
[»]
Re: Mutt colors?
Here are the color parts: http://jeffcovey.net/tmp/muttcolors.html
Sincerely, --
|