* guile - updates in most guile modules
This commit is contained in:
@ -22,6 +22,8 @@ scmdir=${prefix}/share/guile/site/2.0/mu/
|
||||
scm_DATA= \
|
||||
message.scm \
|
||||
contact.scm \
|
||||
stats.scm
|
||||
part.scm \
|
||||
stats.scm \
|
||||
plot.scm
|
||||
|
||||
EXTRA_DIST=$(scm_DATA)
|
||||
|
||||
@ -52,6 +52,7 @@ list of <mu-contact> objects."
|
||||
objects."
|
||||
(contacts msg #t))
|
||||
|
||||
|
||||
(define-class <mu-contact-with-stats> (<mu-contact>)
|
||||
(tstamp #:init-value 0 #:accessor timestamp #:init-keyword #:timestamp)
|
||||
(last-seen #:init-value 0 #:accessor last-seen)
|
||||
|
||||
@ -25,6 +25,7 @@
|
||||
;; internal
|
||||
mu:get-header
|
||||
mu:get-field
|
||||
mu:for-each-msg-internal
|
||||
;; message funcs
|
||||
body
|
||||
header
|
||||
@ -83,10 +84,10 @@
|
||||
(define* (mu:for-each-message func #:optional (expr #t))
|
||||
"Execute function FUNC for each message that matches mu search expression EXPR.
|
||||
If EXPR is not provided, match /all/ messages in the store."
|
||||
(let ((my-func
|
||||
(lambda (msg)
|
||||
(func (make <mu-message> #:msg msg)))))
|
||||
(mu:for-each-msg-internal my-func expr)))
|
||||
(mu:for-each-msg-internal
|
||||
(lambda (msg)
|
||||
(func (make <mu-message> #:msg msg)))
|
||||
expr))
|
||||
|
||||
(define* (mu:message-list #:optional (expr #t))
|
||||
"Return a list of all messages matching mu search expression
|
||||
|
||||
@ -19,8 +19,7 @@
|
||||
(define-module (mu stats)
|
||||
:use-module (oop goops)
|
||||
:use-module (mu message)
|
||||
:export (
|
||||
mu:tabulate-messages
|
||||
:export ( mu:tabulate-messages
|
||||
mu:average-messages))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user