Advertisement
Guest User

Untitled

a guest
Jul 4th, 2011
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import os
  2.  
  3. #Enter your username and password below within double quotes
  4. # eg. username="username" and password="password"
  5. username="blablabla"
  6. password="blablabla"
  7. com="wget -q -O - https://"+username+":"+password+"@mail.google.com/mail/feed/atom --no-check-certificate"
  8.  
  9. temp=os.popen(com)
  10. msg=temp.read()
  11. index=msg.find("<fullcount>")
  12. index2=msg.find("</fullcount>")
  13. fc=int(msg[index+11:index2])
  14.  
  15. if fc==0:
  16. print "0 new"
  17. else:
  18. print str(fc)+" new"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement