From: Chris Hanson Date: Fri, 19 May 2000 05:02:51 +0000 (+0000) Subject: Fix bug: SEARCH-FOLDER is supposed to return indices, but the IMAP X-Git-Tag: 20090517-FFI~3803 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=7df6cfef4f138d4b9a4eeef345de3d4847e8658d;p=mit-scheme.git Fix bug: SEARCH-FOLDER is supposed to return indices, but the IMAP method was returning message objects. --- diff --git a/v7/src/imail/imail-imap.scm b/v7/src/imail/imail-imap.scm index 4e8b51e04..ac6567bac 100644 --- a/v7/src/imail/imail-imap.scm +++ b/v7/src/imail/imail-imap.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: imail-imap.scm,v 1.58 2000/05/19 04:15:35 cph Exp $ +;;; $Id: imail-imap.scm,v 1.59 2000/05/19 05:02:51 cph Exp $ ;;; ;;; Copyright (c) 1999-2000 Massachusetts Institute of Technology ;;; @@ -702,7 +702,7 @@ (define-method search-folder ((folder ) criteria) (guarantee-imap-folder-open folder) - (map (lambda (index) (get-message folder index)) + (map (lambda (index) (- index 1)) (imap:response:search-indices (let ((connection (imap-folder-connection folder))) (cond ((string? criteria)