#/usr/bin/python

import time
from sms_reader import SmsReader

reader = SmsReader()
global messages

if __name__ == "__main__":
    while True:
        reader.update()
        if len(reader.new_sms) > 0:
            messages = reader.new_sms
            print messages
            reader.new_sms = []

        time.sleep(1)

ceb8d66188d758a57a465f2122e02487ecac0f1e
#/usr/bin/python

import time
from sms_reader import SmsReader

reader = SmsReader()
global messages

if __name__ == "__main__":
    while True:
        reader.update()
        if len(reader.new_sms) > 0:
            messages = reader.new_sms
            print messages
            reader.new_sms = []

        time.sleep(1)
