Commit Graph

166 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 21374c12a1 guile: Fix and re-enable unit test 2021-03-17 18:33:05 +02:00
Dirk-Jan C. Binnema 1b5b04ff97 guile: Fix doc building 2021-03-17 01:19:25 +02:00
Dirk-Jan C. Binnema e6d92d4fef meson: Generate version.texi for guile, mu4e
So we can build from a clean git clone.
2021-03-17 00:16:49 +02:00
Dirk-Jan C. Binnema 6e9a60c385 mu: fix some compiler warnings
and whitespace.
2021-03-12 22:20:48 +02:00
Dirk-Jan C. Binnema 7a70942e67 build: experimental support for the meson build system 2021-02-12 00:49:35 +02:00
Dirk-Jan C. Binnema 2967a2e251 guile: mark guile entry points as extern "C" {}
Otherwise, we can't find them.
2021-02-11 18:53:09 +02:00
Dirk-Jan C. Binnema 4daa7105d2 guile: update for query changes 2021-01-22 22:51:33 +02:00
Dirk-Jan C. Binnema a00918ac93 guile: small build cleanups 2020-11-16 10:16:39 +02:00
Dirk-Jan C. Binnema 47454ad8d4 mu: add some missing files 2020-11-11 21:42:56 +02:00
Dirk-Jan C. Binnema a1d1619bda use c++ for some more sources
Do a (superficial) port to c++ of some of the c sources. Update
deps. Fix a few compiler warnings.
2020-11-07 14:11:59 +02:00
Dirk-Jan C. Binnema 3206b9db23 guile: use updated Query API 2020-11-07 11:43:11 +02:00
Dirk-Jan C. Binnema 6b8ccff572 guile: avoid need for muldef 2020-11-01 14:04:15 +02:00
Dirk-Jan C. Binnema 7353c87778 mu: avoid some linker errors on MacOS 2020-10-31 14:36:19 +02:00
Danny O'Brien 623cf787ad guile: support version 3.0.
Includes an update to the guile m4 package, and tweaks the build so that
both 2.2 and 3.0 should work fine.
2020-10-31 10:43:49 +02:00
Dirk-Jan C. Binnema 3e233cba9a rework logging system
reimplement the old mu-log.[ch] into mu-logging.{cc,hh}

If available (and using an appropriately equipped glib), log to the
systemd journal

Only g_criticals have stderr output, all the other g_* go to the log
file / journal.
2020-05-30 13:29:44 +03:00
Dirk-Jan C. Binnema 015fae7b1a guile: fix readline linking
For now, simply link muguile against readline; hopefully, we can make
this transitive.
2020-05-26 00:41:46 +03:00
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