aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-03-23 20:21:53 -0700
committerGlenn Morris2010-03-23 20:21:53 -0700
commit16d8cf52c66762b5ddf440ab7796d524b94e7d2b (patch)
tree0ce82bbac13a932415ef1fafd1ce01d99c8f78f5
parent1d94ebb00c022b55edc14fffce7e000643ea00a3 (diff)
downloademacs-16d8cf52c66762b5ddf440ab7796d524b94e7d2b.tar.gz
emacs-16d8cf52c66762b5ddf440ab7796d524b94e7d2b.zip
* mail-source.el (gnus-message): Declare.
(mail-source-delete-old-incoming): Require gnus-util.
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/mail-source.el7
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 59b3ae87d80..88c2280f6a3 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12010-03-24 Glenn Morris <rgm@gnu.org>
2
3 * mail-source.el (gnus-message): Declare.
4 (mail-source-delete-old-incoming): Require gnus-util.
5
12010-03-23 Katsumi Yamaoka <yamaoka@jpl.org> 62010-03-23 Katsumi Yamaoka <yamaoka@jpl.org>
2 7
3 * gnus-art.el (canlock-verify): Autoload it for Emacs 21. 8 * gnus-art.el (canlock-verify): Autoload it for Emacs 21.
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el
index 44edd703638..46f9169a6a3 100644
--- a/lisp/gnus/mail-source.el
+++ b/lisp/gnus/mail-source.el
@@ -1,7 +1,7 @@
1;;; mail-source.el --- functions for fetching mail 1;;; mail-source.el --- functions for fetching mail
2 2
3;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
4;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 4;; 2008, 2009, 2010 Free Software Foundation, Inc.
5 5
6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
7;; Keywords: news, mail 7;; Keywords: news, mail
@@ -574,10 +574,13 @@ Return the number of files that were found."
574 (error "Cannot get new mail")) 574 (error "Cannot get new mail"))
575 0))))))))) 575 0)))))))))
576 576
577(declare-function gnus-message "gnus-util" (level &rest args))
578
577(defun mail-source-delete-old-incoming (&optional age confirm) 579(defun mail-source-delete-old-incoming (&optional age confirm)
578 "Remove incoming files older than AGE days. 580 "Remove incoming files older than AGE days.
579If CONFIRM is non-nil, ask for confirmation before removing a file." 581If CONFIRM is non-nil, ask for confirmation before removing a file."
580 (interactive "P") 582 (interactive "P")
583 (require 'gnus-util)
581 (let* ((high2days (/ 65536.0 60 60 24));; convert high bits to days 584 (let* ((high2days (/ 65536.0 60 60 24));; convert high bits to days
582 (low2days (/ 1.0 65536.0)) ;; convert low bits to days 585 (low2days (/ 1.0 65536.0)) ;; convert low bits to days
583 (diff (if (natnump age) age 30));; fallback, if no valid AGE given 586 (diff (if (natnump age) age 30));; fallback, if no valid AGE given