Previously sms messages were not guaranteed to be formatted with the
country code if the carrier didn't provide it. This forces it to use the DEFAULT_COUNTRY variable if set. (Thanks to Kyle Eveleth.)
This commit is contained in:
@@ -208,6 +208,7 @@ checkfornewtexts() {
|
|||||||
grep sms.content.number |
|
grep sms.content.number |
|
||||||
sed -E 's/^sms\.content\.number\s+:\s+//'
|
sed -E 's/^sms\.content\.number\s+:\s+//'
|
||||||
)"
|
)"
|
||||||
|
NUM="$(cleanupnumber "$NUM")"
|
||||||
|
|
||||||
TIME="$(echo "$TEXTDATA" | grep sms.properties.timestamp | sed -E 's/^sms\.properties\.timestamp\s+:\s+//')"
|
TIME="$(echo "$TEXTDATA" | grep sms.properties.timestamp | sed -E 's/^sms\.properties\.timestamp\s+:\s+//')"
|
||||||
TIME="$(date +%FT%H:%M:%S%z -d "$TIME")"
|
TIME="$(date +%FT%H:%M:%S%z -d "$TIME")"
|
||||||
|
Reference in New Issue
Block a user