Importing Gnus v5.8.2.
[elisp/gnus.git-] / lisp / nnfolder.el
index e989080..c1bbb10 100644 (file)
@@ -184,11 +184,13 @@ If NIL, NNFOLDER-FILE-CODING-SYSTEM is used.")
          (if (numberp article)
              (cons nnfolder-current-group article)
            (goto-char (point-min))
-           (search-forward (concat "\n" nnfolder-article-marker))
            (cons nnfolder-current-group
-                 (string-to-int
-                  (buffer-substring
-                   (point) (progn (end-of-line) (point)))))))))))
+                 (if (search-forward (concat "\n" nnfolder-article-marker) 
+                                     nil t)
+                     (string-to-int
+                      (buffer-substring
+                       (point) (progn (end-of-line) (point))))
+                   -1))))))))
 
 (deffoo nnfolder-request-group (group &optional server dont-check)
   (nnfolder-possibly-change-group group server t)
@@ -321,8 +323,10 @@ If NIL, NNFOLDER-FILE-CODING-SYSTEM is used.")
   (let* ((is-old t)
         ;; The articles we have deleted so far.
         (deleted-articles nil)
-        ;; The articles that really exist and will be expired if they are old enough.
-        (maybe-expirable (gnus-intersection articles (nnfolder-existing-articles))))
+        ;; The articles that really exist and will
+        ;; be expired if they are old enough.
+        (maybe-expirable
+         (gnus-intersection articles (nnfolder-existing-articles))))
     (nnmail-activate 'nnfolder)
 
     (save-excursion