Chatty Segfaults if an international number does not have a "+" in front of it
If chatty is passed a number that is in an international format, but not with a "+" in front of it, Chatty segfaults.
T-Mobile USA's MMS Payload formats their "sender" message in such a manner, and purple-mm-sms hands off that number to it.
Below are the debug messaes for it:
(sm.puri.Chatty:1410): mm-sms-DEBUG: 13:24:08.101: {'Status': <'received'>, 'Date': <'2020-12-13T13:24:00-0500'>, 'Subject': <'NoSubject'>, 'Sender': <'1XXXXXXXXXX'>, 'Recipients': <['+1XXXXXXXXXX']>, 'Attachments': <[('<image000000.jpg>', 'image/jpeg', '/home/mobian/.mms/any/B076676A3E6396650CC9264671ABEA959D7D2382', uint64 501, uint64 70642)]>, 'Smil': <'<smil><head><layout><root-layout width="100%" height="100%"/><region id="Image" width="100%" height="100%" top="0%" left="0%" fit="meet"/></layout></head><body><par dur="5000ms"><img src="image000000.jpg" region="Image"/></par></body></smil>'>}
(sm.puri.Chatty:1410): mm-sms-DEBUG: 13:24:08.101: ['+1XXXXXXXXXX']
(sm.puri.Chatty:1410): mm-sms-DEBUG: 13:24:08.102: [('<image000000.jpg>', 'image/jpeg', '/home/mobian/.mms/any/B076676A3E6396650CC9264671ABEA959D7D2382', 501, 70642)]
(sm.puri.Chatty:1410): chatty-xeps-DEBUG: 13:24:08.108: Receiving msg on (nil) from 1XXXXXXXXXX with flags 2
(sm.puri.Chatty:1410): chatty-manager-DEBUG: 13:24:08.176: Unknown contact 1XXXXXXXXXX added to blist
(sm.puri.Chatty:1410): chatty-manager-DEBUG: 13:24:08.180: Posting message id:(null) flags:2 type:1 from:1XXXXXXXXXX
** (sm.puri.Chatty:1410): DEBUG: 13:24:08.182: ../src/chatty-utils.c:83 number SMS
** (sm.puri.Chatty:1410): DEBUG: 13:24:08.210: ../src/chatty-utils.c:83 number 1XXXXXXXXXX
Segmentation fault (core dumped)