Hi Gary,

Thanks for swift reply. Your solution works in that it fixes the
'search' problem, but it means that I can't view the attachments with
'v' - there needs to be a way to use 'switch' in the mailcap, or get
mutt to use different mailcaps in different contexts.

Cheers,

On Tue, May 29, 2012 at 5:20 PM, Gary Johnson <garyj...@spocom.com> wrote:
> On 2012-05-29, Xylo Drum wrote:
>> I have a pretty much default mutt setup including some very simple
>> lines in my .mailcap such as:
>>
>> image/jpg; xview %s
>> image/jpeg; xview %s
>>
>> these work fine for viewing images, but when trying to do a 'l' search
>> with a pattern of ~bfoo mutt keeps throwing up
>>
>> mailcap entry for type image/jpeg not found
>
> Mutt is looking for a rule in your .mailcap for converting
> image/jpeg attachments to plain text.  Such rules must contain the
> 'copiousoutput' flag.  Unless you have some meaningful way of
> generating text from a JPEG image, you may need to add some sort of
> no-op rule like this (untested):
>
>    image/jpeg; true; copiousoutput
>
> just to give mutt something to execute.
>
> Regards,
> Gary
>

Reply via email to