aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka <[email protected]>2010-09-01 00:06:27 +0000
committerKatsumi Yamaoka <[email protected]>2010-09-01 00:06:27 +0000
commit8f563146e84716fa42af058d947371eb8c89e1f4 (patch)
tree475fe4f55b066d2a9fd8235ce77074b013da1f5d
parent3c08d668f4fcb60182deb6a1c4c03a4ef697680d (diff)
Use nnimap-request-list-method instead of lsub directly; by Julien Danjou <[email protected]>.
Not using this variable here has no sence, because using LSUB method is useless if you never subscribed anything on the IMAP side.
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/nnimap.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 3d8d4c9c16..dd1b54f9a0 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-31 Julien Danjou <[email protected]> (tiny change)
+
+ * nnimap.el (nnimap-request-newgroups): Use nnimap-request-list-method
+ instead of lsub directly.
+
2010-08-31 Lars Magne Ingebrigtsen <[email protected]>
* nnwarchive.el: Removed.
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index c76169cb2b..b2b1ba61cf 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -1499,8 +1499,8 @@ function is generally only called when Gnus is shutting down."
(nnimap-before-find-minmax-bugworkaround)
(dolist (pattern (nnimap-pattern-to-list-arguments
nnimap-list-pattern))
- (dolist (mbx (imap-mailbox-lsub (cdr pattern) (car pattern) nil
- nnimap-server-buffer))
+ (dolist (mbx (funcall nnimap-request-list-method (cdr pattern) (car pattern) nil
+ nnimap-server-buffer))
(or (catch 'found
(dolist (mailbox (imap-mailbox-get 'list-flags mbx
nnimap-server-buffer))