1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-13 16:38:14 +00:00

(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).
This commit is contained in:
Bill Wohler 2006-06-02 18:47:44 +00:00
parent 2e17852c46
commit c1def6ea27

View File

@ -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."