Revision: miles@gnu.org--gnu-2004/gnus--devo--0--patch-182
authorMiles Bader <miles@gnu.org>
Wed, 8 Dec 2004 00:05:14 +0000 (00:05 +0000)
committerMiles Bader <miles@gnu.org>
Wed, 8 Dec 2004 00:05:14 +0000 (00:05 +0000)
Merge from gnus--rel--5.10

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-703
   Merge from gnus--rel--5.10

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-714
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-716
   Merge from gnus--rel--5.10

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-74
   Update from CVS

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-75
   Merge from emacs--cvs-trunk--0

2004-11-26  Katsumi Yamaoka  <yamaoka@jpl.org>

   * lisp/pop3.el (pop3-md5): Define it before being used.

2004-11-25  Reiner Steib  <Reiner.Steib@gmx.de>

   * lisp/message.el (message-forbidden-properties): Fixed typo in doc
   string.

2004-11-25  Reiner Steib  <Reiner.Steib@gmx.de>

   * lisp/gnus-util.el (gnus-replace-in-string): Added doc string.

   * lisp/nnmail.el (nnmail-split-header-length-limit): Increase to 2048
   to avoid problems when splitting mails with many recipients.

2004-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>

   * lisp/gnus-sum.el (gnus-summary-exit): Remove redundant and harmful
   pop-to-buffer, covered by the subsequent gnus-configure-windows.

