Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

domm (4030)

  (email not shown publicly)

Just in case you like to know, I'm currently full-time father of 2 kids, half-time Perl hacker, sort-of DJ, bicyclist, no longer dreadlocked and 33 years old

I'm also head of [], maintainer of the CPANTS [] project, member of the TPF Grants Commitee [] and the YAPC Europe Foundation [].

I've got stuff on CPAN [], held various talks [] and organised YAPC::Europe 2007 in Vienna [].

Journal of domm (4030)

Tuesday January 11, 2005
03:50 PM

saving time by spending time

[ #22664 ]

During the holidays I finally took the time to implement some time-savers:

  • I read my mail using mutt, which running at a machine in the office. Most of the time I'm working from home. Everthing's fine, except if I have to view an attachment. Previously, I had to save the file to my office machine, remember the filename (or fiddle around with the mouse to copy it) and issue a longish scp command (hopefully with the correct filename / the filename still in the paste buffer) :

    scp .

    The whole procedure takes about 30 seconds.
    Thats about 20 characters. So I wrote a small script using Net::SHH and NET::SCP that looks into a special folder on my office machine, downloads everything from this folder into cwd and deletes the files from the special folder. It's about 300 characters long, and I probably typed twice as much due to debugging etc. It took me about 30 minutes. So, my investment will pay off after aprox 60 downloads, or about 2 months (at one attachment a day, which is aproximitly the amount I get). (Uhm, writing about it now probably cost me another month, or the other way round, I get a 'free' journal entry every month)

  • marking SPAM as read: I get all spams caught by spamassasin delivered into one maildir called Spam (surprisingly..). Previously, I opened the folder up in the morning, at hit CTL-r until all mails where marked read (so they'll be moved to an archive folder by another script I wrote some time ago..). That was annoying. So I took some time to study some manpages and did a bit of googling to discover:

    SHIFT-t new
    ;w r

    Tag all new mail, set all tagged mail to read.
    Easy, saves another minute a day...

  • TODO: Script to remove spam from mailinglist I admin: I assume this will mean some screenscraping and fiddling with cookies.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.