;;; -*-Scheme-*-
;;;
-;;; $Id: imail-top.scm,v 1.135 2000/06/08 02:03:07 cph Exp $
+;;; $Id: imail-top.scm,v 1.136 2000/06/08 03:13:49 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(define-key 'imail #\c-o 'imail-save-attachment)
(define-key 'imail #\+ 'imail-create-folder)
(define-key 'imail #\- 'imail-delete-folder)
+(define-key 'imail #\R 'imail-rename-folder)
(define-key 'imail #\q 'imail-quit)
(define-key 'imail #\? 'describe-mode)
\f
(message "Deleted folder " (url->string url)))
(message "Folder not deleted")))))
+(define-command imail-rename-folder
+ "Delete a specified folder and all its messages."
+ (lambda ()
+ (let ((from
+ (prompt-for-imail-url-string "Rename folder"
+ 'HISTORY 'IMAIL-RENAME-FOLDER-SOURCE
+ 'HISTORY-INDEX 0
+ 'REQUIRE-MATCH? #t)))
+ (list from
+ (prompt-for-imail-url-string "Rename folder to"
+ 'HISTORY 'IMAIL-RENAME-FOLDER-TARGET
+ 'HISTORY-INDEX 0))))
+ (lambda (from to)
+ (let ((from (imail-parse-partial-url from))
+ (to (imail-parse-partial-url to)))
+ (rename-folder from to)
+ (message "Folder renamed to " (url->string to)))))
+\f
(define-command imail-input
"Run IMAIL on a specified folder."
(lambda ()
;;; -*-Scheme-*-
;;;
-;;; $Id: imail.pkg,v 1.49 2000/06/08 02:03:28 cph Exp $
+;;; $Id: imail.pkg,v 1.50 2000/06/08 03:14:00 cph Exp $
;;;
;;; Copyright (c) 2000 Massachusetts Institute of Technology
;;;
edwin-command$imail-previous-message
edwin-command$imail-previous-undeleted-message
edwin-command$imail-quit
+ edwin-command$imail-rename-folder
edwin-command$imail-reply
edwin-command$imail-resend
edwin-command$imail-save-folder