Gnus development mailing list
 help / color / mirror / Atom feed
* (NT Emacs) Excel files as attachment files: \ issue
@ 2001-06-26  3:36 Georges KO
  2001-06-27 17:19 ` Simon Josefsson
  0 siblings, 1 reply; 5+ messages in thread
From: Georges KO @ 2001-06-26  3:36 UTC (permalink / raw)



    Hello,

    It seems that Excel (2000 in my case) doesn't understand file
names with /, resulting in "file not found" when pressing an
attachment button. I solved this problem by writing a function to
convert the /'s into \'s and modified mm-display-external
(gnus-art.el) from:

(mm-mailcap-command method file                 (mm-handle-type handle))

to

(mm-mailcap-command method (reverse-slash file) (mm-handle-type handle)))
-- 
 Georges KO, Taipei, Taiwan              gko@gko.net                 2001-06-26



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

* Re: (NT Emacs) Excel files as attachment files: \ issue
  2001-06-26  3:36 (NT Emacs) Excel files as attachment files: \ issue Georges KO
@ 2001-06-27 17:19 ` Simon Josefsson
  2001-07-04 14:49   ` Yair Friedman (Jerusalem)
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Josefsson @ 2001-06-27 17:19 UTC (permalink / raw)
  Cc: ding

Georges KO <gko@gko.net> writes:

>     It seems that Excel (2000 in my case) doesn't understand file
> names with /, resulting in "file not found" when pressing an
> attachment button. I solved this problem by writing a function to
> convert the /'s into \'s and modified mm-display-external
> (gnus-art.el) from:
> 
> (mm-mailcap-command method file                 (mm-handle-type handle))
> 
> to
> 
> (mm-mailcap-command method (reverse-slash file) (mm-handle-type handle)))

Try

(setq mm-file-name-rewrite-functions '(reverse-slash))

instead, to avoid modifying Gnus.  Does it work?  You need a OGnus
from CVS.



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

* Re: (NT Emacs) Excel files as attachment files: \ issue
  2001-06-27 17:19 ` Simon Josefsson
@ 2001-07-04 14:49   ` Yair Friedman (Jerusalem)
  2001-07-04 18:14     ` Simon Josefsson
  0 siblings, 1 reply; 5+ messages in thread
From: Yair Friedman (Jerusalem) @ 2001-07-04 14:49 UTC (permalink / raw)


Hi,

With yesterday's snapshot it doesn't help.  The message is:
Displaying "C:/Program Files/Microsoft Office97.eng/Office/excel.exe" /e "c:/TEMP/emm.253NZv/general File 5.01 .xls"...

Excel show same error messages as before.

Thanks.

Simon Josefsson <jas@extundo.com> writes:

> Georges KO <gko@gko.net> writes:
> 
>>     It seems that Excel (2000 in my case) doesn't understand file
>> names with /, resulting in "file not found" when pressing an
>> attachment button. I solved this problem by writing a function to
>> convert the /'s into \'s and modified mm-display-external
>> (gnus-art.el) from:
>> 
>> (mm-mailcap-command method file                 (mm-handle-type handle))
>> 
>> to
>> 
>> (mm-mailcap-command method (reverse-slash file) (mm-handle-type handle)))
> 
> Try
> 
> (setq mm-file-name-rewrite-functions '(reverse-slash))
> 
> instead, to avoid modifying Gnus.  Does it work?  You need a OGnus
>>From CVS.



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

* Re: (NT Emacs) Excel files as attachment files: \ issue
  2001-07-04 14:49   ` Yair Friedman (Jerusalem)
@ 2001-07-04 18:14     ` Simon Josefsson
  2001-07-12  8:16       ` Yair Friedman (Jerusalem)
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Josefsson @ 2001-07-04 18:14 UTC (permalink / raw)
  Cc: Gnus Mailing List

"Yair Friedman (Jerusalem)" <YAIRFR@amdocs.com> writes:

> Hi,
> 
> With yesterday's snapshot it doesn't help.  The message is:
> Displaying "C:/Program Files/Microsoft Office97.eng/Office/excel.exe" /e "c:/TEMP/emm.253NZv/general File 5.01 .xls"...
> 
> Excel show same error messages as before.

Maybe it doesn't like WSP as well?  If so, try adding
`mm-file-name-delete-whitespace' to `mm-file-name-rewrite-functions'.

Perhaps it's easier to debug this by trying to run the above at the
prompt and modify the command until it works and then try to get Gnus
to invoke that command.



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

* Re: (NT Emacs) Excel files as attachment files: \ issue
  2001-07-04 18:14     ` Simon Josefsson
@ 2001-07-12  8:16       ` Yair Friedman (Jerusalem)
  0 siblings, 0 replies; 5+ messages in thread
From: Yair Friedman (Jerusalem) @ 2001-07-12  8:16 UTC (permalink / raw)


Simon Josefsson <jas@extundo.com> writes:

> Perhaps it's easier to debug this by trying to run the above at the
> prompt and modify the command until it works and then try to get Gnus
> to invoke that command.
The only thing that is needed is the reverse slashes.

Maybe there is an uncommitted patch missing?

I have yesterday's snapshot mm-file-name-rewrite-functions is referenced
only in mm-save-part, and reverse is not defined anywhere.




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

end of thread, other threads:[~2001-07-12  8:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-26  3:36 (NT Emacs) Excel files as attachment files: \ issue Georges KO
2001-06-27 17:19 ` Simon Josefsson
2001-07-04 14:49   ` Yair Friedman (Jerusalem)
2001-07-04 18:14     ` Simon Josefsson
2001-07-12  8:16       ` Yair Friedman (Jerusalem)

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