aboutsummaryrefslogtreecommitdiffstats
path: root/TODO
Commit message (Expand)AuthorAgeFilesLines
* TODO: drop paragraph about reworking the IMAP URL parser (done).Nikolaus Schulz2007-11-011-6/+0
* TODO: new items: Nikolaus Schulz2007-10-231-0/+7
* TODO: updated with some old items which weren't yet committed to svn.Nikolaus Schulz2007-09-181-0/+42
* TODO update. Added: IMAP url clutter/password leakage, unfriendly lockingNikolaus Schulz2006-11-021-1/+5
* Added a few items to the TODO list that won't be resolved with the next release.Nikolaus Schulz2006-10-311-0/+8
* TODO: added that currently all items are from the original author and still have<
#!/usr/bin/perl

# fetchmail -> procmail pretti-fier proxy thingamajig
# ver. 2000-04-01
#
# John Lim Eng Hooi <jleh@mail.com>
#

# Where's procmail located?
$proc_path = '/usr/bin/procmail';

# Define your ANSI color codes here, I've only bothered to define
# those I use :)
$ANSI_green = "\e[0;32m";
$ANSI_b_white = "\e[1;37m";
$ANSI_normal = "\e[0;39m";

# Open up procmail
open (PROCPIPE, "|$proc_path") || die "Can't open procmail pipe!";

# Analyze the message line by line
while (<STDIN>) {

   # Suck up the lines we want, in this case I just want From: and Subject:
   if (/^From:/) {
     $from = $_;
   }

   if (/^Subject:/) {
     $subj = $_;
   }

   # Stuff it out to the pipe too
   print PROCPIPE;
}

# Print it out
print "\n";
print $ANSI_green, "  ", $from;
print $ANSI_b_white, "  ", $subj, $ANSI_normal;

# fetchmail's status is appended after this
print "  -->";

# We're done
close (PROCPIPE);
d>1-0/+26