LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-13-2008, 12:44 PM   #1
Geneset
Member
 
Registered: Jan 2007
Location: Athlone, ROI
Distribution: Ubuntu Hardy Desktop, Solaris 10, Workstation 2008 x64
Posts: 75

Rep: Reputation: 16
Question Script to get number of unread messages in gmail


Afternoon gents, I've got myself another project.

But I'm trying to find a method of getting just the unread messages from a google mail account.

Any ideas?
 
Old 10-13-2008, 02:39 PM   #2
Geneset
Member
 
Registered: Jan 2007
Location: Athlone, ROI
Distribution: Ubuntu Hardy Desktop, Solaris 10, Workstation 2008 x64
Posts: 75

Original Poster
Rep: Reputation: 16
I tried with a perl module called WWW::Scraper::Gmail but something is screwy

WWW::Scraper::Gmail::countMail() just returns 0 when there are messages or 0 when there arnt. I'm assuming this is deprecated but i would have liked a more customisable interface.

Nobody else got any ideas?
 
Old 10-13-2008, 02:54 PM   #3
Tobler
LQ Newbie
 
Registered: Oct 2007
Distribution: Ubuntu, RedHat Enterprise Linux
Posts: 12

Rep: Reputation: 0
How about IMAP protocol in Gmail and fetchmail on your Linux?

~/.fetchmailrc:
poll imap.gmail.com with proto imap and options no dns
user "account@gmail.com" there is your-linux-account here options ssl keep pass your-gmail-password

Check mail without downloading and verbose option on:
fetchmail -c -v

br, Tobler
 
Old 10-13-2008, 03:04 PM   #4
Geneset
Member
 
Registered: Jan 2007
Location: Athlone, ROI
Distribution: Ubuntu Hardy Desktop, Solaris 10, Workstation 2008 x64
Posts: 75

Original Poster
Rep: Reputation: 16
I know, i was thinking that too, but i mean, thats really messy and inelegant

With perls extensability, web handling and xml processing, I'd hav thought that it would be a breeze. Guess not.
Thank you for your contribution.
Any other ideas?
 
  


Reply

Tags
gmail, google


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gmail Imap Poll my Sent Folder Script? aot2002 Linux - General 3 03-23-2008 07:54 PM
LXer: Encrypt and sign Gmail messages with FireGPG LXer Syndicated Linux News 0 06-04-2007 07:31 PM
yahoo marks Gmail messages as spam arunswarup General 8 11-04-2005 09:45 AM
Count of unread messages from command line rebuke Linux - Software 0 12-26-2003 06:41 PM
squirrelmail doesn't see unread messages ixion Linux - Software 0 09-14-2003 01:44 PM


All times are GMT -5. The time now is 11:04 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration