[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-mailutils] MH's folder program
From: |
djh |
Subject: |
[bug-mailutils] MH's folder program |
Date: |
Fri, 12 May 2006 14:06:49 |
Modifying mh-e lisp source code to handle mailutils output for cases when a
folder does not exist as shown below.
But, I still feel that the folder program should return a non-zero error code
when errors or non-existing folders/directories occurr. This should not be
difficult to implement. Do you want me to write a proposed patch for this?
Regards,
Darel Henman
Index: mh-search.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/mh-e/mh-search.el,v
retrieving revision 1.11
diff -u -u -r1.11 mh-search.el
--- mh-search.el 15 Apr 2006 00:28:08 -0000 1.11
+++ mh-search.el 11 May 2006 17:01:34 -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."
- [bug-mailutils] MH's folder program,
djh <=