Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-26-2003, 07:41 PM   #1
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


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

All times are GMT -5. The time now is 04:18 AM.

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