On Wednesday Mar 13 2024, Stéfan van der Walt wrote:
> Hi all,
>
> I am trying to construct a query that shows only personal messages. For
> that, I currently use:
>
> maildir:/INBOX flag:q (NOT flag:list)
>
> However, the `NOT flag:list` filter still lets through several marketing
> emails. Those emails have a List-Unsubscribe field (presumably because of
> legal reasons), but no List-Id.
I've extended the flag check a bit (in 1.12.2) to also recognize such
messages as "list" messages.
> Is it possible to identify emails based on a certain field being present?
> When I try:
>
> mu find maildir:/INBOX 'List-Unsubscribe:/.*/'
>
> it yields no results.
That's as expected, mu only indexes certain fields, see
mu info fields
Kind regards,
Dirk.
--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:
www.djcbsoftware.nl
gpg: 6987 9CED 1745 9375 0F14 DA98 11DD FEA9 DCC4 A036