Xylo Drum | 29 May 2012 11:04
Picon

problem with mailcap and searching

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

hoping someone can help me fix this annoying little problem,

Thank you.

Gary Johnson | 29 May 2012 18:20

Re: problem with mailcap and searching

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

Xylo Drum | 29 May 2012 19:24
Picon

Re: problem with mailcap and searching

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 <garyjohn <at> 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
>
(Continue reading)

Gary Johnson | 29 May 2012 19:45

Re: problem with mailcap and searching

On 2012-05-29, Xylo Drum wrote:

> On Tue, May 29, 2012 at 5:20 PM, Gary Johnson <garyjohn <at> 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.

> 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.

(Continue reading)

Xylo Drum | 29 May 2012 22:51
Picon

Re: problem with mailcap and searching

Aha!

Fixed.

Many thanks,

On Tue, May 29, 2012 at 6:45 PM, Gary Johnson <garyjohn <at> spocom.com> wrote:
> On 2012-05-29, Xylo Drum wrote:
>
>> On Tue, May 29, 2012 at 5:20 PM, Gary Johnson <garyjohn <at> 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
>> >
(Continue reading)


Gmane