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
  Unable to send messages with chatty user641 0 770 09-07-2022, 04:35 AM
Last Post: user641
  Receiving SMS stopped working treebeard 11 5,507 08-12-2022, 10:31 AM
Last Post: treebeard
  Chatty - XMPP receiving photos - inline display doesn't work arkadione 2 1,965 07-10-2022, 03:16 AM
Last Post: arkadione
  Not receiving SMSs biketool 1 1,339 04-17-2022, 05:11 AM
Last Post: biketool
  GDM3 Receiving call on login screen d-.-b 4 3,587 10-07-2021, 06:59 PM
Last Post: d-.-b
Question Best Way of Receiving Calls Without SIM (VOIP) lovepine88 16 12,499 10-07-2021, 12:38 AM
Last Post: AndyM
  Pinephone not receiving SMS. SMS not showing on modem either. norbear 4 5,176 03-27-2021, 11:43 AM
Last Post: norbear
  Chat client is eating messages tecnocris 0 1,317 03-06-2021, 10:14 AM
Last Post: tecnocris
  Possible to disable display of SMS text messages? Zebulon Walton 2 3,215 12-08-2020, 05:32 PM
Last Post: Zebulon Walton
Information Receiving Call During Sleep Experiment/Experience RTP 1 2,906 11-05-2020, 03:47 PM
Last Post: dukla2000

Forum Jump:


Users browsing this thread: 1 Guest(s)