(gnus-summary-reselect-current-group): Truncate lines in the imitation buffer;
[elisp/gnus.git-] / lisp / nnsoup.el
index 8f4dd18..c21851b 100644 (file)
 
 ;;; Code:
 
+(eval-when-compile (require 'cl))
+
 (require 'nnheader)
 (require 'nnmail)
 (require 'gnus-soup)
 (require 'gnus-msg)
 (require 'nnoo)
-(eval-when-compile (require 'cl))
 
 (nnoo-declare nnsoup)
 
@@ -313,7 +314,7 @@ backend for the messages.")
       (setq info (pop infolist)
            range-list (gnus-uncompress-range (car info))
            prefix (gnus-soup-area-prefix (nth 1 info)))
-      (when ;; All the articles in this file are marked for expiry.
+      (when;; All the articles in this file are marked for expiry.
          (and (or (setq mod-time (nth 5 (file-attributes
                                          (nnsoup-file prefix))))
                   (setq mod-time (nth 5 (file-attributes
@@ -688,7 +689,7 @@ backend for the messages.")
            (message-remove-header message-ignored-mail-headers t))
          (goto-char (point-max))
          ;; require one newline at the end.
-         (or (bolp)
+         (or (= (preceding-char) ?\n)
              (insert ?\n))
          (let ((case-fold-search t))
            ;; Change header-delimiter to be what sendmail expects.
@@ -696,7 +697,7 @@ backend for the messages.")
            (re-search-forward
             (concat "^" (regexp-quote mail-header-separator) "\n"))
            (replace-match "\n")
-           (forward-char -1)
+           (backward-char 1)
            (setq delimline (point-marker))
            (goto-char (1+ delimline))
            (let ((msg-buf