I was going to say what xyzzy said. Rules use the Sieve language, and your Sieve script only runs when a new message is directly received via POP or IMAP to your account. In other words, the message is addressed to your Fastmail email address (or forwarded to that address).
You might want to find messages which were
fetched from another email account. Fetching is when Fastmail automatically logs into another email account automatically and fetches any messages there into your Fastmail account. In this case, the email is addressed to a non-Fastmail address and Fastmail pulls it info your account by periodically logging into the other email service and
fetching any new messages. See:
https://www.fastmail.help/hc/en-us/a...mail-addresses
If you want to manually search for these
fetched messages (ignoring the messages received via POP or IMAP), try using this search string:
Code:
header:X-Resolved-to -header:X-Delivered-To
If you want to find messages which meet some criteria, you should be using the search feature while using the Fastmail web interface or smartphone app. You can save your searches so they can be easily repeated in the future. See:
https://www.fastmail.help/hc/en-us/a...hing-your-mail
Searches can find words inside attachments as well as the addressing fields, subject, message body, and the email headers. Searches by default use stemming, so that a search for
meet also finds
meets,
meeting, and
meetings. If you only want to find meet without the stemmed words, add quotes around your search string.
For example, you could search for all messages sent from a Gmail account where the name of the sender includes the word "John" and the subject includes the word "GPS", use the search string:
Code:
from:gmail from:john subject:GPS
By default, searches work across your Inbox and all of your folders. You can search in only one folder by including in:foldername in the search string.
Bill