-
Notifications
You must be signed in to change notification settings - Fork 158
Description
We recently upgraded our old CentOS7 mail server to one based on Rocky 9 with cyrus-imapd-3.4.8-1.el9.x86_64.
Everything seemed to be working fine as before though we noticed a peculiar behavior with searches (such as in alpine client doing a select -> text -> subject). Any search on a string that is 3 chars or less just fails to find any matches. Matches are found on any mail received since the squatter index was last updated.
We have a cron job that builds the squatter index nightly looping over all users $u running
runuser -s /bin/bash - cyrus -c "/usr/sbin/squatter -d -v -r -i -p user/$u
This is usually complete by 4am
If I search for a 3 letter string in the subject like 'DMZ' it finds no matches for any email in my mailbox before 4am, but finds them in mail I received after 4am. If I search for 4 letter string " DMZ" I do find the email from before 4am with " DMZ" in the subject.
I searched the squatter man page but could not find anything about a minimal search string size. Is this expected behavior?
In imapd.conf I have:
search_engine: squat
search_maxtime: 120
search_index_headers: 0