This didn’t exist back when you wrote this, but someone wrote a POP3 FUSE filesystem: fuse-mail. A POP3 mailbox can be mounted anywhere, and mail appear as files inside the mount point. Trying it now, it doesn’t seem to work very well, and I ran into a few bugs setting it up.
I don’t think it would have been useful for your task, either. It seems to only be able to fetch mail and present it. No mail management.
]]>@ths – yeah, wordpress eats the brackets in regular comments. Check out the little buttons above the comment box – one of them is labeled “Code”.
Hit that one and it will put &;t;pre lang=”java”></pre> around highlighted text. Anything inside will be typed out verbatim – including HTML brackets. Oh, and it will do code highlighting. You can change the lang attribute to perl for better effect. The plugin actually does few dozen popular languages. :)
Pretty cool solution btw! Actually it’s better than mine which was was a bit on the fast and lazy side – just install a plugin for TC, and access the mailbox as a filesystem. ;)
]]>hey, it swallows lt and gt in my perl script. grr.
the rest should read like
$pop->delete($msgnum) if ($date meets some condition);
}
$pop->quit();
use perl;
it has a wonderful POP3 module (cpan.org) and in 20 lines you can write a mail killer for all sorts of criteria. no need to setup windows box or buy TC.
#!/usr/bin/perl
use Net::POP3;
$pop = Net::POP3->new( shift, Timeout => 15, Debug => 0 ) ||
die “#! Could not connect: $!”;
$rc=($pop->apop($user,$pass); # or $pop->login($u,$p))
$msgs=$pop->list();
($num,$size)=$pop->popstat();
foreach my $msgnum (sort(keys(%{$msgs}))) {
my ($msg);
print STDERR “# Msg $msgnum\n”;
$msg=$pop->top($msgnum);
chomp(@{$msg});
($date)=grep(/^Date:\s/,@{$msg});
$pop->delete($msgnum) if ($date quit();
Yeah, its kinda a personal thing for me but its a really cool tool. I was just showing another cool thing that does something similar. I hate computer based things I like doing everything virtually.
]]>As a rule, I don’t submit my email username and passwords to 3rd party sites. So, what does that thing do?
Btw, I’m assuming this works for Gmail only. The method I described above works for any POP3 email.
]]>