[neomutt-devel] limiting to attachments by kind

Sven Guckes neomutt-lists at guckes.net
Sat Dec 10 01:01:33 CET 2016


* Richard Russon <rich at flatcap.org> [2016-12-10 00:11]:
> > > ~X \.(doc|pdf|zip)$
> > sure.. regexp and all. yay.  but what do these match on?
> > i suppose you may be looking at the "filename=foobar.pdf".
> That's a reasonable thing to match.

sure.  but body search with "~b" doesnt match it. why?

> > however, some are "foo.pdf", some are "BAR.PDF".
> You could make the regex case-insenstive.

yes.. a case-insenstive matching would be even easier.
(but let's not ask the chinese on what that would be. ;)

> > and some PDFs do not end in ".pdf" at all. :-/
> Yep, those headers are set by the sender.
> That means your examples wouldn't work either.

but.. *why* wont "~b" match that?
does this need yet another pattern?
(too bad "~B" is already taken..)

> > i tried matching this with "~b 'filename=.*pdf'".
> > but this unfortunately does not seem to work at all. :-(
> Hmm... Clearly the mime wrappers aren't considered as part of the body.

yet another part which is hidden..  too bad!

> So, now you just need a volunteer to write some code.

i'd rather check what is there and what isn't before. ;-)

summary for now:
with neomutt you cannot select the type of documents.
so tasks like "show me all messages with PDF attachments"
is NOT possible.  pretty much a show-stopper for some. :-/

Sven


More information about the neomutt-devel mailing list