emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please try Pmail


From: Chong Yidong
Subject: Re: Please try Pmail
Date: Sun, 18 Jan 2009 09:47:46 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Richard M Stallman <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]