diff options
author | ShengHuo ZHU <zsh@cs.rochester.edu> | 2002-02-19 14:03:24 +0000 |
---|---|---|
committer | ShengHuo ZHU <zsh@cs.rochester.edu> | 2002-02-19 14:03:24 +0000 |
commit | 350378821d5aa52ff4037ad668a92f2f0197ba90 (patch) | |
tree | efc4d3454decce73bc13b2b503540d6b5a7c624e /lisp/gnus/mail-source.el | |
parent | 5be28abc6ec3c75766ecc6f4e9054fe8c3c3a230 (diff) | |
download | emacs-350378821d5aa52ff4037ad668a92f2f0197ba90.tar.gz |
* mail-source.el (mail-source-fetch-directory): Run scripts.
Diffstat (limited to 'lisp/gnus/mail-source.el')
-rw-r--r-- | lisp/gnus/mail-source.el | 10 |
1 files changed, 9 insertions, 1 deletions
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 @@ ;;; mail-source.el --- functions for fetching mail -;; Copyright (C) 1999, 2000 Free Software Foundation, Inc. +;; Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> ;; Keywords: news, mail @@ -291,6 +291,9 @@ Common keywords should be listed here.") (:password) (:authentication password)) (maildir + (:prescript) + (:prescript-delay) + (:postscript) (:path (or (getenv "MAILDIR") "~/Maildir/")) (:subdirs ("new" "cur")) (:function)) @@ -609,6 +612,9 @@ If ARGS, PROMPT is used as an argument to `format'." (defun mail-source-fetch-directory (source callback) "Fetcher for directory sources." (mail-source-bind (directory source) + (mail-source-run-script + prescript (format-spec-make ?t path) + prescript-delay) (let ((found 0) (mail-source-string (format "directory:%s" path))) (dolist (file (directory-files @@ -617,6 +623,8 @@ If ARGS, PROMPT is used as an argument to `format'." (funcall predicate file) (mail-source-movemail file mail-source-crash-box)) (incf found (mail-source-callback callback file)))) + (mail-source-run-script + postscript (format-spec-make ?t path)) found))) (defun mail-source-fetch-pop (source callback) |