Author Topic: Search result = empty message.  (Read 11590 times)

ksuuk

  • Full Member
  • ***
  • Posts: 120
Search result = empty message.
« on: June 07, 2017, 09:42:25 am »
Hi,

Since I started to use AquaMail, the search have never worked for me. For example I search something, I ge list of results. But when I try to open the needed message, it's body is empty and stays so forever. However, when I go to messages list and manually search the needed message and open it, the message is fine and have full body.

Seems that this happens only with the messages which I have not opened and read before in message list view.

Is this a bug or I'm missing some option?

ksuuk

  • Full Member
  • ***
  • Posts: 120
Re: Search result = empty message.
« Reply #1 on: June 07, 2017, 10:29:50 am »

Your account server name? Pop or imap protocol? Your device ? AquaMail version ?

Own server, Dovecot, IMAP, AquaMail v1.11.0-426

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Search result = empty message.
« Reply #2 on: June 09, 2017, 09:06:58 pm »
Not a "known" issue, and I can see in your screenshots that the app is trying to load the found message.

Aha! Think I know.

Your Dovecot takes a really long time to complete the search -- possibly minutes or tens of minutes -- and so the connection is busy when the app is trying to load the message's text.

You can try using the icon in the search panel (on the right) to cycle to a "headers only" search and check if it makes a difference.

And if you want to be able to - quickly - search on message text, please enable FTS message indexing on your server.

https://wiki.dovecot.org/Plugins/FTS
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

ksuuk

  • Full Member
  • ***
  • Posts: 120
Re: Search result = empty message.
« Reply #3 on: June 20, 2017, 05:05:34 pm »

You can try using the icon in the search panel (on the right) to cycle to a "headers only" search and check if it makes a difference.


Yes, the "headers only" helps. Can You add into Settings > Search configurable default search option, for me it would be "headers only".

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Search result = empty message.
« Reply #4 on: June 20, 2017, 08:36:43 pm »
Re: Yes, the "headers only" helps. Can You add into Settings > Search configurable default search option, for me it would be "headers only".

It would be better for everyone if you fixed your server :) I've provided the info above.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

ksuuk

  • Full Member
  • ***
  • Posts: 120
Re: Search result = empty message.
« Reply #5 on: June 20, 2017, 10:14:09 pm »

It would be better for everyone if you fixed your server :) I've provided the info above.

Well, I'm using Dovecot since the first alpha version and beeing active user in Dovecot list, I didn't know about such plugins. I'm using Maildir and Dovecot indexes files well. So for a long time in many servers and with different email clients (win/osx/android/ios etc), users had never such search problem, which I had with AquaMail -s search.  So I had no need for such plugin(s), also some suggested plugins are obsolete or require pro license.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Search result = empty message.
« Reply #6 on: June 23, 2017, 08:52:19 pm »
Your mail server apparently is very very very slow with full text search.

So I'm suggesting a way to speed it up - by using an FTS (Full Text Search index) there.

Aqua's "full text search" command is taken straight our of the IMAP spec (RFC 3501), there is nothing wrong with it:

tag SEARCH CHARSET charset TEXT {literal size+}
search literal

For the record, my Gmail account with 50,000+ messages takes 5-10 seconds even if searching for a common word (thousands of matches).

Your server probably takes minutes or even tens of minutes.

( and yes I have seen this before, with Dovecot too )
« Last Edit: June 23, 2017, 08:54:42 pm by Kostya Vasilyev, Aqua Mail »
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Search result = empty message.
« Reply #7 on: June 23, 2017, 09:43:44 pm »
My understanding (although I don't have comprehensive tests to confirm this), -- that enabling autoindexing might also speed up the search, especially, if it is always the first search that is slow, and the subsequent ones, done right away after the first one are faster.
The bottom of the page linked by Kostya describes how to configure autoindexing in Dovecot.

ksuuk

  • Full Member
  • ***
  • Posts: 120
Re: Search result = empty message.
« Reply #8 on: June 23, 2017, 10:45:53 pm »
Your mail server apparently is very very very slow with full text search.

So I'm suggesting a way to speed it up - by using an FTS (Full Text Search index) there.


Ok, I enabled FTS (fts_autoindex = yes) and thanks for the FTS hint.