[PATCH] Add ~M pattern to match mime Content-Types.

Kevin J. McCarthy kevin at 8t8.us
Fri Apr 27 02:57:00 UTC 2018


On Thu, Apr 26, 2018 at 06:00:00PM -0700, Ammon Riley wrote:
> 3rd time's the charm, right?

I think so - this version looks good.  I'll give a few days for others
to chime in.

There don't appear to be any applicable IMAP SEARCH extensions for this
pattern.  I suppose we could fetch BODYSTRUCTURE, and use that, but
since we don't currently fetch/parse that in Mutt, it would be a large
amount of work for a one-off search feature.  I don't know that it's
worth it.

The code is a bit funny about subtype.  There *are* other checks for
NULL in a few places, but not uniformly.  So far, I can't find a path
that would lead to an unset subtype.  It may be that at one time, all
the paths weren't covered.  Or, of course, it may be that I'm missing
something!  However, I really dislike voodoo-checks, so let's leave it
out.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-dev/attachments/20180426/42c74cc1/attachment.asc>


More information about the Mutt-dev mailing list