Gnus development mailing list
 help / color / mirror / Atom feed
From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: Viewing HTML-mails with external browsers - proposed code
Date: Tue, 14 Feb 2006 20:50:54 +0900	[thread overview]
Message-ID: <b4mek2640rl.fsf@jpl.org> (raw)
In-Reply-To: <b4m3bimer4f.fsf@jpl.org>

>>>>> In <b4m3bimer4f.fsf@jpl.org> Katsumi Yamaoka wrote:

> I'll add the Emacs 22 version of make-temp-file.

I've added it to the trunk and made it work with XEmacs as well.
However, it is a bit unsafe with XEmacs.  It is thought that a
sly attacker can make a temp file (which can be read by him) of
the same name just before a user makes it.  Therefore, XEmacs
users had better set a secure temp directory which only you can
access.

#v+
`temp-directory' is a built-in function
(temp-directory)

Documentation:
Return the pathname to the directory to use for temporary files.
On MS Windows, this is obtained from the TEMP or TMP environment
variables, defaulting to / if they are both undefined.
On Unix it is obtained from TMPDIR, with /tmp as the default.
#v-

The former one was rather unsafe if a user doesn't use a secure
temp directory, though.  In addition, the way that
`mm-display-external' used (i.e., `rename-file' after
`mm-make-temp-file') was also a bit unsafe for the same reason.

The function can be modified so that it may work also with Emacs
20, but it will be a bit unsafe as well as XEmacs.

P.S.  APEL provides a pretty good version of `make-temp-file'.
If you load `poe' before `mm-util', `mm-make-temp-file' will be
an alias to it.  I think the one defined in mm-util.el is
sufficient, though.



  reply	other threads:[~2006-02-14 11:50 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-18 21:49 Hynek Schlawack
2006-01-13 13:42 ` Hynek Schlawack
2006-01-13 15:57   ` Reiner Steib
2006-01-13 17:13     ` Hynek Schlawack
2006-01-19 19:35 ` Reiner Steib
2006-01-22 12:40   ` Hynek Schlawack
2006-01-25 14:44     ` Reiner Steib
2006-01-25 16:29       ` Hynek Schlawack
2006-01-25 17:41         ` Reiner Steib
2006-01-31 12:38           ` Hynek Schlawack
2006-02-10 18:15             ` Reiner Steib
2006-02-13  0:06               ` Katsumi Yamaoka
2006-02-13 14:53                 ` Reiner Steib
2006-02-13 15:24                   ` Hynek Schlawack
2006-02-13 15:37                   ` Hynek Schlawack
2006-02-13 22:16                     ` Reiner Steib
2006-02-14  0:11                       ` Katsumi Yamaoka
2006-02-14 11:50                         ` Katsumi Yamaoka [this message]
2006-02-15  8:39                           ` mm-make-temp-file (was Re: Viewing HTML-mails with external browsers - proposed code) Katsumi Yamaoka
2006-02-14 20:08                         ` Viewing HTML-mails with external browsers - proposed code Hynek Schlawack

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b4mek2640rl.fsf@jpl.org \
    --to=yamaoka@jpl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).