Commit Graph

119 Commits

Author SHA1 Message Date
djcb 17c97d4606 mu: remove some dead code 2017-10-25 23:50:17 +03:00
djcb 2d966ee2ad tests: remove obsolete tests 2017-10-25 23:50:17 +03:00
Sean 'Shaleh' Perry 588d227171 Simplify logic of mu_str_remove_ctrl_in_place. Add tests. 2017-06-24 13:26:10 +02:00
djcb 99423234b8 mu: fix some compiler warnings 2017-06-24 12:20:16 +02:00
Stig Brautaset cdc2fa1bd8 Respect format=flowed and delsp=yes for viewing plain-text messages 2017-01-31 11:28:55 +00:00
djcb a81270583f Add unit-test for multi-to/cc recipients
To check for the report in Issue #826.
2016-05-15 16:21:20 +03:00
djcb 413d0e1f49 fix make-dist
Silence a few tests that pass, but not with make-dist. Obviously, this
needs some more investigation.
2016-01-20 20:18:07 +02:00
djcb 3cf96899ef mu: decode mailing-list headers
MIME-decode mailing list headers, too. Also add a unit test. This fixes
issue #728.
2015-12-15 07:21:26 +02:00
djcb a350e2047d Change format for filenames
It seems some tools try to interpret the filename of message files,
even though they shouldn't:
   "Do not try to extract information from unique names."

In particular, they seem to interpret the first part of the name (before
the first dot) as the # of seconds since the Unix epoch (ie.,
time(NULL)). That's not what mu/mu4e put there.

