changeset 71170:82731c9a92fc

(mh-folder-exists-p): Change test from an empty buffer, to one that contains the actual folder, since GNU mailutils' folder command displays output if the folder doesn't exist (closes SF #1499712).
author Bill Wohler <wohler@newt.com>
date Fri, 02 Jun 2006 18:47:44 +0000
parents c14501c6793b
children 9fcdaa132bf3
files lisp/mh-e/mh-search.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mh-e/mh-search.el	Fri Jun 02 18:24:59 2006 +0000
+++ b/lisp/mh-e/mh-search.el	Fri Jun 02 18:47:44 2006 +0000
@@ -1524,7 +1524,7 @@
          (with-temp-buffer
            (mh-exec-cmd-output "folder" nil "-fast" "-nocreate" folder)
            (goto-char (point-min))
-           (not (eobp))))))
+           (looking-at (format "+?%s" folder))))))
 
 (defun mh-msg-exists-p (msg folder)
   "Check if MSG exists in FOLDER."