Not receiving SMS messages
#14
I was having an issue with USA T-Mobile (not CDMA) on the PureOS port for PP CE in which T-Mobile spam sent MMS messages to me (perhaps trying to confirm something). This was further exacerbated by being in an area without signal and the phone's battery dying regularly. I created the following script to delete the messages they send.

Code:
#!/bin/bash

MODEM=`sudo mmcli -L | awk '{print $1}' | awk -F'/' '{print $6}'`
oIFS=$IFS
IFS=$'\n'

CACHEDSMS=""

for CACHEDSMS in `sudo mmcli -m $MODEM --messaging-list-sms | awk '{print $1}' | awk -F'/' '{print $6}'`; do
    if sudo mmcli -s $CACHEDSMS | grep 'smsc: +12063130057' ; then
        sudo mmcli -m $MODEM --messaging-delete-sms=$CACHEDSMS
    fi
done

While I haven't put this in a cron, the script works and should be able to be placed in a cron.


Messages In This Thread
Not receiving SMS messages - by newton688 - 05-31-2020, 08:23 AM
RE: Not receiving SMS messages - by 1ZachM - 05-31-2020, 09:32 AM
RE: Not receiving SMS messages - by canadien666 - 05-31-2020, 07:48 PM
RE: Not receiving SMS messages - by antiX-Dave - 06-01-2020, 08:53 PM
RE: Not receiving SMS messages - by brb78 - 06-09-2020, 09:59 AM
RE: Not receiving SMS messages - by devrtz - 06-09-2020, 10:53 AM
RE: Not receiving SMS messages - by brb78 - 06-09-2020, 11:02 AM
RE: Not receiving SMS messages - by brb78 - 06-10-2020, 10:53 AM
RE: Not receiving SMS messages - by brb78 - 07-02-2020, 01:56 PM
RE: Not receiving SMS messages - by 0x070 - 07-02-2020, 06:10 PM
RE: Not receiving SMS messages - by bcnaz - 07-02-2020, 07:34 PM
RE: Not receiving SMS messages - by a-wai - 07-03-2020, 02:31 AM
RE: Not receiving SMS messages - by brb78 - 07-07-2020, 12:33 PM
RE: Not receiving SMS messages - by thwright - 07-08-2020, 08:07 AM
RE: Not receiving SMS messages - by demetrius - 11-24-2020, 12:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Best Way of Receiving Calls Without SIM (VOIP) lovepine88 12 982 07-23-2021, 03:43 AM
Last Post: AndyM
  Pinephone not receiving SMS. SMS not showing on modem either. norbear 4 1,332 03-27-2021, 11:43 AM
Last Post: norbear
  Chat client is eating messages tecnocris 0 379 03-06-2021, 10:14 AM
Last Post: tecnocris
  Possible to disable display of SMS text messages? Zebulon Walton 2 949 12-08-2020, 05:32 PM
Last Post: Zebulon Walton
Information Receiving Call During Sleep Experiment/Experience RTP 1 1,418 11-05-2020, 03:47 PM
Last Post: dukla2000

Forum Jump:


Users browsing this thread: 1 Guest(s)