|
number of emails over command line
Hi,
I'm searching for a way how i can check if I have email on a server using the command line, I don't want to see the email ... don't want to download it from the server ... i just want to know if i have one and if so ... how much.
The point is that I have an IMAP account on an external server and I want to see if I have email or not. I am able to do this using dcop and kmail, but then I have to let kmail running all the time ... and to be honest, this sounds a bit stupid because then I can just open kmail and see if I have an email or not. So is there a way to check it in command line without opening any X-programs, and that I just get some kind of output like
$ the-magic-commandline-sequence-to-check-your-mail
local inbox: 5 new emails
IMAP inbox: 3 new emails
thanks
klaas
|