;;; -*-Scheme-*-
;;;
-;;; $Id: imap-syntax.scm,v 1.12 2000/07/05 00:20:36 cph Exp $
+;;; $Id: imap-syntax.scm,v 1.13 2000/07/05 01:04:01 cph Exp $
;;;
;;; Copyright (c) 2000 Massachusetts Institute of Technology
;;;
j
(encode-mailbox-name-1 string index index* s j))))
(string-set! s j #\-)
- (loop index* (fix:+ j 1))))))))
+ (loop index* (fix:+ j 1)))))
+ (substring-move! string start end s j))))
s)))
\f
(define (imap:decode-mailbox-name string #!optional start end)
(substring-find-next-char string (fix:+ index 1) end
#\-)))
(if (not index*) (lose))
- (let ((j (substring-move! string start end s j))
+ (let ((j (substring-move! string start index s j))
(m (fix:- index* index)))
(if (fix:= m 1)
(begin
index*
s
j
- lose))))))))
+ lose)))))
+ (substring-move! string start end s j))))
s))))
\f
(define (encode-mailbox-name-1 string start end s j)