43 Folders

Back to Work

Merlin’s weekly podcast with Dan Benjamin. We talk about creativity, independence, and making things you love.

Join us via RSS, iTunes, or at 5by5.tv.

”What’s 43 Folders?”
43Folders.com is Merlin Mann’s website about finding the time and attention to do your best creative work.

Perl Scripts?

Hey guys,

I remember a post by Merlin a while back I believe pointing to some interesting perl scripts that filtered out an inbox of to dos. Do you guys know where that was? I'm trying to get my brother interested in GTD and he's mostly a CLI guy, so I thought these might be right up his alley.

Thanks!!
-Allen

TOPICS: GNU/Linux
Carla's picture

Just found, honestly by accident...

Just found, honestly by accident :o :

Quote:
Script to filter by header (by Marc Mutz)
This perl script can be used with a pipe through filter action after a "remove header Reply-To" action. It's useful for people who want to change certain headers based on the content of other headers...This particular script [as written right now] replaces (if used in conjunction with the remove header Reply-To action) the Reply-To header of mails sent from a debian-style bugtracking system with @bugs.kde.org. This is useful if bug reports are delivered to developers through a mailinglist that overwrites the Reply-To header with its post address:

#!/usr/bin/perl
    $endOfHeader = 0;
    while (<>) {
        if ( $endOfHeader == 0 )
        {
            if ( /^(?i:Subject):\s+Bug\#(\d{4,5}):/ )
            {
                $_ = "Reply-To: $1\@bugs.kde.org\n".$_;
            }
            elsif ( /^$/ )
            {
                $endOfHeader = 1;
            }
        }
        print;
    };

 
EXPLORE 43Folders THE GOOD STUFF

Popular
Today

Popular
Classics

An Oblique Strategy:
Honor thy error as a hidden intention


STAY IN THE LOOP:

Subscribe with Google Reader

Subscribe on Netvibes

Add to Technorati Favorites

Subscribe on Pageflakes

Add RSS feed

The Podcast Feed

Cranking

Merlin used to crank. He’s not cranking any more.

This is an essay about family, priorities, and Shakey’s Pizza, and it’s probably the best thing he’s written. »

Scared Shitless

Merlin’s scared. You’re scared. Everybody is scared.

This is the video of Merlin’s keynote at Webstock 2011. The one where he cried. You should watch it. »