Print

Install software:

opkg update
opkg install python-openssl 
opkg install distribute 
easy_install email
nano /mnt/sda1/gmail.py
#!/usr/bin/python
import poplib
import time
from email.Parser import Parser
parser = Parser()
server = poplib.POP3_SSL("pop.gmail.com", 995)
print server.user("my_gmail_address")
print server.pass_("my_password")
server.set_debuglevel(0)
def getMsgCount():
# check message count by stat() and list() functions
        numMsgs = server.stat()[0]
        print "Num msg by stat():", numMsgs
        print "Num msg by list():", len(server.list()[1])
        print "Most recent:", numMsgs, getSubj(numMsgs)
        return
def getSubj(which):
# return subject of message with id 'which'
        msg = "\n".join(server.top(which, 1)[1])
        email = parser.parsestr(msg)
        return email.get("Subject")
while True:
        print "--"
        getMsgCount()
        time.sleep(60)
chmod 755 /mnt/sda1/gmail.py
/mnt/sda1/gmail.py