Commit Graph

191 Commits

Author SHA1 Message Date
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
djcb 543f4a1926 * guile: some more improvements 2012-07-15 12:44:52 +03:00
djcb c613ef3c6e * guile: make unit test work on uninstalled mu-guile 2012-07-14 18:52:05 +03:00
djcb 41a82d16f5 * guile: robustness -- ensure mu has been initialized 2012-07-14 15:52:37 +03:00
djcb cf9c6ce731 * guile: prevent byte-compilation warnings 2012-07-14 15:51:59 +03:00
djcb 8abe211a58 * guile: make sure the examples still work 2012-07-14 12:46:42 +03:00
djcb 8e3fbe380e * guile: some general improvements / cleanups in module loading, object
visibilty. turn some integers (such as message priority, log level, contact
  type) into symbols.
2012-07-14 12:32:15 +03:00
djcb fcb202d618 * guile: unit tests improvement (don't require installation) 2012-07-12 21:59:14 +03:00
djcb 9bddf2f0b9 * guile: beginnings of some unit tests 2012-07-12 21:19:59 +03:00
djcb 93c46dda8f * prepare for guile/tests 2012-07-12 15:46:45 +03:00
djcb c2676540d0 * guile: some internal improvements 2012-07-12 15:46:19 +03:00
djcb 60ea579135 * guile: add mu-biff example, to find new mail 2012-07-10 23:57:14 +03:00
djcb b09b9ceaac * guile: add mu:timestamp accessor to <mu:message>, implement it 2012-07-10 23:36:21 +03:00
djcb e87b5fd248 * guile: add format 'quoted' to contacts, use it in the example script 2012-06-06 08:17:24 +03:00
djcb 46f10cfde9 * refactoring: split src/ into mu/ and lib/ 2012-05-21 09:25:53 +03:00
djcb 80cd63ff36 * guile: allow specifying a max # of search results in mu:for-each-message and mu:message-list 2012-05-17 20:44:20 +03:00
djcb 1bbca9e1eb * small fixes in address generation, mu:contact->string 2012-05-04 14:52:45 +03:00
djcb 27cc5cea62 * guile/examples/msg-graphs: show years correctly in graphs, add year-month period 2012-04-28 23:03:22 +03:00
djcb bc6f9ebbb8 * fix glib warnings (compile time, runtime): add error gquark, don't use g_atexit 2012-04-01 13:08:02 +03:00
djcb 3e1640fb7a * mu-guile-message.c: don't free unitialized var in error path 2012-02-21 21:51:15 +02:00
djcb 0d08ff903d * update code for new mu_msg_part_for_each API 2012-02-13 22:36:22 +02:00
djcb dec4ce8181 * fix contacts-export, msg-graphs 2012-01-22 11:44:52 +02:00
djcb 3ea8b1fe8c * guile: fix logic inversion in plot generation 2012-01-22 11:03:47 +02:00
djcb c3de1bdb1a * guile/examples: use EXTRA_DIST, not noinst_DIST 2012-01-22 10:49:43 +02:00
djcb d1857355c4 * add org2mu4e example script
script export query results to org-mode links to the messages (in mu4e)
2012-01-21 14:20:07 +02:00
djcb 336b09db42 * cosmetic 2012-01-19 21:42:28 +02:00
djcb 92f6a4777e * mu-guile.texi: mention GUILE_LOAD_PATH 2012-01-19 21:41:11 +02:00
djcb 9d84138a73 * mu-guile.texi: extend / improve mu-guile documentation 2012-01-15 14:38:08 +02:00
djcb 799e3e150a * mu-guile-message.c: use mu_msg_part_save_temp, rename some symbols 2012-01-15 14:37:30 +02:00