]> git.eshelyaron.com Git - emacs.git/commitdiff
(unrmail): When getting message keywords, don't include a leading
authorGlenn Morris <rgm@gnu.org>
Fri, 13 Feb 2009 03:44:10 +0000 (03:44 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 13 Feb 2009 03:44:10 +0000 (03:44 +0000)
space, but do include the space after the separating comma.  (Bug#2303)

lisp/mail/unrmail.el

index 749d3942006ac86343f6f18b4a3b06331901deed..86957813e1e822de87876dae63f3133cb5a5c343 100644 (file)
@@ -133,14 +133,16 @@ For example, invoke `emacs -batch -f batch-unrmail RMAIL'."
                  (buffer-substring (point)
                                    (save-excursion (forward-line 1)
                                                    (point))))
-           (search-forward ",,")
+           (re-search-forward ",, ?")
            (unless (eolp)
              (setq keywords
                    (buffer-substring (point)
                                      (progn (end-of-line)
                                             (1- (point)))))
-             (setq keywords
-                   (replace-regexp-in-string ", " "," keywords)))
+             ;; Mbox rmail needs the spaces.  Bug#2303.
+             ;;; (setq keywords
+             ;;;           (replace-regexp-in-string ", " "," keywords))
+             )
 
            (setq attrs
                  (list