From 7df6cfef4f138d4b9a4eeef345de3d4847e8658d Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 19 May 2000 05:02:51 +0000 Subject: [PATCH] Fix bug: SEARCH-FOLDER is supposed to return indices, but the IMAP method was returning message objects. --- v7/src/imail/imail-imap.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.25.1