aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2010-08-01 23:49:32 +0000
committerKatsumi Yamaoka2010-08-01 23:49:32 +0000
commite9d1aaff7d64846d2e3a917046ab2229e7e95e98 (patch)
treea9f0475f7cd8facc780e002a54509ca950f1ba1a
parent5cee0a9c166b43936adebdd410e9846741ff741f (diff)
downloademacs-e9d1aaff7d64846d2e3a917046ab2229e7e95e98.tar.gz
emacs-e9d1aaff7d64846d2e3a917046ab2229e7e95e98.zip
Fix last nnmail-get-new-mail-1 change that caused double encoding in XEmacs.
2010-08-01 Katsumi Yamaoka <yamaoka@jpl.org> * nnmail.el (nnmail-get-new-mail-1): Revert. * nnml.el (nnml-active-number): Make sure names of newly created groups in nnml-group-alist are encoded.
-rw-r--r--lisp/gnus/ChangeLog7
-rw-r--r--lisp/gnus/nnmail.el17
-rw-r--r--lisp/gnus/nnml.el9
3 files changed, 14 insertions, 19 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 44c28c52fff..4c364c3270d 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,10 @@
12010-08-01 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * nnmail.el (nnmail-get-new-mail-1): Revert.
4
5 * nnml.el (nnml-active-number): Make sure names of newly created groups
6 in nnml-group-alist are encoded.
7
12010-07-30 Katsumi Yamaoka <yamaoka@jpl.org> 82010-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
2 9
3 * nnmail.el (nnmail-get-new-mail-1): Encode group names possibly 10 * nnmail.el (nnmail-get-new-mail-1): Encode group names possibly
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el
index 537d98cc6ae..8bf0cbf5de1 100644
--- a/lisp/gnus/nnmail.el
+++ b/lisp/gnus/nnmail.el
@@ -1844,20 +1844,9 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details."
1844 (if (zerop total) 1844 (if (zerop total)
1845 (nnheader-message 4 "%s: Reading incoming mail (no new mail)...done" 1845 (nnheader-message 4 "%s: Reading incoming mail (no new mail)...done"
1846 method (car source)) 1846 method (car source))
1847 (let ((group-alist (nnmail-get-value "%s-group-alist" method)) 1847 (nnmail-save-active
1848 (active-file (nnmail-get-value "%s-active-file" method)) 1848 (nnmail-get-value "%s-group-alist" method)
1849 encoded) 1849 (nnmail-get-value "%s-active-file" method))
1850 ;; Encode group names possibly containing non-ASCII characters.
1851 (cond ((eq method 'nnml)
1852 (nnmail-save-active
1853 (dolist (elem group-alist (nreverse encoded))
1854 (push (cons (nnml-encoded-group-name (car elem)
1855 gnus-command-method)
1856 (cdr elem))
1857 encoded))
1858 active-file))
1859 (t
1860 (nnmail-save-active group-alist active-file))))
1861 (when exit-func 1850 (when exit-func
1862 (funcall exit-func)) 1851 (funcall exit-func))
1863 (run-hooks 'nnmail-read-incoming-hook) 1852 (run-hooks 'nnmail-read-incoming-hook)
diff --git a/lisp/gnus/nnml.el b/lisp/gnus/nnml.el
index fb5fb44113f..238e0221b97 100644
--- a/lisp/gnus/nnml.el
+++ b/lisp/gnus/nnml.el
@@ -751,10 +751,9 @@ article number. This function is called narrowed to an article."
751 751
752(defun nnml-active-number (group &optional server) 752(defun nnml-active-number (group &optional server)
753 "Compute the next article number in GROUP on SERVER." 753 "Compute the next article number in GROUP on SERVER."
754 (let ((active (cadr (assoc (if nnmail-group-names-not-encoded-p 754 (let* ((encoded (if nnmail-group-names-not-encoded-p
755 (nnml-encoded-group-name group server) 755 (nnml-encoded-group-name group server)))
756 group) 756 (active (cadr (assoc (or encoded group) nnml-group-alist))))
757 nnml-group-alist))))
758 ;; The group wasn't known to nnml, so we just create an active 757 ;; The group wasn't known to nnml, so we just create an active
759 ;; entry for it. 758 ;; entry for it.
760 (unless active 759 (unless active
@@ -772,7 +771,7 @@ article number. This function is called narrowed to an article."
772 (cons (caar nnml-article-file-alist) 771 (cons (caar nnml-article-file-alist)
773 (caar (last nnml-article-file-alist))) 772 (caar (last nnml-article-file-alist)))
774 (cons 1 0))) 773 (cons 1 0)))
775 (push (list group active) nnml-group-alist)) 774 (push (list (or encoded group) active) nnml-group-alist))
776 (setcdr active (1+ (cdr active))) 775 (setcdr active (1+ (cdr active)))
777 (while (file-exists-p 776 (while (file-exists-p
778 (nnml-group-pathname group (int-to-string (cdr active)) server)) 777 (nnml-group-pathname group (int-to-string (cdr active)) server))