From: Bill Wohler Date: Fri, 2 Jun 2006 18:47:44 +0000 (+0000) Subject: (mh-folder-exists-p): Change test from an empty buffer, to one that X-Git-Tag: emacs-pretest-22.0.90~2111 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c1def6ea27a433be107ea99b0e2684492aea8165;p=emacs.git (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). --- diff --git a/lisp/mh-e/mh-search.el b/lisp/mh-e/mh-search.el index 14891204fad..b6f8dd71d9a 100644 --- a/lisp/mh-e/mh-search.el +++ b/lisp/mh-e/mh-search.el @@ -1524,7 +1524,7 @@ construct the base name." (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."