]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-convert-babyl-to-mbox): Prompt user before converting.
authorChong Yidong <cyd@stupidchicken.com>
Tue, 27 Jan 2009 23:02:00 +0000 (23:02 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 27 Jan 2009 23:02:00 +0000 (23:02 +0000)
lisp/mail/rmail.el

index fe4fd452c49aaed39870f62b296fe93134a801ad..8f65ba293fe04a35edf03672e9896fe581ab1093 100644 (file)
@@ -917,6 +917,9 @@ MSGNUM, if present, indicates the malformed message."
 (defun rmail-convert-babyl-to-mbox ()
   "Convert the mail file from Babyl version 5 to mbox.
 This function also reinitializes local variables used by Rmail."
+  (unless (y-or-n-p "Babyl mail file detected.  Rmail now uses mbox format for mail files.
+Convert Babyl mail file to mbox format? ")
+    (error "Aborted"))
   (let ((old-file (make-temp-file "rmail"))
        (new-file (make-temp-file "rmail")))
     (unwind-protect