There was an error while loading. Please reload this page.
1 parent bf9eb45 commit abc059dCopy full SHA for abc059d
1 file changed
src/zlibs/stats
@@ -132,9 +132,7 @@ EOF
132
act "gathering timestamps..."
133
for m in ${maildirs}; do
134
func " ${m}"
135
- rm -rf $TMPDIR/weekstats.db.mdir
136
- cp -r $MAILDIRS/${m} $TMPDIR/weekstats.db.mdir
137
- for f in `${=find} $TMPDIR/weekstats.db.mdir -type f`; do
+ for f in ${(f)"$(maildir_list_messages "$MAILDIRS/$m")"}; do
138
timestamp=`fetchdate ${f} "%Y-%U"`
139
mdir="${m[(ws:.:)1]}"
140
cat <<EOF | ${SQL} -batch $db > $sql
@@ -233,7 +231,7 @@ EOF
233
231
return 1 }
234
232
235
236
- for f in `${=find} $MAILDIRS/${m} -type f`; do
237
timestamp=`fetchdate ${f} "%Y-%m-%d"`
238
cat <<EOF | ${SQL} -batch $TMPDIR/timecloud.db.$id > $TMPDIR/timecloud.select.$id
239
SELECT * FROM stats
0 commit comments