summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordjcb <djcb@localhost.localdomain>2011-12-07 08:21:14 +0200
committerdjcb <djcb@localhost.localdomain>2011-12-07 08:21:14 +0200
commit50ff744d3614adc2c9bc3171bf7f509937bcc66b (patch)
tree16d4d3d20fec711a36cd8d507d8a91a9c31da35d /src
parente847ab9ca2dc1bc183987c897b197fd4144dff4d (diff)
* guile: export functions from stats.scm
Diffstat (limited to 'src')
-rw-r--r--src/guile/mu/stats.scm29
1 files changed, 26 insertions, 3 deletions
diff --git a/src/guile/mu/stats.scm b/src/guile/mu/stats.scm
index 62d3cbc..9eafdd5 100644
--- a/src/guile/mu/stats.scm
+++ b/src/guile/mu/stats.scm
@@ -19,9 +19,32 @@
;; some guile/scheme functions to get various statistics of my mu
;; message store.
-(use-modules (ice-9 optargs)) ;; for guile 1.x compatibility
-(use-modules (ice-9 popen)) ;; for interfacing with gnuplot
-
+(use-modules (ice-9 optargs) (ice-9 popen))
+
+(define-module (mu stats)
+ :use-module (mu log)
+ :use-module (mu store)
+ :use-module (mu msg)
+ :export
+ (
+ mu:stats:count
+ mu:stats:average
+ mu:stats:average-size
+ mu:stats:average-recipient-number
+ mu:stats:frequency
+ mu:stats:per-weekday
+ mu:plot:per-weekday
+ mu:stats:per-month
+ mu:plot:per-month
+ mu:stats:per-hour
+ mu:stats:per-year
+ mu:stats:top-n
+ mu:stats:top-n-to
+ mu:stats:top-n-from
+ mu:stats:top-n-subject
+ mu:stats:table
+ mu:stats:histogram
+ mu:stats:export))
;; note, this is a rather inefficient way to calculate the number; for
;; demonstration purposes only...