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 [EMAIL PROTECTED] at +imap.fakegmail.com $ fetchmail -c|sed 's/(//'|awk '{print $1-$3}' 1 Martin