Geary behaves like it is not indexing all of my mail
Bug Summary
Search fails to find some of my email because Geary isn't indexing all of my mail. I don't know how to get Geary to reindex a folder or make Geary show me all of the messages in a folder.
Your installation
Geary version: 3.38.2
Geary revision: Debian/3.38.2-1
GTK version: 3.24.24
GLib version: 2.66.8
WebKitGTK version: 2.32.1
Desktop environment: KDE
Distribution name: Debian GNU/Linux
Distribution release: 11 (bullseye)
Installation prefix: /usr
- Installation method: Distribution-provided package
- Email provider: Something else, my email provider.
I connect to my email account via IMAP.
Steps to reproduce
- Launch Geary.
- Let Geary run for hours.
- If I received a prompt in Geary which indicated a problem with connecting to my IMAP server I clicked "Retry" and the prompt went away.
- Searches for known messages on the account weren't showing up as hits in Geary.
- Looking at my account from webmail showed that I can find folders with megabytes of messages which Geary doesn't show.
What happened?
Geary won't find the emails I know are there. Geary is behaving consistent with not indexing all of the messages in every folder.
What did you expect to happen?
I expected Geary to find all hits which match my search term as typed including hits I know are there (I can see them in webmail). I expected Geary to index all mail in the account across all folders and index new mail as new mail arrived.
Relevant logs and/or screenshots
I'm not sure what to include to show that Geary is missing some mail. On searching for "reflection" and "reflections" the log included:
[deb] 15:05:54.0757 geary:imap-db-search-query.vala:689: Stemmed "reflect" dropped searching for "reflection": too much distance in terms
[deb] 15:05:56.0678 geary:imap-db-search-query.vala:689: Stemmed "reflect" dropped searching for "reflections": too much distance in terms
[deb] 15:05:57.0455 geary:imap-db-search-query.vala:689: Stemmed "reflect" dropped searching for "reflections": too much distance in terms
But I don't think that my problem is necessarily due to stemming (stemming may be a separate issue).
Related points
I opened ~/.local/share/geary/account_01/geary.db in a SQLite DB browser and searched the MessageTable for the string "reflections" in the subject field. I couldn't find the email I was looking for. This plus seeing that Geary showed me about 26 messages in a folder that has 1,033 messages tells me that Geary isn't indexing all of the messages in a folder on my IMAP server.
Interestingly, hovering over the same folder with the mouse in Geary lists "1033 messages". I bring this up only to point out that it's not my imagination -- those messages are really there to be read & indexed.