faucamp / python-gsmmodem

Python module to control a GSM modem attached to the system: send/receive SMS messages, handle calls, etc
GNU Lesser General Public License v3.0
384 stars 302 forks source link

received SMS should stay in the modem if the callback fails or returns false #42

Open rejoc opened 9 years ago

rejoc commented 9 years ago

Isn't it a bug to delete the received SMS from the store BEFORE calling the smsReceivedCallback ?

Then it could be also a good feature not to delete the SMS when the callback return False (so we could reprocess the SMS in case of a callback failure...)