Commit Graph

6 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 46c741ec9a guile: update scripts
Some minor improvements to the existing scripts
2022-11-17 11:00:06 +02:00
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
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