hawkins / Shawk

Library to Send & Receive SMS for Free using Email or Your Phone Number
https://shawk.now.sh/
MIT License
15 stars 4 forks source link

Find messages in inbox by matching a gateway #2

Closed hawkins closed 7 years ago

hawkins commented 8 years ago

Currently messages are determined to be 'text messages' only by their short length.

Ideally refreshInbox() will look at each message in the inbox and determine if their sender matches the pattern outlined by any gateway defined in Contact.py's list of gateways.

hawkins commented 7 years ago

Another thought would be to target only receiving messages from known senders (contacts). This would eliminate any chance of a 'false positive', but it may be at too large expense of functionality.

hawkins commented 7 years ago

Completed in ab0133c889e7af068880a1770d703ff149304b9e.

Decided to implement a regular expression to test against email sender addresses to identify if the message came from a supported domain/gateway.