View Single Post
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#4
So to expand a little, there seems to be a file /home/nemo/.local/share/commhistory/commhistory.db which I can access with

Code:
$ commhistory-tool
Usage:
commhistory-tool listgroups
                 list [-t] [-p] [-group group-id] [local-uid] [remote-uid]
                 listcalls [{bycontact|bytime} [resolve]]
                 listcontact {contact-id|local-uid remote-uid}
                 add [-newgroup] [-group group-id] [-startTime yyyyMMdd:hh:mm] [-endTime yyyyMMdd:hh:mm] [{-sms|-mms}] [{-in|-out}] [-n number-of-messages] [-async] [-text message-text] local-uid remote-uid
                 addcall local-uid remote-uid {dialed|missed|received}
                 addVCard event-id filename label
                 addClass0
                 isread event-id {1|0}
                 isvideo event-id {1|0}
                 reportdelivery event-id {1|0}
                 setstatus event-id {unknown|sent|sending|delivered|temporarilyfailed|permanentlyfailed}
                 delete event-id
                 deletegroup group-id
                 deleteall [-groups] [-calls] [-reset]
                 markallcallsread
                 export [-group group-id] [-calls] [-groups] filename
                 import filename
                 import-json [-relativeDate yyMMdd] filename
When adding new events, the default count is 1.
When adding new events, the given local-ui is ignored, if -sms or -mms specified.
New events are of IM type and have random contents.
I have no idea why it doesn't mention SMS messages explicitely, but I can accesss them with e.g.
Code:
$ commhistory-tool listgroups
(choose a group, say 90)
$ commhistory-tool list -group 90
(all messages from one number)
I can also look at the commhistory database:
Code:
$ sqlite3 /home/nemo/.local/share/commhistory/commhistory.db
Etc.
However, the application SearchNemo seems to do what I (or you) need in a nice GUI fashion. I can find text from SMS messages, and it tells me where in the database it is, e.g.:
Code:
commhistory:Events:freeText:nnn
Where nnn is some number.
__________________
N900 in 2020
SFOS in 2021
 

The Following 2 Users Say Thank You to nonsuch For This Useful Post: