Changes the sms log file so that new messages can be counted
The log now contains @READ@ where @ is a null byte where new and old messages diverge. This means that new sms's can be more easily counted This, as well as a count for missed calls, has been added to the phoneStatus notification
This commit is contained in:
parent
b568784db3
commit
6dec897849
2 changed files with 25 additions and 2 deletions
|
@ -61,6 +61,8 @@ echo "$ids" | while read -r id; do
|
|||
|
||||
log="$SMS_DIR/$number/sms.log"
|
||||
|
||||
[ ! -f "$log" ] && printf '\00READ\00' >> "$log"
|
||||
|
||||
# Store the message in the log file
|
||||
echo "RECIEVED"
|
||||
echo "SENDER: $number" >> $log
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue