LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-26-2003, 06:41 PM   #1
rebuke
LQ Newbie
 
Registered: Nov 2003
Posts: 6

Rep: Reputation: 0
Question Count of unread messages from command line


I'm writing some code to control a 20x4 char lcd display. One of the things I want to include on it is a count of unread email.

I'm trying to find a simple way of getting this count, without getting overly complicated and having to try and call the mail program with various options. There is probably a simple way that I don't know about but I'm self taught so I miss certain things!

I'm currently using Redhat 8.0 so the mail spools are at /var/spool/mail/username. I only want this program to check the mail for me so I can run it as me so permissions aren't a problem or anything. It is however important that I only get the UNREAD count as I keep a lot of email sitting on the server because I use Squirrelmail talking to an IMAP server.

Thanks in advance,
Alex Brett
rebuke@rebuke.eu.org
 
  


Reply



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
Sending MSN msngr messages from command line saravkrish Linux - Software 5 08-11-2005 06:02 AM
Command-line mail to read KMail messages daihard Linux - Software 3 12-05-2004 12:29 PM
word count in a line pantera Programming 4 08-25-2004 01:14 PM
Viewing program messages when program isn't run from command line? Locura Linux - Software 1 09-27-2003 08:19 AM
squirrelmail doesn't see unread messages ixion Linux - Software 0 09-14-2003 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration