maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Search Calendar, contacts, messages (https://talk.maemo.org/showthread.php?t=101286)

ric9K 2022-01-17 10:10

Search Calendar, contacts, messages
 
Hi,

As you maybe know, I recently divorced with lots of sadness from my N900 to try SFOS (XA2).

Sure, I miss things. But that's the less worse experience I had with a "normal smartphone". It's even pretty cool, open, cosy, quiet (no goopple bla bla all the time) and working well for me.

Back to my subject.
We had Scout on N900 to search messages, calendar and contacts. Remember?

Could we port that to SFOS, you think?
Could I use the sdk, find the sources, adapt, port?
Or make new app with a GUI usinq sqlite?

ric9K 2022-01-30 06:22

Re: Search Calendar, contacts, messages
 
Search app for SFOS like Scout:
Do you all SFOS users have a so huge memory to always know where is what?
C'mooon;):)

nonsuch 2022-01-30 09:28

Re: Search Calendar, contacts, messages
 
Sounds interesting & useful.
Can you post a link to Scout source code? Can't hurt to look at it.
I think sqlite(3) is the right keyword here.
And, at least for messages, libcommhistory seems to be another:
Code:

$ pkcon get-files libcommhistory-qt5-tools | grep bin
  /usr/bin/commhistory-tool

Searching "commhistory" in openrepos I found
SearchNemo
After some fiddling (you can create new profiles) it allows me to search in sqlite only. I did find SMS text.
This just might be what you're looking for.

More links:
https://docs.sailfishos.org/Referenc...ations-history
https://together.jolla.com/question/...y-from-backup/
https://talk.maemo.org/showthread.php?t=91909
https://github.com/merlin1991/Harmat...rt/jollaIm.cpp

nonsuch 2022-02-03 15:21

Re: Search Calendar, contacts, messages
 
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.

ric9K 2022-02-03 18:02

Re: Search Calendar, contacts, messages
 
Thank you @nonsuch for this wide answer!
I don't know where to find Scout sources but I wrote to Nicolai. Maybe he'll answer if he is still around.
I also searched on his page here.
There is a link to the garage but I have no access there. IIRC, I tried to register but it was closed.
(For the recall, here are all the compiled packages/versions of Scout)

SDK+Gui is over my head. I could maybe, and would like, but I'd need 2 month study and training, I guess.

But why not doing something more user friendly in a script?
This is something I could try when I finish this full work period.
And when I'll feel there's nothing to try with GPS anymore, also.

A script and something like zenity. Would be easy!

But is SFos going to last? Although I am very pleased with mine, I read quiet a number of unsatisfied users reporting a lot of bugs in an atmosphere which is not...like here. :confused:
I am OT. But here, I dare, don't I? :):D

EDIT: Forgot, yes SearchNemo, I had tried it. I was disappointed not to find something similar to Scout and maybe closed it a bit to early. Gonna try again.

ric9K 2022-02-05 09:33

Re: Search Calendar, contacts, messages
 
Yeah, laziness...
In fact, Serach Nemo is great and well configurable.
You were right @nonsuch, thanks, it does the job!

One has to think a bit differently than in Scout but it's even greater and wider effective on the user's directory.

nonsuch 2022-02-09 07:33

Re: Search Calendar, contacts, messages
 
Quote:

Originally Posted by ric9K (Post 1573522)
Yeah, laziness...
In fact, Serach Nemo is great and well configurable.
You were right @nonsuch, thanks, it does the job!

One has to think a bit differently than in Scout but it's even greater and wider effective on the user's directory.

Without any settings, it just searches everything, and then you can't find the needle in the haystack of your search results, but creating specific search profiles is easy and you can narrow it down sufficiently to be extremely useful.

Quote:

Originally Posted by ric9K (Post 1573514)
But is SFos going to last?

Ever since I started using it almost 2 years ago, updates have been coming in regularly. Every now and then an app from Openrepos stops working after an SFOS update, but is soon fixed.
Otherwise, the updates went smoothly.

I've had more problems with LineageOS than I ever had with SailfishOS.

So yes, I definitely think it's going to last.

Quote:

I read quiet a number of unsatisfied users reporting a lot of bugs in an atmosphere which is not...like here.
If you use F(L)OSS a lot, this happens all the time. It can have several reasons:
  • First of all, it ususally isn't a bug in the sense that something is broken in the code. Often things just don't work as desired, or the user started poking around and is surprised that things break, or it's a 3rd party problem.
  • Helpdesk mentality. People think they just need to shout and demand that problems be fixed, and not try to (help) fix them themselves.
  • Some FOSS/Linux zealots think that by loudly criticizing every tiny bit that "keeps the OS from being adapted by more users" they are somehow helping the cause...
It usually takes a bit of interaction, reading beyond the headline, and reading the first few replies to debunk 90% of such loud complaints.

ric9K 2022-02-13 18:21

Re: Search Calendar, contacts, messages
 
Quote:

Originally Posted by nonsuch (Post 1573552)
[*]Helpdesk mentality...

:):p the expression I was missing.

So, good to hear that those unsatisfied people and the [apparent] important number of reported "bugs" are not a sign of a future abandon. Sure that some of these "bugs" could be related to all the fiddling/install/uninstall/experiments done by us...

Nicolai, author of Scout kindly answered to me to point where the sources, that I didn't find, are: http://maemo.org/packages/source/view/fremantle_extras_free_source/scout/0.1.5/

Just at the right place :--)

nonsuch 2022-02-16 17:17

Re: Search Calendar, contacts, messages
 
Quote:

Originally Posted by ric9K (Post 1573606)
Sure that some of these "bugs" could be related to all the fiddling/install/uninstall/experiments done by us...

People who try out Linux (and, by extension, also Maemo/SFOS) are usually attracted by the "freedom": the fact that they can fiddle around with practically everything to make it the way they want.
Now to me, this automatically entails the possibility that things might also break - but to most that seems to be a separate realisation that they make only much later, after much pain.

So, in a nutshell, they expect to tinker with it, but at the same time to be rock solid "like Windows", or like Android. Just another case of wanting a shoehorn with teeth.

ric9K 2022-02-16 23:36

Re: Search Calendar, contacts, messages
 
Oh yes, fiddling it IS related to "unattended" bugs :)

Sorry, I like some old stupid tradidions, hence I couldn't resist:

Quote:

Originally Posted by nonsuch (Post 1573629)
...
...to be rock solid "like Windows", or like Android...[/url].

:p:):confused::rolleyes:;)


All times are GMT. The time now is 16:33.

vBulletin® Version 3.8.8