code: def processStoredSms(self, unreadOnly=False):
          
          states = [Sms.STATUS_RECEIVED_UNREAD]
          if not unreadOnly:
              states.insert(0, Sms.STATUS_RECEIVED_READ)
          for msgStatus in states:
              messages = self.listStoredSms(status=msgStatus, delete=True)
              for sms in messages:
                  self.smsReceivedCallback(sms)
docs: Process all SMS messages currently stored on the device/SIM card.
          
          Reads all (or just unread) received SMS messages currently stored on the 
          device/SIM card, initiates "SMS received" events for them, and removes 
          them from the SIM card.
          This is useful if SMS messages were received during a period that
          python-gsmmodem was not running but the modem was powered on.
          
          :param unreadOnly: If True, only process unread SMS messages
          :type unreadOnly: boolean