Viewing attachments with wrong MIME types

2012-11-19 Thread Suvayu Ali
Hi,

I often get attachments with completely wrong MIME types.  For example
today I received a pdf and a doc file as application/octet-stream.  Is
there anyway to bypass my mailcap and ask mutt to open the attachment
with the proper application?  So in this particular case, I would want
to open the pdf file with evince and the doc file with LibreOffice.

Thanks for any hints,

-- 
Suvayu

Open source is the future. It sets us free.


Re: Viewing attachments with wrong MIME types

2012-11-19 Thread Mandar Mitra
Suvayu Ali wrote (Mon, Nov 19, 2012 at 02:25:37PM +0100):
> I often get attachments with completely wrong MIME types.  For example
> today I received a pdf and a doc file as application/octet-stream.  Is
> there anyway to bypass my mailcap and ask mutt to open the attachment
> with the proper application?

I usually use ^E (edit-type) in such situations to edit the mime type
and then retry. 

mandar.


Re: Viewing attachments with wrong MIME types

2012-11-19 Thread Suvayu Ali
Hi Mandar,

On Mon, Nov 19, 2012 at 07:26:28PM +0530, Mandar Mitra wrote:
> Suvayu Ali wrote (Mon, Nov 19, 2012 at 02:25:37PM +0100):
> > I often get attachments with completely wrong MIME types.  For example
> > today I received a pdf and a doc file as application/octet-stream.  Is
> > there anyway to bypass my mailcap and ask mutt to open the attachment
> > with the proper application?
> 
> I usually use ^E (edit-type) in such situations to edit the mime type
> and then retry. 
> 

This seems to work well for now.  :)

> mandar.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.


Re: Is there any gmane.org user in the list?

2012-11-19 Thread Jamie Paul Griffin
/ Woody Wu wrote on Sun 18.Nov'12 at 13:34:47 + /

> On 2012-11-18, Jamie Paul Griffin  wrote:
> > / Woody Wu wrote on Sun 18.Nov'12 at 15:05:37 +0800 /
> >
> >> I want to read/post the list in gmane.org.  So I want to ask, if the
> >> list (mutt-users) allow users to subscribe but without send messages to
> >> their mailbox?
> >
> > Yes you can use gmane.org to read and post to mutt-users. You need to
> > use a usenet client, such as slrn. Some OS distributions have package
> > managers that provide a way of installing a number of usenet clients
> > and i believe that some capability has been provided in mutt to be
> > used as a usenet client. I'm not sure if it's in the official source
> > or if it's a patch that someone has written. Personally, I'd use slrn. 
> >
> > You could quite easily find information about it from gmane's website
> > and from Google search which is what I suggest you do next. 
> >
> 
> You misunderstood my question. I know how to use gmane.  My question is
> how can I subscribe mutt-users but don't let it delivery messages of the
> list to my mailbox.  Since, mutt-users is not a public mailing listing,
> so gmane will not post message for me if I don't subscribe to the list.
> But as long as I subscribe mutt-users, I begin to get a lot of emais
> every day from the list, this is not I expected when I went to gmane for
> a mailing list.  Sorry for my English level, I hope this time I
> expressed clearly.

Ah, i understand your problem now. I did misunderstand but that's not your 
fault, your English is very good actually. 

As far as I know, it's not possible. I believe you must be subscribed to the 
list. You can have the mailing list manager send you digests, so you won't 
receive lot's of email, just one each day or whatever the frequency is. That 
might help you a bit and cut down the number of mails. Although, actually, the 
list doesn't appear to be as active as it once was when I first subscribed, so 
the number of mails aren't especially high compared to some lists. 


Re: Is there any gmane.org user in the list?

2012-11-19 Thread Grant Edwards
On 2012-11-18, Woody Wu  wrote:

> I want to read/post the list in gmane.org.  So I want to ask, if the
> list (mutt-users) allow users to subscribe but without send messages to
> their mailbox?

You could try sending the "nomail" command to the server:

  To stop receiving mail from a mailing list temporarily, use the
  "nomail" setting.  The simplest example is

set LISTNAME nomail

The list uses the "majordomo" server.  More info here:

http://www.greatcircle.com/majordomo/

-- 
Grant Edwards   grant.b.edwardsYow! !!  I am having fun!!!
  at   
  gmail.com



Re: Viewing attachments with wrong MIME types

2012-11-19 Thread Gary Johnson
On 2012-11-19, Suvayu Ali wrote:
> Hi,
> 
> I often get attachments with completely wrong MIME types.  For example
> today I received a pdf and a doc file as application/octet-stream.  Is
> there anyway to bypass my mailcap and ask mutt to open the attachment
> with the proper application?  So in this particular case, I would want
> to open the pdf file with evince and the doc file with LibreOffice.
> 
> Thanks for any hints,

For application/octet-stream attachments, put this in your muttrc:

mime_lookup application/octet-stream

That tells mutt to determine the correct MIME type by looking up the
file name extension in your mime.types file

Regards,
Gary



Re: Viewing attachments with wrong MIME types

2012-11-19 Thread Grant Edwards
On 2012-11-19, Gary Johnson  wrote:

> For application/octet-stream attachments, put this in your muttrc:
>
> mime_lookup application/octet-stream
>
> That tells mutt to determine the correct MIME type by looking up the
> file name extension in your mime.types file

Brilliant!

I've been swearing under my breath at Microsoft for _years_ because
all of Outlook's attachements (other than MS Office documents) get
sent as application/octet-stream.

-- 
Grant Edwards   grant.b.edwardsYow! if it GLISTENS,
  at   gobble it!!
  gmail.com



Re: Viewing attachments with wrong MIME types

2012-11-19 Thread Suvayu Ali
On Mon, Nov 19, 2012 at 10:41:48AM -0800, Gary Johnson wrote:
> On 2012-11-19, Suvayu Ali wrote:
> > Hi,
> > 
> > I often get attachments with completely wrong MIME types.  For example
> > today I received a pdf and a doc file as application/octet-stream.  Is
> > there anyway to bypass my mailcap and ask mutt to open the attachment
> > with the proper application?  So in this particular case, I would want
> > to open the pdf file with evince and the doc file with LibreOffice.
> > 
> > Thanks for any hints,
> 
> For application/octet-stream attachments, put this in your muttrc:
> 
> mime_lookup application/octet-stream
> 
> That tells mutt to determine the correct MIME type by looking up the
> file name extension in your mime.types file
> 

This works beautifully!  Thanks a lot.

:)

-- 
Suvayu

Open source is the future. It sets us free.


Please set your line wrap to a sane value (was ... Re: Is there any gmane.org user in the list?)

2012-11-19 Thread Chris Bannister
On Mon, Nov 19, 2012 at 02:46:23PM +, Jamie Paul Griffin wrote:
> 
> Ah, i understand your problem now. I did misunderstand but that's not your 
> fault, your English is very good actually. 
> 
> As far as I know, it's not possible. I believe you must be subscribed to the 
> list. You can have the mailing list manager send you digests, so you won't 
> receive lot's of email, just one each day or whatever the frequency is. That 
> might help you a bit and cut down the number of mails. Although, actually, 
> the list doesn't appear to be as active as it once was when I first 
> subscribed, so the number of mails aren't especially high compared to some 
> lists. 

Ouch! Could you please set the "line wrap" value in your editor to a
sane value? 72 characters seems to be the recommended setting.

(I though you had mistakenly sent this mail midstream, there was no
content after "...the mailing list manager send". I only saw that there
was content when I decided to reply regarding this issue, i.e. your
mails are hard to read)

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X