git.fiddlerwoaroof.com
Browse code

add reset-mailbox command

jkf authored on 07/05/2003 17:02:43
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+2003-05-07    <jkf@main.verada.com>
2
+imap v1.9
3
+>>>	* imap.cl: add reset-mailbox for pop maiboxes to send the RSET
4
+	        command
5
+
1 6
 2003-01-10  Kevin Layer  <layer@crikey>
2 7
 
3 8
 	* smtp.cl: test-email-address: do VRFY on address, too.
... ...
@@ -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.20 2002/03/07 16:57:35 jkf Exp $
22
+;; $Id: imap.cl,v 1.21 2003/05/07 17:02:43 jkf Exp $
23 23
 
24 24
 ;; Description:
25 25
 ;;
... ...
@@ -85,6 +85,7 @@
85 85
    #:po-error
86 86
    
87 87
    #:rename-mailbox
88
+   #:reset-mailbox
88 89
    #:search-mailbox
89 90
    #:select-mailbox
90 91
    
... ...
@@ -95,7 +96,7 @@
95 96
 
96 97
 (provide :imap)
97 98
 
98
-(defparameter *imap-version-number* '(:major 1 :minor 8)) ; major.minor
99
+(defparameter *imap-version-number* '(:major 1 :minor 9)) ; major.minor
99 100
 
100 101
 ;; todo
101 102
 ;;  have the list of tags selected done on a per connection basis to
... ...
@@ -842,7 +843,12 @@
842 843
     res))
843 844
 			     
844 845
 			
845
-		
846
+
847
+
848
+(defmethod reset-mailbox ((pb pop-mailbox))
849
+  ;; undo's deletes
850
+  (send-pop-command-get-results pb "RSET")
851
+  )
846 852
 						   
847 853
 
848 854