Gnus development mailing list
 help / color / mirror / Atom feed
* Letting the shell execute an attachment
@ 2002-08-24 12:33 Tom Koelman
  2002-08-24 15:28 ` Kai Großjohann
  0 siblings, 1 reply; 6+ messages in thread
From: Tom Koelman @ 2002-08-24 12:33 UTC (permalink / raw)


Hi,

I'm running Oort 0.07 with Windows 2000. In dired-mode I have a useful
binding which basically does a w32-shell-execute "open"
(convert-standard-filename file)) on the file at point. I would very
much like to have the same functionality with attachments, which I
imagine would save the attachment to a temporary directory and the
does the "open" thingy. Is something like this already possible?

Tom



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

* Re: Letting the shell execute an attachment
  2002-08-24 12:33 Letting the shell execute an attachment Tom Koelman
@ 2002-08-24 15:28 ` Kai Großjohann
  2002-08-24 17:33   ` Mark Milhollan
  2002-08-24 18:09   ` Tom Koelman
  0 siblings, 2 replies; 6+ messages in thread
From: Kai Großjohann @ 2002-08-24 15:28 UTC (permalink / raw)
  Cc: ding

You can just put "image/jpeg; open %s" into the ~/.mailcap file and
then it will work for attachments of type image/jpeg.  Similar lines
for other types will also work.

You could also put "tom/open; open %s" into ~/.mailcap and then use
the "View as type" command to invoke this line.

kai
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)



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

* Re: Letting the shell execute an attachment
  2002-08-24 15:28 ` Kai Großjohann
@ 2002-08-24 17:33   ` Mark Milhollan
  2002-08-24 18:09   ` Tom Koelman
  1 sibling, 0 replies; 6+ messages in thread
From: Mark Milhollan @ 2002-08-24 17:33 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

>You can just put "image/jpeg; open %s" into the ~/.mailcap file and
>then it will work for attachments of type image/jpeg.  Similar lines
>for other types will also work.

And will surely get you infected with Klez or SirCam, or a porno dialer, or
any number of other horrible things.  If you had a utility that only worked
on JPEG images, which would not use DDE, that should be safe to name, e.g.,

  image/jpeg; i_view32.exe %s


/mark




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

* Re: Letting the shell execute an attachment
  2002-08-24 15:28 ` Kai Großjohann
  2002-08-24 17:33   ` Mark Milhollan
@ 2002-08-24 18:09   ` Tom Koelman
  2002-08-24 18:46     ` François Pinard
  1 sibling, 1 reply; 6+ messages in thread
From: Tom Koelman @ 2002-08-24 18:09 UTC (permalink / raw)



Kai Großjohann wrote:

> You can just put "image/jpeg; open %s" into the ~/.mailcap file and
> then it will work for attachments of type image/jpeg.  Similar lines
> for other types will also work.

Thanks, this almost worked. I had to change the line in ~/.mailcap to
"image/jpeg; %s", which did the trick.

Tom



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

* Re: Letting the shell execute an attachment
  2002-08-24 18:09   ` Tom Koelman
@ 2002-08-24 18:46     ` François Pinard
  2002-08-24 19:59       ` Tom Koelman
  0 siblings, 1 reply; 6+ messages in thread
From: François Pinard @ 2002-08-24 18:46 UTC (permalink / raw)
  Cc: ding

[Tom Koelman]

> Thanks, this almost worked. I had to change the line in ~/.mailcap to
> "image/jpeg; %s", which did the trick.

Aren't you afraid to execute arbitrary code from within received messages?

If I wanted such a thing, I'd drop Gnus and go straight to MS-Outlook.
After having moved all my things to some safer machine, of course! :-)

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard



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

* Re: Letting the shell execute an attachment
  2002-08-24 18:46     ` François Pinard
@ 2002-08-24 19:59       ` Tom Koelman
  0 siblings, 0 replies; 6+ messages in thread
From: Tom Koelman @ 2002-08-24 19:59 UTC (permalink / raw)



François Pinard wrote:

>> Thanks, this almost worked. I had to change the line in ~/.mailcap to
>> "image/jpeg; %s", which did the trick.
>
> Aren't you afraid to execute arbitrary code from within received messages?

Well, no. I'll be very careful, I promise. Anyway, some pictures I
just want to see. Whether I save them and open them myself or whether
Gnus does the work doesn't matter much, I gather.

Tom



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

end of thread, other threads:[~2002-08-24 19:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-24 12:33 Letting the shell execute an attachment Tom Koelman
2002-08-24 15:28 ` Kai Großjohann
2002-08-24 17:33   ` Mark Milhollan
2002-08-24 18:09   ` Tom Koelman
2002-08-24 18:46     ` François Pinard
2002-08-24 19:59       ` Tom Koelman

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