Skip to navigation

mutt: match messages that started a thread and have no replies

Thanks to the helpful people on mutt-users.

As the title says. Mainly useful for mailing lists like r-help — questions that still need answering. (As if I knew any answers to r-help questions, ha.)

!~x . ~$

Note it combines ~x which looks into the “References:” header, so !~x . means “No References header”, i.e., messages that started a thread (and those from mail agents that don’t reference properly, alas) and ~$ matches unreferenced messages. Default combination for pattern terms is AND.

Of course, use with the lovely limit command and maybe combine with a date range:

!~x . ~$ ~d <1w

(Note no space after the <).

Comments are closed.