Search in Apple Mail for sender yields fewer results than are there
I've noticed that when I enter an email address in the search bar to find emails from a particular sender, the results I get often include far fewer emails than I know are there. I just searched on a friend's address and only got the most recent 8 emails, going back only a few months. The search is searching on 'All Mailboxes'. Yet when I go into my provider's webmail on my web browser and search on that address, I see hundreds of emails from her going back a few years. Any thoughts about why that could be happening? I'm using an IMAP account.
iMac (24-inch, M1, 2021, 2 ports)