# HG changeset patch # User Katsumi Yamaoka # Date 1280455325 0 # Node ID e77efe427ead59c253c7460d1a763c60e133cc0a # Parent b54c435793d9506a6c5599db2ad6f452db00f445# Parent d5c206ebf54243dcf7cce76648d2f167b3bc8da8 Encode names of nnml groups that nnmail-get-new-mail creates in active file. 2010-07-30 Katsumi Yamaoka * nnmail.el (nnmail-get-new-mail-1): Encode group names possibly containing non-ASCII characters in active file for nnml back end. diff -r b54c435793d9 -r e77efe427ead lisp/gnus/ChangeLog --- a/lisp/gnus/ChangeLog Thu Jul 29 22:16:18 2010 +0200 +++ b/lisp/gnus/ChangeLog Fri Jul 30 02:02:05 2010 +0000 @@ -1,3 +1,8 @@ +2010-07-30 Katsumi Yamaoka + + * nnmail.el (nnmail-get-new-mail-1): Encode group names possibly + containing non-ASCII characters in active file for nnml back end. + 2010-07-24 David Engster * mml-smime.el (mml-smime-epg-verify): Also accept the older diff -r b54c435793d9 -r e77efe427ead lisp/gnus/nnmail.el --- a/lisp/gnus/nnmail.el Thu Jul 29 22:16:18 2010 +0200 +++ b/lisp/gnus/nnmail.el Fri Jul 30 02:02:05 2010 +0000 @@ -1844,9 +1844,20 @@ (if (zerop total) (nnheader-message 4 "%s: Reading incoming mail (no new mail)...done" method (car source)) - (nnmail-save-active - (nnmail-get-value "%s-group-alist" method) - (nnmail-get-value "%s-active-file" method)) + (let ((group-alist (nnmail-get-value "%s-group-alist" method)) + (active-file (nnmail-get-value "%s-active-file" method)) + encoded) + ;; Encode group names possibly containing non-ASCII characters. + (cond ((eq method 'nnml) + (nnmail-save-active + (dolist (elem group-alist (nreverse encoded)) + (push (cons (nnml-encoded-group-name (car elem) + gnus-command-method) + (cdr elem)) + encoded)) + active-file)) + (t + (nnmail-save-active group-alist active-file)))) (when exit-func (funcall exit-func)) (run-hooks 'nnmail-read-incoming-hook)