*** empty log message ***
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 4 Mar 1997 22:20:27 +0000 (22:20 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 4 Mar 1997 22:20:27 +0000 (22:20 +0000)
lisp/ChangeLog
lisp/gnus-art.el
lisp/gnus-score.el
lisp/gnus.el
lisp/nnmail.el

index 90e6895..854a3f9 100644 (file)
@@ -1,3 +1,19 @@
+Wed Sep  4 05:19:58 1996  Lars Magne Ingebrigtsen  <larsi@hrym.ifi.uio.no>
+
+       * nnmail.el (nnmail-move-inbox): Refuse to move if
+       gnnmai-crash-bux can't be written.
+
+       * gnus-art.el (gnus-button-url-regexp): Include : and ; in
+       regexp. 
+
+       * gnus-score.el (gnus-adaptive-word-score-alist): New variable. 
+
+       * nnmail.el (nnmail-move-inbox): Set file modes on wrong file. 
+
+Tue Sep  3 06:44:36 1996  Lars Magne Ingebrigtsen  <larsi@ylfing.ifi.uio.no>
+
+       * gnus.el: Red Gnus v0.24 is released.
+
 Tue Sep  3 05:30:02 1996  Lars Magne Ingebrigtsen  <larsi@ylfing.ifi.uio.no>
 
        * gnus-async.el (gnus-async-prefetch-article): Reset async list
index 8f72f38..6c4225e 100644 (file)
@@ -1323,7 +1323,7 @@ groups."
 
 ;;; Internal Variables:
 
-(defvar gnus-button-url-regexp "\\b\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|telnet\\|wais\\|mailto\\):\\(//[-a-zA-Z0-9_.]+:[0-9]*\\)?[-\\wa-zA-Z0-9_=!?#$@~`%&*+|\\/.,]*[-\\wa-zA-Z0-9_=#$@~`%&*+|\\/]"
+(defvar gnus-button-url-regexp "\\b\\(s?https?\\|ftp\\|file\\|gopher\\|news\\|telnet\\|wais\\|mailto\\):\\(//[-a-zA-Z0-9_.]+:[0-9]*\\)?[-\\wa-zA-Z0-9_=!?#$@~`%&*+|\\/:;.,]*[-\\wa-zA-Z0-9_=#$@~`%&*+|\\/]"
   "*Regular expression that matches URLs.")
 
 (defvar gnus-button-alist 
index caa5ddc..b49c3cb 100644 (file)
@@ -282,6 +282,7 @@ If nil, the user will be asked for a duration.")
 
 (defvar gnus-score-help-winconf nil)
 (defvar gnus-adaptive-score-alist gnus-default-adaptive-score-alist)
+(defvar gnus-adaptive-word-score-alist gnus-default-adaptive-word-score-alist)
 (defvar gnus-score-trace nil)
 (defvar gnus-score-edit-buffer nil)
 
index 47f7fb8..c4a0c02 100644 (file)
@@ -28,7 +28,7 @@
 
 (eval '(run-hooks 'gnus-load-hook))
 
-(defconst gnus-version-number "0.24"
+(defconst gnus-version-number "0.25"
   "Version number for this version of Gnus.")
 
 (defconst gnus-version (format "Red Gnus v%s" gnus-version-number)
index 7939346..b0e87d3 100644 (file)
@@ -382,111 +382,114 @@ parameter.  It should return nil, `warn' or `delete'.")
 ;; Function rewritten from rmail.el.
 (defun nnmail-move-inbox (inbox)
   "Move INBOX to `nnmail-crash-box'."
-  (let ((inbox (file-truename (expand-file-name inbox)))
-       (tofile (file-truename (expand-file-name nnmail-crash-box)))
-       movemail popmail errors)
-    ;; If getting from mail spool directory,
-    ;; use movemail to move rather than just renaming,
-    ;; so as to interlock with the mailer.
-    (unless (setq popmail (string-match "^po:" (file-name-nondirectory inbox)))
-      (setq movemail t))
-    (when popmail 
-      (setq inbox (file-name-nondirectory inbox)))
-    (when (and movemail
-              ;; On some systems, /usr/spool/mail/foo is a directory
-              ;; and the actual inbox is /usr/spool/mail/foo/foo.
-              (file-directory-p inbox))
-      (setq inbox (expand-file-name (user-login-name) inbox)))
-    (if (member inbox nnmail-moved-inboxes)
-       nil
-      (if popmail
-         (progn
-           (setq nnmail-internal-password nnmail-pop-password)
-           (when (and nnmail-pop-password-required (not nnmail-pop-password))
-             (setq nnmail-internal-password
-                   (nnmail-read-passwd
-                    (format "Password for %s: "
-                            (substring inbox (+ popmail 3))))))
-           (message "Getting mail from post office ..."))
-       (when (or (and (file-exists-p tofile)
-                      (/= 0 (nnheader-file-size tofile)))
-                 (and (file-exists-p inbox)
-                      (/= 0 (nnheader-file-size inbox))))
-         (message "Getting mail from %s..." inbox)))
-      ;; Set TOFILE if have not already done so, and
-      ;; rename or copy the file INBOX to TOFILE if and as appropriate.
-      (cond 
-       ((file-exists-p tofile)
-       ;; The crash box exists already.
-       t)
-       ((and (not popmail)
-            (not (file-exists-p inbox)))
-       ;; There is no inbox.
-       (setq tofile nil))
-       ((and (not movemail) (not popmail))
-       ;; Try copying.  If that fails (perhaps no space),
-       ;; rename instead.
-       (condition-case nil
-           (copy-file inbox tofile nil)
-         (error
-          ;; Third arg is t so we can replace existing file TOFILE.
-          (rename-file inbox tofile t)))
-       (push inbox nnmail-moved-inboxes)
-       ;; Make the real inbox file empty.
-       ;; Leaving it deleted could cause lossage
-       ;; because mailers often won't create the file.
-       (condition-case ()
-           (write-region (point) (point) inbox)
-         (file-error nil)))
-       (t
-       ;; Use movemail.
-       (unwind-protect
-           (save-excursion
-             (setq errors (generate-new-buffer " *nnmail loss*"))
-             (buffer-disable-undo errors)
-             (let ((default-directory "/"))
-               (if (nnheader-functionp nnmail-movemail-program)
-                   (funcall nnmail-movemail-program inbox tofile)
-                 (apply 
-                  'call-process
-                  (append
-                   (list
-                    (expand-file-name nnmail-movemail-program exec-directory)
-                    nil errors nil inbox tofile)
-                   (when nnmail-internal-password
-                     (list nnmail-internal-password))))))
-             (if (not (buffer-modified-p errors))
-                 ;; No output => movemail won
-                 (progn
-                   (or popmail
-                       (set-file-modes inbox nnmail-default-file-modes))
-                   (push inbox nnmail-moved-inboxes))
-               (set-buffer errors)
-               ;; There may be a warning about older revisions.  We
-               ;; ignore those.
-               (goto-char (point-min))
-               (if (search-forward "older revision" nil t)
+  (if (file-writable-p nnmail-crash-box)
+      (gnus-error 1 "Can't write to crash box %s.  Not moving mail."
+                 nnmail-crash-box)
+    (let ((inbox (file-truename (expand-file-name inbox)))
+         (tofile (file-truename (expand-file-name nnmail-crash-box)))
+         movemail popmail errors)
+      ;; If getting from mail spool directory,
+      ;; use movemail to move rather than just renaming,
+      ;; so as to interlock with the mailer.
+      (unless (setq popmail (string-match "^po:" (file-name-nondirectory inbox)))
+       (setq movemail t))
+      (when popmail 
+       (setq inbox (file-name-nondirectory inbox)))
+      (when (and movemail
+                ;; On some systems, /usr/spool/mail/foo is a directory
+                ;; and the actual inbox is /usr/spool/mail/foo/foo.
+                (file-directory-p inbox))
+       (setq inbox (expand-file-name (user-login-name) inbox)))
+      (if (member inbox nnmail-moved-inboxes)
+         nil
+       (if popmail
+           (progn
+             (setq nnmail-internal-password nnmail-pop-password)
+             (when (and nnmail-pop-password-required (not nnmail-pop-password))
+               (setq nnmail-internal-password
+                     (nnmail-read-passwd
+                      (format "Password for %s: "
+                              (substring inbox (+ popmail 3))))))
+             (message "Getting mail from post office ..."))
+         (when (or (and (file-exists-p tofile)
+                        (/= 0 (nnheader-file-size tofile)))
+                   (and (file-exists-p inbox)
+                        (/= 0 (nnheader-file-size inbox))))
+           (message "Getting mail from %s..." inbox)))
+       ;; Set TOFILE if have not already done so, and
+       ;; rename or copy the file INBOX to TOFILE if and as appropriate.
+       (cond 
+        ((file-exists-p tofile)
+         ;; The crash box exists already.
+         t)
+        ((and (not popmail)
+              (not (file-exists-p inbox)))
+         ;; There is no inbox.
+         (setq tofile nil))
+        ((and (not movemail) (not popmail))
+         ;; Try copying.  If that fails (perhaps no space),
+         ;; rename instead.
+         (condition-case nil
+             (copy-file inbox tofile nil)
+           (error
+            ;; Third arg is t so we can replace existing file TOFILE.
+            (rename-file inbox tofile t)))
+         (push inbox nnmail-moved-inboxes)
+         ;; Make the real inbox file empty.
+         ;; Leaving it deleted could cause lossage
+         ;; because mailers often won't create the file.
+         (condition-case ()
+             (write-region (point) (point) inbox)
+           (file-error nil)))
+        (t
+         ;; Use movemail.
+         (unwind-protect
+             (save-excursion
+               (setq errors (generate-new-buffer " *nnmail loss*"))
+               (buffer-disable-undo errors)
+               (let ((default-directory "/"))
+                 (if (nnheader-functionp nnmail-movemail-program)
+                     (funcall nnmail-movemail-program inbox tofile)
+                   (apply 
+                    'call-process
+                    (append
+                     (list
+                      (expand-file-name nnmail-movemail-program exec-directory)
+                      nil errors nil inbox tofile)
+                     (when nnmail-internal-password
+                       (list nnmail-internal-password))))))
+               (if (not (buffer-modified-p errors))
+                   ;; No output => movemail won
                    (progn
                      (or popmail
-                         (set-file-modes inbox nnmail-default-file-modes))
+                         (set-file-modes tofile nnmail-default-file-modes))
                      (push inbox nnmail-moved-inboxes))
-                 ;; Probably a real error.
-                 (subst-char-in-region (point-min) (point-max) ?\n ?\  )
-                 (goto-char (point-max))
-                 (skip-chars-backward " \t")
-                 (delete-region (point) (point-max))
+                 (set-buffer errors)
+                 ;; There may be a warning about older revisions.  We
+                 ;; ignore those.
                  (goto-char (point-min))
-                 (when (looking-at "movemail: ")
-                   (delete-region (point-min) (match-end 0)))
-                 (unless (yes-or-no-p
-                          (format "movemail: %s.  Continue? "
-                                  (buffer-string)))
-                   (error "%s" (buffer-string)))
-                 (setq tofile nil)))))))
-      (and errors
-          (buffer-name errors)
-          (kill-buffer errors))
-      tofile)))
+                 (if (search-forward "older revision" nil t)
+                     (progn
+                       (or popmail
+                           (set-file-modes tofile nnmail-default-file-modes))
+                       (push inbox nnmail-moved-inboxes))
+                   ;; Probably a real error.
+                   (subst-char-in-region (point-min) (point-max) ?\n ?\  )
+                   (goto-char (point-max))
+                   (skip-chars-backward " \t")
+                   (delete-region (point) (point-max))
+                   (goto-char (point-min))
+                   (when (looking-at "movemail: ")
+                     (delete-region (point-min) (match-end 0)))
+                   (unless (yes-or-no-p
+                            (format "movemail: %s.  Continue? "
+                                    (buffer-string)))
+                     (error "%s" (buffer-string)))
+                   (setq tofile nil)))))))
+       (and errors
+            (buffer-name errors)
+            (kill-buffer errors))
+       tofile))))
 
 (defun nnmail-get-active ()
   "Returns an assoc of group names and active ranges.