So, let's conform a bit more to the expected filename (as per the
maildir spec), so we're not confusing those tools.
2015-10-02 17:43:38 +03:00
Adam Sampson b44039eda9 Ensure tests have unique names.
glib 2.46 complains if this isn't the case:
(test-mu-str:28790): GLib-ERROR **: duplicate test case path: /mu-str/mu-str-esc-to-list
2015-09-23 12:01:19 +01:00
djcb 518b160025 mu: fix `make distcheck`
We were not including some of the test files in the tarballs; add them.
2015-09-22 12:03:44 +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
djcb 3c104dfdf4 mu: deactivate unit test for mu_util_dir_expand
The test fails in some cases with interesting directory setups, although
the function does work. So de-activate the test for now, until we come
up with a better one.
2015-03-15 13:26:56 +02:00
Jakub Sitnicki ede481d4c0 mu: Test splicing child containers when there is only one thread
This test reproduces a regression introduced by commit 97101f1f82
("mu: Prune empty container when an only child gets promoted to the
root set").

When the results of a mu-find query contain only a one thread:

$ mu find --threads --fields 'd s' ''
Sat 09 Aug 2014 07:00:00 PM CEST [mu4e] Test Message
  `-> Sat 09 Aug 2014 08:30:00 PM CEST Re: [mu4e] Test Message

... and we narrow down the query in such a way that the root message
gets excluded, then a crash occurs:

$ mu find --threads --fields 'd s' '' date:2014-08-09/20:00..2014-08-09/21:00
**
ERROR:mu-container.c:117:mu_container_append_siblings: assertion failed: (c)
Aborted (core dumped)

Reported-by: Josiah Schwab <jschwab@gmail.com>
2014-08-15 10:10:39 +02:00
Jakub Sitnicki 856a651d38 tests: threads: Test if grandchild message promotes only its subthread 2014-07-15 07:24:47 +02:00
Jakub Sitnicki cbfe28b885 tests: threads: Test if grandchild message promotes its thread 2014-07-15 07:24:21 +02:00
Jakub Sitnicki b0357a2d7a tests: threads: Test if child message doesn't promote its thread 2014-07-15 07:23:53 +02:00
Jakub Sitnicki c5d4f7f338 tests: threads: Test if 2nd child message promotes its subthread 2014-07-15 07:22:53 +02:00
Jakub Sitnicki 22927a7dcf tests: threads: Test if 1st child message promotes its thread 2014-07-15 07:22:11 +02:00
djcb 599d641034 * lib: fix broken unit test 2014-01-15 21:27:18 +02:00
djcb c36030a086 * handle message-ids a bit specially, update unit tests 2013-10-13 20:05:29 +03:00
djcb b7324d5af6 * cleanup: drop gmime-2.4 support 2013-07-21 14:44:44 +03:00
djcb b17f26537b * mu: unbreak unit test after flag changes (fixes #247) 2013-07-07 10:46:35 +03:00
djcb d57b109557 * mu-str: treat '..' in non-range fields differently 2013-06-01 06:07:29 -07:00
djcb e7c63cee47 * update some unit tests 2013-05-30 06:15:22 -07:00
djcb e97ec2d51c * fix matching backslashes, add some tests 2013-05-27 05:49:43 -07:00
djcb bdf7ca65c7 * test-mu-maildir: fix regexp 2013-05-27 05:48:19 -07:00
djcb 3dae623879 * add mu_str_replace 2013-05-26 11:16:02 -07:00
djcb ad6b3d8f0f * add unit test for the optional message file renaming 2013-05-25 19:28:40 +03:00
djcb 10b64bb654 * cosmetic 2013-05-21 08:05:14 +03:00
djcb 59f855b39b * lib: add mu_str_parse_arglist + unit tests 2013-05-20 05:14:35 +03:00
djcb a2eef4fa41 * handle invalid utf8; fixes #211 (hopefully) 2013-05-15 21:36:27 +03:00
djcb 00d0cb0f28 * the query parser update (few commits back) fixes #210 too, this is unit test for it. 2013-05-15 00:17:36 +03:00
djcb 50fc992ae2 * fix list parsing 2013-05-13 23:01:53 +03:00
djcb 5d069e786f * lib: updates for mu-msg-field / mu-str updates 2013-05-13 00:03:47 +03:00
djcb 7d48ed53a7 * mu: (re)add special handling for '$' (fixes #193) 2013-04-28 21:54:25 +03:00
djcb a5001acff0 * mu: more 'fixing'/'massaging' of queries 2013-04-17 00:09:08 +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
djcb f176c025d3 * add references unit test 2012-12-28 12:50:02 +02:00
djcb c5f8ea6451 * use AM_CPPFLAGS instead of INCLUDES 2012-12-22 22:54:50 +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 ef1791ec7c * support single dates (shortcut for ranges) in queries (thanks to Eygene Ryabinkin) 2012-11-17 21:25:09 +02:00
djcb 8e60018176 * fix test-mu-maildir unit test for running as root 2012-11-08 22:31:51 +02:00
djcb e5425081cc * remove hard dependency on wordexp.h (OpenBSD does not have it) 2012-11-08 22:19:28 +02:00
djcb a01196499f * mu-cfind: some cleanups / better help 2012-10-24 23:47:47 +03:00
djcb da9c4bf4f7 * lib: add mu_util_support and mu_util_program_in_path + unit tests 2012-10-18 12:11:43 +03:00
djcb b4219bd06b * minor 2012-09-16 18:00:51 +03:00
djcb 020bf110cb * fix leak in test-mu-store 2012-08-11 22:30:13 +03:00
djcb dba062b97c * tests: cleanup test-mu-msg.c 2012-08-09 11:46:00 +03:00
djcb 7b13676f3c * tests: X-Label tags are space-separated, X-Keywords are comma-separated 2012-08-09 10:33:56 +03:00
djcb cb17e22d48 * lib/tests: support X-Label and X-Keywords, update unit test 2012-08-09 10:01:06 +03:00
djcb abfcc4a2f3 * updates for mu_msg_get_body_(text|html) api change 2012-08-09 09:38:58 +03:00
djcb 34401b743c * fix 'make distcheck' 2012-07-20 12:20:46 +03:00
djcb 39fe3f417c * crypto: add automated test for 'verify' 2012-07-18 11:35:57 +03:00
djcb aa62d4ca1b * cosmetic 2012-07-14 15:52:55 +03:00
djcb 0b70a457de * clear non-numerics from dates, so '2012-06-12' is parsed correctly 2012-06-29 10:11:26 +03:00
djcb dea26471d0 * fix _MuStore initialization; proliferate API change 2012-06-20 20:33:58 +03:00
djcb 3159d97105 * mu-store*: detect 'my-addresses' in messages, so we can mark contacts as 'personal' 2012-06-18 18:02:12 +03:00
djcb b0fe9770e4 * mu-str.c: much improved mu_str_normalize_subject (to skip Re:, Fwd: etc. for sorting) 2012-06-15 18:21:21 +03:00
djcb 4dadca3a8d * mu-maildir: preserve custom (non-standard) maildir file flags 2012-06-13 09:10:22 +03:00
djcb d497bfe804 * add mu_flags_custom_from_str, to get the custom flags in a message file name 2012-06-13 08:14:06 +03:00
djcb 1774a42882 * lib/tests: update tests for GStringChunk-related API changes 2012-06-12 00:11:52 +03:00
djcb 0cf414db73 * update test cases for the ignoring (or checking) invalid message flag letters 2012-06-01 14:04:18 +02:00
djcb b50adb1c0a * split off test-mu-msg test cases 2012-06-01 12:35:30 +02:00
djcb 9367f1ac6d * support '.noupdate' -- similar to '.noindex', maildirs containing
'.noupdate' will be ignored; however, they will _not_ be ignored when doing
  a full update (--rebuild)
2012-05-22 10:19:49 +03:00
djcb a480ee9789 * fix refactoring fall-out 2012-05-21 11:16:49 +03:00
djcb 46f10cfde9 * refactoring: split src/ into mu/ and lib/ 2012-05-21 09:25:53 +03:00