IMAP Perl script for fantastik(fx)

Karamba & Superkaramba

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5 .0
Description:

Just because not everybody uses POP3 to retreive mail.
Enjoy this little perl script that you can use along with fantastik and fantastikFX themes (may also work with other themes, but not tested, so might require some small changes).

You need Mail::IMAPClient (related debian package is libmail-imapclient-perl). Change account information in the script itself, then edit *.theme to match the script path and name (be aware that the script should be 700 as it contains password!)

I hope this will be useful.

Amoeba

15 years ago

Thanks. This is what I needed as I'm migrating to imap completely!!!!

VERY easy to implement into ANY other theme!

Report

Amoeba

15 years ago

If you want to count all new mail from all directories with some exections, you can use this code:

foreach my $f ($imap->folders)
{
if ( $f ne "INBOX.Spam" )
{
$i = $i + $imap->unseen_count($f);
}
}

You can probably create an array if there is more than one folder you don't want to count...

Report

mgordon78

15 years ago

Finally someone who realizes not everyone uses POP... Some tips:

Install the IMAPClient, on gentoo:
emerge Mail-IMAPClient

If you only want to know if anything new is in the inbox then instead of the for loop do simply:
$i = $imap->unseen_count("Inbox");

Report

12345678910
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
updated Jan 17 2005
added Jan 17 2005
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0