[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems upgrading to 0.126



Jake Colman <colman@ppllc.com> writes:

> nnimap: Listing subscribed mailboxes on truman...
> Imap-mailbox-data is nil. Property lsub value nil mailbox file-name-cons

Yes, I think I've fixed this for 0.127. Could you check when it's out?

diff -w -u -r1.160 -r1.161
--- imap.el	1999/07/17 21:17:19	1.160
+++ imap.el	1999/07/25 16:36:41	1.161
@@ -647,9 +646,10 @@
 		    (setq imap-auth auth
 			  auths nil)))
 	      (unless imap-auth
-		(error "Couldn't figure out authenticator for server")))))))
-  (if (imap-opened buffer)
-      buffer))
+		(error "Couldn't figure out authenticator for server"))))))
+    (when (imap-opened buffer)
+      (setq imap-mailbox-data (make-vector imap-mailbox-prime 0))
+      buffer)))
 
 (defun imap-opened (&optional buffer)
   "Return non-nil if connection to imap server in BUFFER is open. If
@@ -762,8 +762,6 @@
   (with-current-buffer (or buffer (current-buffer))
     (if (imap-current-mailbox-p mailbox examine)
 	imap-current-mailbox
-      (unless imap-mailbox-data
-	(setq imap-mailbox-data (make-vector imap-mailbox-prime 0)))
       (setq imap-current-mailbox mailbox)
       (if (imap-ok-p (imap-send-command-wait
 		      (concat (if examine "EXAMINE" "SELECT") " \""