aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2010-09-05 23:56:42 +0000
committerKatsumi Yamaoka2010-09-05 23:56:42 +0000
commit3733ba53bb2f0970e17867e2e611ddc05ce1740d (patch)
tree63b01f097df38907f1842f6b141f9ab8fae1753a
parent31b5f29230352c134e00f2c095a86f46520def0e (diff)
downloademacs-3733ba53bb2f0970e17867e2e611ddc05ce1740d.tar.gz
emacs-3733ba53bb2f0970e17867e2e611ddc05ce1740d.zip
nnimap.el (nnimap-request-list): Servers may return \NoSelect case-insensitively.
-rw-r--r--lisp/gnus/ChangeLog3
-rw-r--r--lisp/gnus/nnimap.el18
2 files changed, 13 insertions, 8 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 24a5c8dee4e..d6d1f655404 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,8 @@
12010-09-05 Lars Magne Ingebrigtsen <larsi@gnus.org> 12010-09-05 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * nnimap.el (nnimap-request-list): Servers may return \NoSelect
4 case-insensitively.
5
3 * mail-source.el (mail-source-fetch): Don't message if we're fetching 6 * mail-source.el (mail-source-fetch): Don't message if we're fetching
4 mail from a file, and the file doesn't exist. 7 mail from a file, and the file doesn't exist.
5 8
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index 574eb85c238..ba989a01194 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -1118,14 +1118,16 @@ function is generally only called when Gnus is shutting down."
1118 (dolist (pattern (nnimap-pattern-to-list-arguments nnimap-list-pattern)) 1118 (dolist (pattern (nnimap-pattern-to-list-arguments nnimap-list-pattern))
1119 (dolist (mbx (funcall nnimap-request-list-method 1119 (dolist (mbx (funcall nnimap-request-list-method
1120 (cdr pattern) (car pattern))) 1120 (cdr pattern) (car pattern)))
1121 (or (member "\\NoSelect" (imap-mailbox-get 'list-flags mbx)) 1121 (unless (member "\\noselect"
1122 (let* ((encoded-mbx (nnimap-encode-group-name mbx)) 1122 (mapcar #'downcase
1123 (info (nnimap-find-minmax-uid encoded-mbx 'examine))) 1123 (imap-mailbox-get 'list-flags mbx)))
1124 (when info 1124 (let* ((encoded-mbx (nnimap-encode-group-name mbx))
1125 (with-current-buffer nntp-server-buffer 1125 (info (nnimap-find-minmax-uid encoded-mbx 'examine)))
1126 (insert (format "\"%s\" %d %d y\n" 1126 (when info
1127 encoded-mbx (or (nth 2 info) 0) 1127 (with-current-buffer nntp-server-buffer
1128 (max 1 (or (nth 1 info) 1))))))))))) 1128 (insert (format "\"%s\" %d %d y\n"
1129 encoded-mbx (or (nth 2 info) 0)
1130 (max 1 (or (nth 1 info) 1)))))))))))
1129 (gnus-message 5 "nnimap: Generating active list%s...done" 1131 (gnus-message 5 "nnimap: Generating active list%s...done"
1130 (if (> (length server) 0) (concat " for " server) "")) 1132 (if (> (length server) 0) (concat " for " server) ""))
1131 t)) 1133 t))