aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2016-07-29 02:20:24 +0200
committerDuncaen <mail@duncano.de>2016-07-29 02:20:24 +0200
commit610db145824459a0a77f96dc827831883490b77d (patch)
tree85a7a62eff2de0826ec4bbf75f98e391687bc58e
parenta2dc56cd0e697de7496abb4b8804e81c6d251fd5 (diff)
downloadmblaze-610db145824459a0a77f96dc827831883490b77d.tar.gz
mpick: fix date expressions
-rw-r--r--mpick.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpick.c b/mpick.c
index b0848b1..221a5ab 100644
--- a/mpick.c
+++ b/mpick.c
@@ -827,7 +827,7 @@ eval(struct expr *e, struct mailinfo *m)
case PROP_MTIME: v = m->sb->st_mtime; break;
case PROP_REPLIES: v = m->replies; break;
case PROP_SIZE: v = m->sb->st_size; break;
- case PROP_DATE: v = msg_date(m);
+ case PROP_DATE: v = msg_date(m); break;
case PROP_FLAG: v = m->flags; break;
case PROP_INDEX: v = m->index; break;
case PROP_DEPTH: v = m->depth; break;
@@ -1078,6 +1078,7 @@ main(int argc, char *argv[])
int c;
argv0 = argv[0];
+ now = time(0);
while ((c = getopt(argc, argv, "Tt:")) != -1)
switch (c) {