git.fiddlerwoaroof.com
jkf authored on 29/11/1999 21:59:48
Showing 4 changed files
... ...
@@ -1,3 +1,8 @@
1
+1999-11-29  John Foderaro  <jkf@tiger.franz.com>
2
+version 1.3
3
+	* imap.cl - fixed bug where extra ^b's ended up in strings
4
+	* imap.html - fixed ref to wrong function
5
+
1 6
 1999-10-27  John Foderaro  <jkf@tiger.franz.com>
2 7
 version 1.2
3 8
 	
... ...
@@ -19,7 +19,7 @@
19 19
 ;; Commercial Software developed at private expense as specified in
20 20
 ;; DOD FAR Supplement 52.227-7013 (c) (1) (ii), as applicable.
21 21
 ;;
22
-;; $Id: imap.cl,v 1.6 1999/10/27 19:16:31 jkf Exp $
22
+;; $Id: imap.cl,v 1.7 1999/11/29 21:59:48 jkf Exp $
23 23
 
24 24
 ;; Description:
25 25
 ;;
... ...
@@ -91,7 +91,7 @@
91 91
 
92 92
 (provide :imap)
93 93
 
94
-(defparameter *imap-version-number* '(:major 1 :minor 2)) ; major.minor
94
+(defparameter *imap-version-number* '(:major 1 :minor 3)) ; major.minor
95 95
 
96 96
 (defvar *debug-imap* nil)
97 97
 
... ...
@@ -457,7 +457,10 @@
457 457
 	 elseif (equal tag got-tag)
458 458
 	   then (funcall tagged-handler mb cmd count extra comment)
459 459
 		(return)
460
-	   else (warn "received tag ~s out of order" got-tag))))))
460
+	   else (po-error :error-response
461
+			  :format-control "received tag ~s out of order" 
462
+			  :format-arguments (list got-tag)
463
+			  :server-string comment))))))
461 464
 
462 465
 
463 466
 (defun get-next-tag ()
... ...
@@ -1537,6 +1540,7 @@
1537 1540
 		      (setf (schar buff i) #\^b) ; end of inset string
1538 1541
 		      (incf i)
1539 1542
 		      (free-line-buffer ans)
1543
+		      (setq whole-count nil)
1540 1544
 		      )
1541 1545
 	     elseif ch
1542 1546
 	       then ; we're growing the buffer holding the line data
... ...
@@ -1544,6 +1548,7 @@
1544 1548
 		    (setf (schar buff i) ch)
1545 1549
 		    (incf i))
1546 1550
 
1551
+	    
1547 1552
 	    (block timeout
1548 1553
 	      (mp:with-timeout ((timeout mailbox)
1549 1554
 				(po-error :timeout
... ...
@@ -177,7 +177,7 @@ server.&nbsp;&nbsp;&nbsp; <strong>mailbox </strong>is the object returned by <st
177 177
 &nbsp;&nbsp; This does <em>not</em> close the currently select mailbox before logging out,
178 178
 thus messages marked to be deleted in the currently selected mailbox will <em>not</em> be
179 179
 removed from the&nbsp; mailbox.&nbsp; Use <strong>close-mailbox</strong> or <strong>expunge-mailbox</strong>
180
-before calling this <strong>close-imap-connection</strong> to ensure that messages to be
180
+before calling this <strong>close-connection</strong> to ensure that messages to be
181 181
 deleted are deleted.</p>
182 182
 
183 183
 <p align="left">&nbsp;</p>
... ...
@@ -59,7 +59,9 @@
59 59
 			      (test-eql 0 (po:mailbox-message-count mb)))
60 60
 		      ; remove mailbox (except inbox)
61 61
 		      (if* (not (equalp "inbox" (po:mailbox-list-name mblist)))
62
-			 then (po:delete-mailbox mb (po:mailbox-list-name mblist)))
62
+			 then ; must not be selected if we want to del
63
+			      (po:select-mailbox mb "inbox") 
64
+			      (po:delete-mailbox mb (po:mailbox-list-name mblist)))
63 65
       
64 66
 		      )))
65 67