Commit Graph

219 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 6bea54805f build: fix compiler warning
guile: some clang warning

and ensure we get the right Xapian in all places, and fileno is defined.
2021-11-05 09:02:24 +02:00
Dirk-Jan C. Binnema ec01399d56 guile: fix build spam
Remove some debug message
2021-11-03 22:08:53 +02:00
Dirk-Jan C. Binnema 3dd721d5a3 clang-format: update c/cc coding style
Update all cc code using .clang-format; please do so as well for future PRs
etc.; emacs has a handy 'clang-format' mode to make this automatic.

For comparing old changes with git blame, we can disregard this one using
--ignore-rev

(see https://www.moxio.com/blog/43/ignoring-bulk-change-commits-with-git-blame )
2021-10-20 12:26:16 +03:00
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
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
djcb 49605bc86b * guile: fix find-program-in-path 2012-11-03 11:46:52 +02:00
djcb b370eb9bd3 * guile: update doc 2012-10-27 14:58:21 +03:00
djcb 4131506efb * make mu:tabulate handle list values, add mu:top-n-most-frequent
- mu:tabulate will now add the values for lists (such as the mu recipient
    fields) as separate values
  - mu:top-n-most-frequent shows the <n> most frequent values
2012-10-27 14:58:11 +03:00
djcb f71ff24753 * guile: rename mu:plot -> mu:plot-histogram 2012-10-27 14:43:35 +03:00
djcb 3bc3424809 * guile: small fix in script.scm 2012-10-23 20:58:11 +03:00
djcb bc90df6c53 * cosmetics / minor 2012-10-23 20:29:24 +03:00
djcb b0a60818a0 * guile: add mu:run-script 2012-10-22 23:14:39 +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 37f51515ed * fix guile / mu4e doc building 2012-10-20 15:49:53 +03:00
djcb 1565cf5b85 * fix `make distcheck' 2012-10-20 12:51:19 +03:00
djcb 1094b61c5b * guile: some improvements to the manual 2012-10-20 12:17:19 +03:00
djcb f0be196209 * guile/mu4e: refactor doc building a bit 2012-10-19 16:00:41 +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
djcb 2551e77325 * guile: update some of the examples 2012-09-17 11:41:11 +03:00
djcb 0b32a63537 * guile: fix getting message bodies 2012-09-17 11:13:37 +03:00
djcb a5dcd746be * guile: don't use obsolete 'message' module anymore in examples/org2mu4e 2012-08-28 12:23:33 +03:00
djcb 38a2ee788b * bump glib version to 2.24, make gtest stuff non-optional
(even ubuntu 10.04 comes with 2.24, so that should be conservative enough)
2012-08-11 18:48:48 +03:00
djcb b3760740f8 * update for attachment checking changes 2012-08-09 11:45:46 +03:00
djcb 89b52d7eed * guile: update test case 2012-08-09 10:39:45 +03:00
djcb 99778d1314 * guile: add mu:count to (mu stats) 2012-08-01 23:59:13 +03:00
djcb 1df0e31062 * guile: cosmetic 2012-07-31 18:46:27 +03:00
djcb d68dcbfc86 * guile: add mu:correl, to calculate pearson's correlation coefficient between vars 2012-07-25 12:52:36 +03:00
djcb 9410a2e2d5 * guile: fix mu-guile.texi format (texi2dvi generation) 2012-07-20 12:20:03 +03:00
djcb a1d6d096ca * guile: minor Makefile update 2012-07-20 11:54:53 +03:00
djcb acfabfdf4b * refactor: MU_MSG_PART_OPTION -> MU_MSG_OPTION and related changes 2012-07-18 16:22:10 +03:00
djcb 9e59b1f29b * crypto: update other mu-msg-part users for api changes 2012-07-17 19:17:09 +03:00
djcb d4abc249c2 * refactor mu_msg_(un)load_msg_file from various versions 2012-07-16 12:55:54 +03:00