unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: rms@gnu.org
Cc: emacs-devel@gnu.org
Subject: Re: Please try Pmail
Date: Sun, 18 Jan 2009 09:47:46 -0500	[thread overview]
Message-ID: <87r6303c31.fsf@cyd.mit.edu> (raw)
In-Reply-To: <E1LOOZ3-00005z-La@fencepost.gnu.org> (Richard M. Stallman's message of "Sat, 17 Jan 2009 22:43:09 -0500")

Richard M Stallman <rms@gnu.org> writes:

> Pmail is basically working now.  I have used it for all my mail
> reading for weeks, and I have also gone through all the code making
> sure all the commands work.  So please try it.
>
> I see no reason not to include it in the next release.
> It should not cause any delay.

Thanks.  First, the swapping code in pmail should be tweaked to use
write-region-annotate, like in Stefan's 2008-12-30 change to
tar-mode.el.

Also, I've been wondering about the following code in pmail.el, which is
used to perform babyl-to-mbox conversion.  It uses temp-files to
transfer the data.  Would this lead to a security hole via symlink
attack?  Could someone suggest a solution?  (Maybe a simple fix is to
make the temp files in .emacs.d?)


(defun pmail-convert-babyl-to-mbox ()
  "Convert the mail file from Babyl version 5 to mbox.
This function also reinitializes local variables used by Pmail."
  (let ((old-file (make-temp-file "pmail"))
        (new-file (make-temp-file "pmail")))
    (unwind-protect
      (progn
        (kill-all-local-variables)
        (write-region (point-min) (point-max) old-file)
        (unrmail old-file new-file)
        (message "Replacing BABYL format with mbox format...")
        (let ((inhibit-read-only t))
           (erase-buffer)
           (insert-file-contents-literally new-file)
           ...




  reply	other threads:[~2009-01-18 14:47 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-18  3:43 Please try Pmail Richard M Stallman
2009-01-18 14:47 ` Chong Yidong [this message]
2009-01-18 15:06   ` Alfred M. Szmidt
2009-01-18 20:40   ` Stefan Monnier
2009-01-19  1:41     ` Chong Yidong
2009-01-19  2:57     ` Chong Yidong
2009-01-20  4:57       ` Stefan Monnier
2009-01-20 14:20         ` Chong Yidong
2009-01-21  2:37           ` Stefan Monnier
2009-01-21  4:11             ` Chong Yidong
2009-01-21  4:18               ` Stefan Monnier
2009-01-21 15:06                 ` Chong Yidong
2009-01-21 20:38                   ` Stefan Monnier
2009-01-21 21:21                     ` Chong Yidong
2009-01-22  4:12                       ` Stefan Monnier
2009-01-22  4:55                         ` Chong Yidong
2009-01-23  1:52                           ` Richard M Stallman
2009-01-23  2:35                             ` Chong Yidong
2009-01-21 20:32               ` Richard M Stallman
2009-01-21 21:07                 ` Chong Yidong
2009-01-20 23:00         ` Richard M Stallman
2009-01-21  5:56           ` Eli Zaretskii
2009-01-20  1:00     ` Richard M Stallman
2009-01-19  4:31   ` Richard M Stallman
2009-01-19 14:39     ` Chong Yidong
2009-01-19  1:59 ` Glenn Morris
2009-01-20  0:59   ` Richard M Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87r6303c31.fsf@cyd.mit.edu \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).