Skip to content

squatter fails on search for strings with 3 characters or less #5542

@paulraines68

Description

@paulraines68

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions