Commit Graph

4631 Commits

Author SHA1 Message Date
djcb 156c421113 mu4e: fix some gnus body decoding issues
Hat-tip: Chris00
2019-02-02 13:44:49 +02:00
Dirk-Jan C. Binnema f57381bf4a
Merge pull request #1320 from jabranham/replace-cl-cl-lib
mu4e: Replace cl with cl-lib
2019-02-02 13:37:50 +02:00
Dirk-Jan C. Binnema eb6efee81d
Merge pull request #1368 from oleskiewicz/master
mu-config: add NO_COLOR environment variable
2019-02-02 13:34:25 +02:00
Dirk-Jan C. Binnema b4e0c09247
Merge pull request #1372 from Chris00/flowed
mu4e: Set mml-enable-flowed according to mu4e-compose-format-flowed
2019-02-02 13:32:57 +02:00
Christophe Troestler 0746a4affe Set mml-enable-flowed according to mu4e-compose-format-flowed
Fixes https://github.com/djcb/mu/issues/1358
2019-01-29 10:35:06 +01:00
Piotr Oleskiewicz 4784a7b0c9
mu: update manpage
document usage of the NO_COLOR environment variable
2019-01-28 15:54:12 +00:00
Piotr Oleskiewicz c7ea01304f
mu-config: put environmental variable in inverted commas 2019-01-28 15:50:47 +00:00
Piotr Oleskiewicz 8ffce6b2bc
Merge branch 'master' of github.com:djcb/mu 2019-01-25 13:58:31 +00:00
Dirk-Jan C. Binnema ca1cd57b7a
Merge pull request #1360 from rhdxmr/goto-header-other-window
mu4e: Fix jumping to specific header in unselect window
2019-01-24 23:06:01 -08:00
Piotr Oleskiewicz 5faad10451
mu-config: add NO_COLOR environment variable 2019-01-22 17:08:24 +00:00
djcb 75cf33f47b fix build: typo 2019-01-21 06:17:37 +02:00
djcb a9b53351b6 bump xapian requirement to 1.4.x
In particular, we need Mset::Iterator to be a random_access_iterator.
2019-01-20 15:38:50 +02: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 17863701d9 configure.ac: define BUILD_GUILE for config.h
... so we can find 'mu script'.
2019-01-20 07:47:37 +02:00
Dirk-Jan C. Binnema d41242ff6c
Merge pull request #1359 from OnkelUlla/fix_compiler_warnings
Fix compiler warnings
2019-01-17 22:26:50 +02:00
Dirk-Jan C. Binnema 0903eaba79
Merge pull request #1284 from nicolasavru/limit-threading-set
Perform threading calculation on related set instead of entire result.
2019-01-13 22:53:45 +02:00
Junyeong Jeong cc8a6c0c78 mu4e-headers.el: fix highlighting when headers window is not selected.
Highlighting target header is not working, when message view is selected and
mu4e-headers window is out of focus.

To fix this, call mu4e highlight function with mu4e-headers as current buffer.
2019-01-11 17:01:54 +09:00
Junyeong Jeong 3b9f9e5c39 mu4e-headers.el: fix for jumping specific message after search
While reading message using split view, search can be triggered after
automatic update and index. In this case, mu4e headers is not inside selected
window and mu4e-headers-goto-message-id fails to move window point of mu4e
headers.

To fix this, call set-window-point for mu4e headers window explitctly.
2019-01-11 16:24:40 +09:00
Ulrich Ölmann d37a961c8f parser: fix clang-7.0.1 warnings
Without this commit clang++-7.0.1 whines

|   CXX      parser.lo
| parser.cc:138:15: warning: braces around scalar initializer [-Wbraced-scalar-init]
|         return Tree({{Node::Type::Range},
|                      ^~~~~~~~~~~~~~~~~~~
2019-01-11 06:49:01 +01:00
Ulrich Ölmann 493a9efa7a mu, tests: fix gcc-8.2.0 warnings
Without this commit gcc-8.2.0 whines

|   CC       mu-msg-json.lo
| mu-msg-json.c: In function ‘get_temp_file_maybe’:
| mu-msg-json.c:254:14: warning: unused variable ‘tmpfile’ [-Wunused-variable]
|   char *tmp, *tmpfile;
|               ^~~~~~~
| mu-msg-json.c:254:8: warning: unused variable ‘tmp’ [-Wunused-variable]
|   char *tmp, *tmpfile;
|         ^~~
| mu-msg-json.c: In function ‘add_part_crypto’:
| mu-msg-json.c:276:21: warning: unused variable ‘s’ [-Wunused-variable]
|   char    *signers, *s;
|                      ^
| mu-msg-json.c:276:11: warning: unused variable ‘signers’ [-Wunused-variable]
|   char    *signers, *s;
|            ^~~~~~~
| mu-msg-json.c: In function ‘each_part’:
| mu-msg-json.c:332:14: warning: variable ‘cid’ set but not used [-Wunused-but-set-variable]
|   const char *cid;
|               ^~~

and

|   CC       test-mu-str.o
| test-mu-str.c: In function ‘test_mu_str_subject_normalize’:
| test-mu-str.c:282:5: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|    { "test123", "test123" },
|      ^~~~~~~~~
| test-mu-str.c:282:16: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|    { "test123", "test123" },
|                 ^~~~~~~~~
| test-mu-str.c:283:5: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|    { "Re:test123", "test123" },
|      ^~~~~~~~~~~~
| test-mu-str.c:283:19: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|    { "Re:test123", "test123" },
|                    ^~~~~~~~~
| test-mu-str.c:284:5: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|    { "Re: Fwd: test123", "test123" },
|      ^~~~~~~~~~~~~~~~~~
| test-mu-str.c:284:25: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|    { "Re: Fwd: test123", "test123" },
|                          ^~~~~~~~~
| test-mu-str.c:285:5: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|    { "Re[3]: Fwd: test123", "test123" },
|      ^~~~~~~~~~~~~~~~~~~~~
| test-mu-str.c:285:28: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|    { "Re[3]: Fwd: test123", "test123" },
|                             ^~~~~~~~~
| test-mu-str.c:286:5: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|    { "operation: mindcrime", "operation: mindcrime" }, /*...*/
|      ^~~~~~~~~~~~~~~~~~~~~~
| test-mu-str.c:286:29: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|    { "operation: mindcrime", "operation: mindcrime" }, /*...*/
|                              ^~~~~~~~~~~~~~~~~~~~~~
| test-mu-str.c:287:5: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|    { "", "" }
|      ^~
| test-mu-str.c:287:9: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
|    { "", "" }
|          ^~
2019-01-11 06:48:51 +01:00
djcb 57150a47f3 mu4e: update doc with outlook note
Thanks to Ken Mankoff.
2019-01-08 22:28:25 +02:00
Alex Branham 2674ca5583
mu4e: Replace cl with cl-lib 2019-01-04 16:03:58 -06:00
djcb 53c1b0a069 mu: make attachment test a bit looser
Consider all 'inline' text parts attachments too, unless they're
'text/plain' or something that looks like a signature.

It's a heuristic so we might get some new corner-cases.. let's see.
2018-12-30 18:46:43 +02:00
djcb 9352219dcf mu4e: mark compose buffers as non-modified later
To avoid marking user-unchanged buffers as modified.
2018-12-12 21:35:46 +02:00
djcb ff4280d687 mu4e-view: some flycheck warning fixes 2018-12-01 12:55:44 +02:00
djcb fa73d6fd8e mu4e-view: use permanent-local, activate mu4e-view later
Mark some variables as use permanent-local so they'll survive a
major-mode change. Activate mu4e-view later, so hooks have some more
material to work with.
2018-12-01 12:55:44 +02:00
djcb 2c08006335 mu4e: mu4e-message flycheck fixes 2018-11-19 21:41:28 +02:00
Dirk-Jan C. Binnema de1ce35884
Merge pull request #1341 from abo-abo/fix-view-attachment
mu4e/mu4e-view.el (mu4e-view-open-attachment): Ensure attachments are set
2018-11-19 21:40:52 +02:00
Dirk-Jan C. Binnema c4c17d32e1
Merge pull request #1340 from alexmurray/master
mu4e: Non-breaking spaces should be replaced with a space and not removed
2018-11-19 21:02:06 +02:00
Dirk-Jan C. Binnema e6c24c28a3
Merge pull request #1338 from ibizaman/bookmark-function
mu4e: allow :query to accept a function returning a query string
2018-11-19 20:59:50 +02:00
Oleh Krehel 6a8bbbd55f mu4e/mu4e-view.el (mu4e-view-open-attachment): Ensure attachments are set
Before this change, I would press "o" and `mu4e~view-attach-map' would
be nil. Now it works as expected.
2018-11-18 16:22:39 +01:00
Alex Murray 283ba93b8a Non-breaking spaces should be replaced with a space and not removed
Fixes #1339
2018-11-14 11:36:36 +10:30
djcb 509a62d7a8 mu4e: flycheck fixes in mu4e-vars.el 2018-11-12 22:03:28 +02:00
djcb 7b6bccd49a parser: avoid query parsing error
See #1261.
2018-11-11 13:15:08 +02:00
djcb e4a769ee02 mu: support json output for 'find'
Support output in json format for mu-find.
2018-11-11 12:47:47 +02:00
djcb a19b4ddb2d mu: implement mu_msg_to_json
Follows mu_msg_to_sexp, but instead uses json as the output format,
using json-glib.
2018-11-11 12:47:47 +02:00
djcb 93bd1b8ce7 mu: add soft dependency on json-glib
If it's available it will be used.
2018-11-11 12:12:36 +02:00
djcb 2aa299b3ac mu: add mu_msg_iter_is_(first|last)
This makes it a bit easier to process the output.
2018-11-11 12:11:06 +02:00
ibizaman a0c2cf2313 allow :query to accept a function returning a query string
This allows one to dynamically generate the query string, based for
example on the value of a variable.
2018-11-10 22:30:25 -08:00
djcb 700e5e76da mu4e-view: switch mode before filling message
That way, the attachment map etc. stay valid.
2018-11-07 21:24:02 +02:00
djcb 7dcb9087c2 mu4e: enable mu4e-view *before* internal processing
So, user gets a pristine message, and hashes etc. are still valid (since
they don't survive mu4e-view-mode)
2018-11-05 18:39:56 +02:00
djcb 164b9e99dd mu: fix tests Makefile.am 2018-11-05 18:39:22 +02:00
djcb 69ed3498bb mu4e: mu4e-index-updated-hook should not depend on mu4e~contacts 2018-11-04 13:20:20 +02:00
djcb 4e1cfdf668 mu4e/doc: add notes about using Hydra 2018-11-04 12:49:35 +02:00
djcb c69131e645 mu4e/doc: extend notes about speeding up indexing 2018-11-04 12:48:52 +02:00
djcb e321d15c2a mu: fake reply-to for mailing-list posts
Some mailing lists do _not_ set reply-to, see e.g.,
   https://github.com/djcb/mu/pull/1278

In that case, use the 'List-Post' address instead, so the behavior is
the same (in mu4e) as for other mailing lists.
2018-11-04 12:31:32 +02:00
djcb d5a4ba06ce mu4e: switch to mu4e-view later (internal)
When using 'internal' mode, activate mu4e-view-mode only after the
buffer has been set up, so hooks have some more interesting material to
work with.
2018-11-04 12:31:32 +02:00
djcb f333c6046d Fix leak in mu_config_show_help
valgrind to the rescue!
2018-11-04 12:31:32 +02:00
djcb 052a228be7 add optional support for building with asan 2018-11-04 12:31:32 +02:00
Dirk-Jan C. Binnema 7c63fe65eb
Merge pull request #1322 from yiufung/org-mu4e-change
org-mu4e: fix org-mu4e-store-and-capture for Org 9.0
2018-10-09 08:10:16 +03:00