aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShengHuo ZHU2002-02-19 14:03:24 +0000
committerShengHuo ZHU2002-02-19 14:03:24 +0000
commit350378821d5aa52ff4037ad668a92f2f0197ba90 (patch)
treeefc4d3454decce73bc13b2b503540d6b5a7c624e
parent5be28abc6ec3c75766ecc6f4e9054fe8c3c3a230 (diff)
downloademacs-350378821d5aa52ff4037ad668a92f2f0197ba90.tar.gz
emacs-350378821d5aa52ff4037ad668a92f2f0197ba90.zip
* mail-source.el (mail-source-fetch-directory): Run scripts.
-rw-r--r--lisp/gnus/ChangeLog2
-rw-r--r--lisp/gnus/mail-source.el10
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 292bebf64e0..5c2481d94e6 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -3,6 +3,8 @@
3 * mm-encode.el (mm-content-transfer-encoding-defaults): Set 3 * mm-encode.el (mm-content-transfer-encoding-defaults): Set
4 default to base64. Add application/emacs-lisp. 4 default to base64. Add application/emacs-lisp.
5 5
6 * mail-source.el (mail-source-fetch-directory): Run scripts.
7
62002-02-16 ShengHuo ZHU <zsh@cs.rochester.edu> 82002-02-16 ShengHuo ZHU <zsh@cs.rochester.edu>
7 9
8 * gnus-msg.el (gnus-post-method): Fix doc. 10 * gnus-msg.el (gnus-post-method): Fix doc.
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el
index a35e506ba54..ad327b5a70e 100644
--- a/lisp/gnus/mail-source.el
+++ b/lisp/gnus/mail-source.el
@@ -1,5 +1,5 @@
1;;; mail-source.el --- functions for fetching mail 1;;; mail-source.el --- functions for fetching mail
2;; Copyright (C) 1999, 2000 Free Software Foundation, Inc. 2;; Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
3 3
4;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 4;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
5;; Keywords: news, mail 5;; Keywords: news, mail
@@ -291,6 +291,9 @@ Common keywords should be listed here.")
291 (:password) 291 (:password)
292 (:authentication password)) 292 (:authentication password))
293 (maildir 293 (maildir
294 (:prescript)
295 (:prescript-delay)
296 (:postscript)
294 (:path (or (getenv "MAILDIR") "~/Maildir/")) 297 (:path (or (getenv "MAILDIR") "~/Maildir/"))
295 (:subdirs ("new" "cur")) 298 (:subdirs ("new" "cur"))
296 (:function)) 299 (:function))
@@ -609,6 +612,9 @@ If ARGS, PROMPT is used as an argument to `format'."
609(defun mail-source-fetch-directory (source callback) 612(defun mail-source-fetch-directory (source callback)
610 "Fetcher for directory sources." 613 "Fetcher for directory sources."
611 (mail-source-bind (directory source) 614 (mail-source-bind (directory source)
615 (mail-source-run-script
616 prescript (format-spec-make ?t path)
617 prescript-delay)
612 (let ((found 0) 618 (let ((found 0)
613 (mail-source-string (format "directory:%s" path))) 619 (mail-source-string (format "directory:%s" path)))
614 (dolist (file (directory-files 620 (dolist (file (directory-files
@@ -617,6 +623,8 @@ If ARGS, PROMPT is used as an argument to `format'."
617 (funcall predicate file) 623 (funcall predicate file)
618 (mail-source-movemail file mail-source-crash-box)) 624 (mail-source-movemail file mail-source-crash-box))
619 (incf found (mail-source-callback callback file)))) 625 (incf found (mail-source-callback callback file))))
626 (mail-source-run-script
627 postscript (format-spec-make ?t path))
620 found))) 628 found)))
621 629
622(defun mail-source-fetch-pop (source callback) 630(defun mail-source-fetch-pop (source callback)