Re: [dwm] dwm new message notification

From: Martin Sander <forke_AT_uni-bonn.de>
Date: Wed, 12 Dec 2007 13:52:56 +0100

On Tue, Dec 11, 2007 at 11:28:08PM -0500, Ritesh Kumar wrote:
> I think gmail supports RSS for getting unread mail. I clicked on the little
> feed icon in my firefox urlbar and I got an RSS page. I guess a little grep
> over that should do the trick. Do tell us if that works!

Hey, I had a little conversation with Jeremy via private mail, and here
is our conclusion:

$ cat ~/.fetchmailrc:
        poll *MAIL.MYMAILSERVER.ORG* with
  proto IMAP
  user *JOHN_DOE*
  there with password *VERYSECRETANDSECUREPASSWORD*
  is *JOHNNY* here
  keep

$ fetchmail -c
3 messages (2 seen) for johndoe_AT_fakegmail.com at +imap.fakegmail.com

$ fetchmail -c|sed 's/(//'|awk '{print $1-$3}'
1

Martin
Received on Wed Dec 12 2007 - 13:52:59 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:11:27 UTC