2004-11-22  Reiner Steib  <Reiner.Steib@gmx.de>

   * texi/message.texi (Various Message Variables): Mention that all mail
   file variables are derived from `message-directory'.

   * texi/gnus.texi (Splitting Mail): Clarify bogus group.

2004-11-16  Reiner Steib  <Reiner.Steib@gmx.de>

   * texi/gnus.texi (Filtering Spam Using The Spam ELisp Package):

lisp/ChangeLog
lisp/gnus-registry.el
lisp/gnus-sum.el
lisp/gnus-util.el
lisp/message.el
lisp/nnmail.el
lisp/pop3.el
texi/ChangeLog
texi/gnus.texi
texi/message.texi

index aa554cf..94827a5 100644 (file)
@@ -1,3 +1,24 @@
+2004-11-26  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * pop3.el (pop3-md5): Define it before being used.
+
+2004-11-25  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * message.el (message-forbidden-properties): Fixed typo in doc
+       string.
+
+2004-11-25  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * gnus-util.el (gnus-replace-in-string): Added doc string.
+
+       * nnmail.el (nnmail-split-header-length-limit): Increase to 2048
+       to avoid problems when splitting mails with many recipients.
+
+2004-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * gnus-sum.el (gnus-summary-exit): Remove redundant and harmful
+       pop-to-buffer, covered by the subsequent gnus-configure-windows.
+
 2004-12-05  Nelson Ferreira  <nelson.ferreira@ieee.org>
 
        * spam-stat.el (spam-stat-save): Load the hashtable from disk only
 
        * sieve.el (sieve): Add :version.
 
-       * sha1.el (sha1): Added :version.
-       (sha1-use-external): Removed redundant version.
+       * sha1.el (sha1): Add :version.
+       (sha1-use-external): Remove redundant version.
 
        * nnmail.el (nnmail-split-fancy-with-parent-ignore-groups)
        (nnmail-cache-ignore-groups, nnmail-spool-hook)
        * mml2015.el (mml2015-unabbrev-trust-alist): Add :version.
 
        * mml-sec.el (mml-default-sign-method)
-       (mml-default-encrypt-method, mml-signencrypt-style-alist): Add
-       :version.
+       (mml-default-encrypt-method, mml-signencrypt-style-alist):
+       Add :version.
 
        * mm-uu.el (mm-uu-diff-groups-regexp): Add :version.
 
        * html2text.el: Beautify code.  Improve doc strings.  Some checkdoc
        cleanup.
        (html2text-get-attr, html2text-fix-paragraph): Simplify code.
-       (html2text-format-tag-list): Added "strong" and "em".  From
-       "Alfred M. Szmidt" <ams@kemisten.nu> (tiny change).
+       (html2text-format-tag-list): Add "strong" and "em".
+       From "Alfred M. Szmidt" <ams@kemisten.nu> (tiny change).
 
 2004-10-29  Teodor Zlatanov  <tzz@lifelogs.com>
 
        <srivasta@golden-gryphon.com>.
 
        * mm-util.el (mm-coding-system-priorities): Prefer iso-8859-1 than
-       iso-2022-jp even in the Japanese language environment.  Suggested
-       by Jason Rumney <jasonr@gnu.org>.
+       iso-2022-jp even in the Japanese language environment.
+       Suggested by Jason Rumney <jasonr@gnu.org>.
 
 2004-10-28  Katsumi Yamaoka  <yamaoka@jpl.org>
 
 
 2004-10-25  Reiner Steib  <Reiner.Steib@gmx.de>
 
-       * html2text.el (html2text-buffer-head): Removed.  Use `goto-char'
+       * html2text.el (html2text-buffer-head): Remove.  Use `goto-char'
        instead.
 
 2004-10-25  Teodor Zlatanov  <tzz@lifelogs.com>
index 401358d..245d434 100644 (file)
@@ -136,6 +136,13 @@ way."
   :type '(radio (const :format "Unlimited " nil)
                (integer :format "Maximum number: %v")))
 
+;; Function(s) missing in Emacs 20
+(when (memq nil (mapcar 'fboundp '(puthash)))
+  (require 'cl)
+  (unless (fboundp 'puthash)
+    ;; alias puthash is missing from Emacs 20 cl-extra.el
+    (defalias 'puthash 'cl-puthash)))
+
 (defun gnus-registry-track-subject-p ()
   (memq 'subject gnus-registry-track-extra))
 
index 4f60b5c..8a96862 100644 (file)
@@ -6730,15 +6730,12 @@ If FORCE (the prefix), also save the .newsrc file(s)."
        (when (eq mode 'gnus-summary-mode)
          (gnus-kill-buffer buf)))
       (setq gnus-current-select-method gnus-select-method)
-      (if leave-hidden
-         (set-buffer gnus-group-buffer)
-       (pop-to-buffer gnus-group-buffer))
-      (if (not quit-config)
-         (progn
-           (goto-char group-point)
-           (unless leave-hidden
-             (gnus-configure-windows 'group 'force)))
-       (gnus-handle-ephemeral-exit quit-config))
+      (set-buffer gnus-group-buffer)
+      (if quit-config
+         (gnus-handle-ephemeral-exit quit-config)
+       (goto-char group-point)
+       (unless leave-hidden
+         (gnus-configure-windows 'group 'force)))
       ;; Clear the current group name.
       (unless quit-config
        (setq gnus-newsgroup-name nil)))))
@@ -11875,5 +11872,5 @@ If ALL is a number, fetch this number of articles."
 ;; coding: iso-8859-1
 ;; End:
 
-;;; arch-tag: 17c6748f-6d00-4d36-bf01-835c42f31235
+;; arch-tag: 17c6748f-6d00-4d36-bf01-835c42f31235
 ;;; gnus-sum.el ends here
index bb03786..219ace0 100644 (file)
     (defalias 'gnus-replace-in-string 'replace-in-string))
    ((fboundp 'replace-regexp-in-string)
     (defun gnus-replace-in-string  (string regexp newtext &optional literal)
-      (replace-regexp-in-string regexp newtext string nil literal)))))
+      "Replace all matches for REGEXP with NEWTEXT in STRING.
+If LITERAL is non-nil, insert NEWTEXT literally.  Return a new
+string containing the replacements.
+
+This is a compatibility function for different Emacsen."
+      (replace-regexp-in-string regexp newtext string nil literal)))
+   (t
+    (defun gnus-replace-in-string (string regexp newtext &optional literal)
+      "Replace all matches for REGEXP with NEWTEXT in STRING.
+If LITERAL is non-nil, insert NEWTEXT literally.  Return a new
+string containing the replacements.
+
+This is a compatibility function for different Emacsen."
+      (let ((start 0) tail)
+       (while (string-match regexp string start)
+         (setq tail (- (length string) (match-end 0)))
+         (setq string (replace-match newtext nil literal string))
+         (setq start (- (length string) tail))))
+      string))))
+
+;;; bring in the netrc functions as aliases
+(defalias 'gnus-netrc-get 'netrc-get)
+(defalias 'gnus-netrc-machine 'netrc-machine)
+(defalias 'gnus-parse-netrc 'netrc-parse)
 
 (defun gnus-boundp (variable)
   "Return non-nil if VARIABLE is bound and non-nil."
index 16d5f84..7c28d4e 100644 (file)
@@ -2426,7 +2426,7 @@ message composition doesn't break too bad."
   ;; fontified: is used by font-lock.
   ;; syntax-table, local-map: I dunno.
   ;; We need to add XEmacs names to the list.
-  "Property list of with properties.forbidden in message buffers.
+  "Property list of with properties forbidden in message buffers.
 The values of the properties are ignored, only the property names are used.")
 
 (defun message-tamago-not-in-use-p (pos)
@@ -2451,7 +2451,11 @@ See also `message-forbidden-properties'."
             (message-tamago-not-in-use-p begin))
     (let ((buffer-read-only nil)
          (inhibit-read-only t))
-      (remove-text-properties begin end message-forbidden-properties))))
+      (while (not (= begin end))
+       (when (not (get-text-property begin 'message-hidden))
+         (remove-text-properties begin (1+ begin)
+                                 message-forbidden-properties))
+       (incf begin)))))
 
 ;;;###autoload
 (define-derived-mode message-mode text-mode "Message"
index 725952e..3d8d7c0 100644 (file)
@@ -553,7 +553,7 @@ parameter.  It should return nil, `warn' or `delete'."
   :group 'nnmail
   :type '(repeat symbol))
 
-(defcustom nnmail-split-header-length-limit 512
+(defcustom nnmail-split-header-length-limit 2048
   "Header lines longer than this limit are excluded from the split function."
   :version "21.1"
   :group 'nnmail
index de881c2..84e9234 100644 (file)
@@ -348,6 +348,22 @@ If NOW, use that time instead."
 
 ;; AUTHORIZATION STATE
 
+(eval-and-compile
+  (if (fboundp 'md5)
+      (defalias 'pop3-md5 'md5)
+    (defvar pop3-md5-program "md5"
+      "*Program to encode its input in MD5.")
+
+    (defun pop3-md5 (string)
+      (with-temp-buffer
+       (insert string)
+       (call-process-region (point-min) (point-max)
+                            pop3-md5-program
+                            t (current-buffer) nil)
+       ;; The meaningful output is the first 32 characters.
+       ;; Don't return the newline that follows them!
+       (buffer-substring (point-min) (+ 32 (point-min)))))))
+
 (defun pop3-user (process user)
   "Send USER information to POP3 server."
   (pop3-send-command process (format "USER %s" user))
index 0fcf79b..572d77c 100644 (file)
@@ -1,3 +1,14 @@
+2004-11-22  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * message.texi (Various Message Variables): Mention that all mail
+       file variables are derived from `message-directory'.
+
+       * gnus.texi (Splitting Mail): Clarify bogus group.
+
+2004-11-16  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * gnus.texi (Filtering Spam Using The Spam ELisp Package): 
+
 2004-12-07  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * gnus.texi (Filtering Spam Using The Spam ELisp Package)
index 32822c9..e785fba 100644 (file)
@@ -13368,14 +13368,16 @@ called narrowed to the headers with the first element of the rule as the
 argument.  It should return a non-@code{nil} value if it thinks that the
 mail belongs in that group.
 
+@cindex @samp{bogus} group
 The last of these groups should always be a general one, and the regular
-expression should @emph{always} be @samp{*} so that it matches any mails
+expression should @emph{always} be @samp{""} so that it matches any mails
 that haven't been matched by any of the other regexps.  (These rules are
-processed from the beginning of the alist toward the end.  The first
-rule to make a match will ``win'', unless you have crossposting enabled.
-In that case, all matching rules will ``win''.)  When new groups are
-created by splitting mail, you may want to run
-@code{gnus-group-find-new-groups} to see the new groups.
+processed from the beginning of the alist toward the end.  The first rule
+to make a match will ``win'', unless you have crossposting enabled.  In
+that case, all matching rules will ``win''.)  If no rule matched, the mail
+will end up in the @samp{bogus} group.  When new groups are created by
+splitting mail, you may want to run @code{gnus-group-find-new-groups} to
+see the new groups.  This also applies to the @samp{bogus} group.
 
 If you like to tinker with this yourself, you can set this variable to a
 function of your choice.  This function will be called without any
@@ -13392,7 +13394,7 @@ some add @code{X-Gnus-Group} headers; most rename the Unix mbox
 The mail back ends all support cross-posting.  If several regexps match,
 the mail will be ``cross-posted'' to all those groups.
 @code{nnmail-crosspost} says whether to use this mechanism or not.  Note
-that no articles are crossposted to the general (@samp{*}) group.
+that no articles are crossposted to the general (@samp{""}) group.
 
 @vindex nnmail-crosspost-link-function
 @cindex crosspost
index 75dd157..aa90a59 100644 (file)
@@ -1879,6 +1879,7 @@ follows this line--} by default.
 @item message-directory
 @vindex message-directory
 Directory used by many mailey things.  The default is @file{~/Mail/}.
+All other mail file variables are derived from @code{message-directory}.
 
 @item message-auto-save-directory
 @vindex message-auto-save-directory