Implement nnimap-request-newgroups.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 1 Oct 2010 17:29:37 +0000 (19:29 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 1 Oct 2010 17:29:37 +0000 (19:29 +0200)
lisp/ChangeLog
lisp/nnimap.el

index ec0ef59..512494c 100644 (file)
@@ -2,6 +2,7 @@
 
        * nnimap.el (nnimap-update-info): Ignore groups that have no UIDNEXT
        values.  This sometimes happens on some groups that have no info.
+       (nnimap-request-newgroups): New function.
 
 2010-10-01  Teodor Zlatanov  <tzz@lifelogs.com>
 
index ff1d2b8..68ee9d4 100644 (file)
@@ -912,6 +912,16 @@ textual parts.")
                                  (or highest exists)))))))))
        t))))
 
+(deffoo nnimap-request-newgroups (date &optional server)
+  (nnimap-possibly-change-group nil server)
+  (with-current-buffer nntp-server-buffer
+    (erase-buffer)
+    (dolist (group (with-current-buffer (nnimap-buffer)
+                    (nnimap-get-groups)))
+      (unless (assoc group nnimap-current-infos)
+       ;; Insert dummy numbers here -- they don't matter.
+       (insert (format "%S 0 1 y\n" group))))))
+
 (deffoo nnimap-retrieve-group-data-early (server infos)
   (when (nnimap-possibly-change-group nil server)
     (with-current-buffer (nnimap-buffer)