Commit Graph

150 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 06d3deb4cc guile: path updates for 2.2 2020-04-20 00:01:07 +03:00
Dominik Schrempf ccbd81f6ef ~/.mu -> ~/.cache/mu 2020-04-19 13:02:48 +02:00
Dirk-Jan C. Binnema b5716b301a Revert "guile: don't link with muldefs"
This reverts commit 2f2399e651.

We do need the muldefs on some distributions after all.
2020-04-15 09:53:52 +03:00
Dirk-Jan C. Binnema 2f2399e651 guile: don't link with muldefs
It's not needed.
2020-04-14 22:23:47 +03:00
Dirk-Jan C. Binnema 865f0ab9db guile: fix unit tests 2020-02-25 18:19:30 +02:00
Dirk-Jan C. Binnema 20eea6153f fix guile build 2020-02-25 07:40:00 +02:00
Jonas Bernoulli f31d1b065d Fix typos 2019-11-06 16:13:39 +01:00
Dirk-Jan C. Binnema be4860befe tests: update for lib/mu-store changes 2019-07-30 08:51:04 +03:00
Dirk-Jan C. Binnema 8f24b4103a guile: update for lib/mu-store changes 2019-07-30 08:51:04 +03:00
Dirk-Jan C. Binnema 184a6dba38 mu: ensure we build with --enabled-shared for guile
We need a dynamic object.
2019-07-13 13:43:57 +03:00
Dirk-Jan C. Binnema eb3fab7345 guile: use mu_msg_contact_email 2019-07-13 13:43:57 +03:00
Piyush c4e037c16f Fix handling of --text option in `msg-graphs' example
The previous implementation of `msg-graphs` called `mu:plots/mu:plot` with
output set to `#t` when the option `--text` was passed.  This caused an error in
the `string-append` call in `mu:plot` since the expression `(or output "dumb")`
evaluated to the symbol `#t` rather than a string.

This commit fixes this by making sure that `mu:plot` is called with `output` set
to `"dumb"` when the option `--text` is passed to `msg-graphs`, and with
`output` set to `"wxt"` (the default multi-platform graphical output device in
`gnuplot`) otherwise.  This is done by essentially making the code of
`msg-graphs` agree with the plotting code in the `guile/scripts` directory.
2019-05-11 14:46:30 +05:30
Piyush 7498760084 Fix typo in the definition of mu:plot 2019-05-11 14:03:35 +05:30
djcb 736ed2e0de guile: remove save/save-as from manual
They are not currently implemented.
2019-04-27 08:21:29 +03:00
David Florness 258d5947bf
Fix grammar 2019-04-23 12:21:51 -06:00
djcb 9f187e7edf mu-guile: mention LTDL_LIBRARY_PATH
Newer versions of guile seem to require that.
2019-01-20 08:01:04 +02:00
djcb 052a228be7 add optional support for building with asan 2018-11-04 12:31:32 +02:00
djcb aa70bf1920 Merge branch 'pr-1111'
Fix a bunch of conflicts, tests.
2018-08-18 10:29:40 +03:00
djcb 99df588d41 update compiler warnings, fix them
Update the compiler warnings, and fix all the ones outside the guile/.
2018-06-11 10:49:07 +03:00
djcb 426b9a50c7 guile: optionally allow guile2.2 2018-05-21 15:03:58 +03:00
djcb dbc162ef9b cosmetic 2017-11-05 13:47:30 +02:00
djcb 9e1ce98da7 guile: small doc fix 2017-11-05 13:06:44 +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
Jakub Sitnicki 739f020764 Update calls to mu:get-parts after name change
In commit 8e3fbe380e mu:get-parts was renamed to mu:c:get-parts but
get-parts method was not updated. Fix it.
2016-03-05 18:55:14 +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
djcb 7eb244b3b0 mu: don't use __FUNCTION__, use __func__
__FUNCTION__ is deprecated and gives compilation warnings. __func__ is
standardized in c99.
2015-04-22 21:06:31 +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 e954cb127b * mu-guile: add example 2014-06-02 08:36:56 +03:00
djcb dd83c235cb guile: minor updates 2013-10-14 22:44:11 +03: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 bd4f109326 * mu-guile.texi: minor change; may fix compilation 2013-06-09 18:24:11 +03:00
djcb 47a63d2e8b * cosmetics 2013-06-09 12:11:32 +03:00
djcb 05bfd23e4d * guile: make running guile scripts a bit more convenient, document it
For example, you can now run a script like:

      $ mu msgs-per-month --textonly --query=hello
2013-06-09 12:11:01 +03:00
djcb d2dd0a8699 * guile: add find-dups script, to find duplicate messages 2013-06-07 14:20:44 +03:00
Chirantan Ekbote c0fce88540 fix file size in test-mu-guile.scm changed by e97ec2d5
Signed-off-by: Chirantan Ekbote <chirantan.ekbote@gmail.com>
2013-05-28 22:46:09 -07:00
djcb cbe595483f * guile: update guile tests for slightly updated testcases 2013-05-15 00:18:05 +03:00
djcb 87e3c5d3f5 * cosmetic 2013-05-13 00:03:23 +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
D. LoBraico dc640728a3 * mu-guile: resets default term to wxt (accidentally changed to qt) 2013-03-18 17:46:21 -05:00
D. LoBraico 931a144387 * mu-guile: allow passing extra options to gnuplot in mu:plot-histogram 2013-03-18 17:45:11 -05:00
djcb 22e8ae76d7 * guile: add msgs-count script 2013-01-27 21:31:26 +02:00
djcb f5f8d6de70 * mu_store_needs_upgrade --> mu_store_versions_match 2013-01-06 15:53:42 +02:00
djcb d448003c09 * mu-guile-message.c: fix small leak 2012-12-23 15:23:54 +02:00
djcb c5f8ea6451 * use AM_CPPFLAGS instead of INCLUDES 2012-12-22 22:54:50 +02:00
djcb 2f9dd78bb0 * add query flags (which match msgiterflags) to mu_query_run, update callers 2012-12-16 15:08:34 +02:00
djcb 241af50e97 * update / add testcases for string normalization 2012-12-09 13:34:16 +02:00
djcb 30f93663b0 * lib: do some more escaping of body text 2012-11-18 22:09:56 +02:00