;;; -*-Scheme-*-
;;;
-;;; $Id: imail-summary.scm,v 1.11 2000/05/19 17:50:30 cph Exp $
+;;; $Id: imail-summary.scm,v 1.12 2000/05/19 17:52:34 cph Exp $
;;;
;;; Copyright (c) 2000 Massachusetts Institute of Technology
;;;
(list (imail-prompt-for-flags "Flags to summarize by")))
(lambda (flags-string)
(imail-summary (string-append "Flags " flags-string)
- (let ((flags (parse-comma-list-string flags-string)))
+ (let ((flags (burst-comma-list-string flags-string)))
(lambda (m)
(there-exists? (message-flags m)
(lambda (flag)
(let ((regexp
(apply regexp-group
(map re-quote-string
- (parse-comma-list-string recipients-string)))))
+ (burst-comma-list-string recipients-string)))))
(let ((try
(lambda (s)
(and s
(try (get-first-header-field-value m "to" #f))
(and (not primary-only?)
(try (get-first-header-field-value m "cc" #f))))))))))
-
-(define (parse-comma-list-string string)
- (list-transform-negative (map string-trim (burst-string string #\, #f))
- string-null?))
\f
(define (imail-summary description predicate)
(let* ((folder (selected-folder))
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-top.scm,v 1.69 2000/05/19 17:50:26 cph Exp $
+;;; $Id: imail-top.scm,v 1.70 2000/05/19 17:52:26 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(list (command-argument)
(imail-prompt-for-flags "Move to next message with flags")))
(lambda (n flags)
- (let ((flags (map string-trim (burst-string flags "," #f))))
+ (let ((flags (burst-comma-list-string flags)))
(if (null? flags)
(editor-error "No flags have been specified."))
(for-each (lambda (flag)
;;; -*-Scheme-*-
;;;
-;;; $Id: imail-util.scm,v 1.16 2000/05/18 20:55:05 cph Exp $
+;;; $Id: imail-util.scm,v 1.17 2000/05/19 17:52:40 cph Exp $
;;;
;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology
;;;
(error "Premature end of file:" port))
line))
-(define (edwin-variable-value name)
- (variable-value (name->variable name 'ERROR)))
-
(define (abbreviate-exact-nonnegative-integer n k)
(if (< n (expt 10 (- k 1)))
(string-append (string-pad-left (number->string n) (- k 1)) " ")
((3) "k")
((6) "M")
((9) "G")
- ((12) "T")))))))))
\ No newline at end of file
+ ((12) "T")))))))))
+
+(define (burst-comma-list-string string)
+ (list-transform-negative (map string-trim (burst-string string #\, #f))
+ string-null?))
\ No newline at end of file