> I have a couple of mail accounts, one of which gmail. I just get the
> unread count through imap (needs to be enabled within GMail) with a perl
> script. I have a small text widget in Awesome that displays the
> unread count. Clicking the mail icon launches my mail client.
You can do it with a simple script without enabling imap:

RET=$(curl --silent -n https://mail.google.com/mail/feed/atom/unread)
[ $? -eq 0 ] && echo $RET > $HOME/logfiles/gmail-unread

and after you can process file 'gmail-unread' with lua (it will be a
simple xml file).

The username and password you can store ~/.netrc...

Zsolt

-- 
To unsubscribe, send mail to [email protected].

Reply via email to