]> git.eshelyaron.com Git - emacs.git/commitdiff
* mail-source.el (mail-source-fetch-directory): Run scripts.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Tue, 19 Feb 2002 14:06:23 +0000 (14:06 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Tue, 19 Feb 2002 14:06:23 +0000 (14:06 +0000)
lisp/gnus/ChangeLog
lisp/gnus/mail-source.el

index ef55a50ac082ccc94c088b26873cce19886c6e2a..7288b2f1880293fe52efdb983bccdec87ef5bf33 100644 (file)
@@ -3,6 +3,8 @@
        * mm-encode.el (mm-content-transfer-encoding-defaults): Set
        default to base64. Add application/emacs-lisp.
 
+       * mail-source.el (mail-source-fetch-directory): Run scripts.
+
 2002-02-16  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * gnus-msg.el (gnus-post-method): Fix doc.
index a35e506ba5447f18b40aac980c5ce671ac2d40ce..959ce9327b3f98b637e94f624610253f9deca6f0 100644 (file)
@@ -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
@@ -276,6 +276,9 @@ Common keywords should be listed here.")
        (:path (or (getenv "MAIL")
                  (expand-file-name (user-login-name) rmail-spool-directory))))
       (directory
+       (:prescript)
+       (:prescript-delay)
+       (:postscript)
        (:path)
        (:suffix ".spool")
        (:predicate identity))
@@ -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)