Gnus development mailing list
 help / color / mirror / Atom feed
* re-mime-type?
@ 2003-01-27 15:57 Wes Hardaker
  2003-01-27 16:32 ` re-mime-type? Josh Huber
  2003-01-27 20:19 ` re-mime-type? Kai Großjohann
  0 siblings, 2 replies; 5+ messages in thread
From: Wes Hardaker @ 2003-01-27 15:57 UTC (permalink / raw)



I frequently get attachments which I know are text (like code files
ending in .c or .h) but are marked application/octet-string by the
remote side due to stupid mail agents or stupid users.  So, trying to
display it inline within gnus ('b') merely asks me for a save
location.  Is it possible to force the displaying into the article
buffer regardless of what gnus thinks it can display?  If not, I'd
think it'd be easy to add this.  Hmm...  I didn't try 'C-u b'.

-- 
"The trouble with having an open mind, of course, is that people will
 insist on coming along and trying to put things in it."   -- Terry Pratchett



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: re-mime-type?
  2003-01-27 15:57 re-mime-type? Wes Hardaker
@ 2003-01-27 16:32 ` Josh Huber
  2003-01-27 20:19 ` re-mime-type? Kai Großjohann
  1 sibling, 0 replies; 5+ messages in thread
From: Josh Huber @ 2003-01-27 16:32 UTC (permalink / raw)


Wes Hardaker <wes@hardakers.net> writes:

> I frequently get attachments which I know are text (like code files
> ending in .c or .h) but are marked application/octet-string by the
> remote side due to stupid mail agents or stupid users.  So, trying
> to display it inline within gnus ('b') merely asks me for a save
> location.  Is it possible to force the displaying into the article
> buffer regardless of what gnus thinks it can display?  If not, I'd
> think it'd be easy to add this.  Hmm...  I didn't try 'C-u b'.

How about K i

?

-- 
Josh Huber



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: re-mime-type?
  2003-01-27 15:57 re-mime-type? Wes Hardaker
  2003-01-27 16:32 ` re-mime-type? Josh Huber
@ 2003-01-27 20:19 ` Kai Großjohann
  2003-01-27 21:27   ` re-mime-type? Mark Thomas
  1 sibling, 1 reply; 5+ messages in thread
From: Kai Großjohann @ 2003-01-27 20:19 UTC (permalink / raw)


Wes Hardaker <wes@hardakers.net> writes:

> I frequently get attachments which I know are text (like code files
> ending in .c or .h) but are marked application/octet-string by the
> remote side due to stupid mail agents or stupid users.

I use h to go to the article buffer, then TAB my way to the button,
then t to enter the type to view as.  (That way, you can type
application/emacs-lisp when appropriate and get font-locking.)
-- 
Ambibibentists unite!



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: re-mime-type?
  2003-01-27 20:19 ` re-mime-type? Kai Großjohann
@ 2003-01-27 21:27   ` Mark Thomas
  2003-01-28 15:46     ` re-mime-type? Wes Hardaker
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Thomas @ 2003-01-27 21:27 UTC (permalink / raw)


Wes Hardaker <wes@hardakers.net> writes:

> I frequently get attachments which I know are text (like code files
> ending in .c or .h) but are marked application/octet-string by the
> remote side due to stupid mail agents or stupid users.

I added a K t key binding to the *Summary* buffer that calls
gnus-mime-view-part-as-type.  You give it a numerical prefix to work
on a particular MIME part, and you are prompted to enter the type in
the mini-buffer.  The default type is based on the file extension, and
it works well for images.  I haven't tried with other attachment
types.

-Mark


  (defun mthomas:gnus-article-view-part-as-type (n)
    "View MIME part N as a different MIME type."
    (interactive "p")
    (gnus-article-part-wrapper n 'mthomas:gnus-mime-view-part-as-type))
  
  (defun mthomas:gnus-mime-view-part-as-type (&optional ignored)
    "gnus-article-part-wrapper--called from
  mthomas:gnus-article-view-part-as-type--gives us a handle, but
  gnus-mime-view-part-as-type doesn't use it.  This wrapper fixes the
  args that gnus-mime-view-part-as-type expects"
    (interactive)
    (gnus-mime-view-part-as-type))
  
  (defun mthomas:gnus-summary-mode-hook ()
    "A hook called from gnus-summary-prepare-hook."
    (define-key gnus-summary-mode-map [(K) (t)]
      'mthomas:gnus-article-view-part-as-type)
    ....)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: re-mime-type?
  2003-01-27 21:27   ` re-mime-type? Mark Thomas
@ 2003-01-28 15:46     ` Wes Hardaker
  0 siblings, 0 replies; 5+ messages in thread
From: Wes Hardaker @ 2003-01-28 15:46 UTC (permalink / raw)


>>>>> On Mon, 27 Jan 2003 16:27:04 -0500, Mark Thomas <swoon@bellatlantic.net> said:

Mark> I added a K t key binding to the *Summary* buffer that calls
Mark> gnus-mime-view-part-as-type.

That should probably be part of the default binding set, I think.

K i, as mentioned by Josh, would work as well in my case though.

-- 
"The trouble with having an open mind, of course, is that people will
 insist on coming along and trying to put things in it."   -- Terry Pratchett



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-01-28 15:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-27 15:57 re-mime-type? Wes Hardaker
2003-01-27 16:32 ` re-mime-type? Josh Huber
2003-01-27 20:19 ` re-mime-type? Kai Großjohann
2003-01-27 21:27   ` re-mime-type? Mark Thomas
2003-01-28 15:46     ` re-mime-type? Wes Hardaker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).