Commit Graph

18 Commits

Author SHA1 Message Date
Stephen J. Eglen e559b6e732 Add --expr flag to constrain search when looking for duplicates
(mu:for-each-message ...) allows an optional expression to be passed
so that only messages matching that expression are searched when
looking for duplicates.

This patch adds a --expr flag so that e.g.

    find-dups.scm --expr d:6m..3m

will reduce the range of messages to those between 3 and 6 months ago
to search for duplicates.  I found this useful when using expressions
to find messages in a particular year, rather than searching the whole
database.  This is often quicker and less worrying than searching the
whole database.

If --expr is not provided, expr should default to #t so that the whole
database is searched as before.
2016-07-25 20:52:27 +01:00
djcb 0041cd47ef script: make find-dups a bit faster
'find-dups' was trying to call `mu remove' for each duplicate message it
removes. This can be quit slow, so simply delete a file. After dups have
been removed, run `mu index'.
2015-06-14 11:16:01 +03:00
Mark A. Hershberger 2aac8e43cb guile: Add '--delete' option to find-dups.scm
Closes #592

Uses open-pipe* to ensure that escaping isn't needed (seen in md5sum)
since arguments are passed.

Also see this discussion: http://thread.gmane.org/gmane.lisp.guile.user/11777

Experimental feature... be careful.
2015-03-22 09:55:30 +02:00
Chen He c6c93234fb Fix build error in msgs-count.scm
mu:run-stats expects the passed-in function to take 3 arguments. The
third argument applies to gnuplot only, which is not applicable to the
count function in msgs-count.scm.
2014-12-07 16:29:14 -05:00
djcb a228429ee2 * guile: update command-line arguments in scripts 2013-10-09 23:27:00 +03:00
djcb b7219aaf82 * guile: some update for the output format 2013-07-23 22:22:57 +03:00
djcb 47a63d2e8b * cosmetics 2013-06-09 12:11:32 +03:00
djcb d2dd0a8699 * guile: add find-dups script, to find duplicate messages 2013-06-07 14:20:44 +03:00
djcb 1f24e224a9 * more more copyright year updates 2013-03-30 11:38:01 +02:00
djcb 855e81db99 * update copyright years 2013-03-30 11:32:07 +02:00
djcb 22e8ae76d7 * guile: add msgs-count script 2013-01-27 21:31:26 +02:00
djcb f71ff24753 * guile: rename mu:plot -> mu:plot-histogram 2012-10-27 14:43:35 +03:00
djcb 7463e41711 * guile: update the scripts 2012-10-22 23:14:05 +03:00
djcb b16a42a48c * guile: move scripts to scripts/ (from scripts/stats) 2012-10-22 20:26:32 +03:00
djcb 12eebbcc23 * mu: support description fields in stat scripts, some refactoring 2012-10-21 17:20:20 +03:00
djcb c1828ab2c8 * guile: add support for scripts 2012-10-19 00:50:22 +03:00
djcb 6d19880ced * guile: add a bunch of statistics scripts 2012-10-19 00:49:14 +03:00
djcb 578a4c7a54 * guile: install guile script 2012-10-17 23:37:30 +03:00