diff lisp/gnus/nnmbox.el @ 2:ac2d302a0011 r19-15b2

Import from CVS: tag r19-15b2
author cvs
date Mon, 13 Aug 2007 08:46:35 +0200
parents 376386a54a3c
children 0293115a14e9
line wrap: on
line diff
--- a/lisp/gnus/nnmbox.el	Mon Aug 13 08:45:53 2007 +0200
+++ b/lisp/gnus/nnmbox.el	Mon Aug 13 08:46:35 2007 +0200
@@ -286,6 +286,9 @@
   (let ((buf (current-buffer))
 	result)
     (goto-char (point-min))
+    ;; The From line may have been quoted by movemail.
+    (when (looking-at (concat ">" message-unix-mail-delimiter))
+      (delete-char 1))
     (if (looking-at "X-From-Line: ")
 	(replace-match "From ")
       (insert "From nobody " (current-time-string) "\n"))
@@ -484,7 +487,7 @@
 	   (buffer-name nnmbox-mbox-buffer)
 	   (save-excursion
 	     (set-buffer nnmbox-mbox-buffer)
-	     (= (buffer-size) (nth 7 (file-attributes nnmbox-mbox-file)))))
+	     (= (buffer-size) (nnheader-file-size nnmbox-mbox-file))))
       ()
     (save-excursion
       (let ((delim (concat "^" message-unix-mail-delimiter))