1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-26 07:29:17 +02:00
Commit Graph

512 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema
f114d2f511 * testcases: update for other changes, add some tests 2010-11-21 13:43:40 +02:00
Dirk-Jan C. Binnema
38f39d846e * mu-output-plain.c: update for prio stuff refactoring 2010-11-21 13:43:15 +02:00
Dirk-Jan C. Binnema
0bada3350f * mu-msg-str.c: cosmetics 2010-11-21 13:42:28 +02:00
Dirk-Jan C. Binnema
e7d453774c * mu-msg-str.[ch]: remove functionality which is now in mu-msg-prio.[ch] 2010-11-21 13:41:38 +02:00
Dirk-Jan C. Binnema
783d5e4121 * cosmetics 2010-11-21 13:41:01 +02:00
Dirk-Jan C. Binnema
e9d6540b1f * mu-msg-flags.[ch]: minor 2010-11-21 13:39:43 +02:00
Dirk-Jan C. Binnema
63f06e756e * mu-msg-fields.h: minor 2010-11-21 13:38:11 +02:00
Dirk-Jan C. Binnema
5ad35ab766 * mu-msg-prio.[ch]: add implementation 2010-11-21 13:36:22 +02:00
Dirk-Jan C. Binnema
5f0774e810 * mu-runtime.[ch]: update documentation 2010-11-20 20:29:11 +02:00
Dirk-Jan C. Binnema
5f84cb5025 * mu-msg-contact.[ch]: add _new, _destroy functions 2010-11-20 20:28:54 +02:00
Dirk-Jan C. Binnema
2c639e3122 * test-mu-cmd.c: add some test cases 2010-11-20 18:42:32 +02:00
Dirk-Jan C. Binnema
e8556fd303 * mu-msg.c / test-mu-msg.c: improve attachment detection 2010-11-20 18:41:57 +02:00
Dirk-Jan C. Binnema
da7140a602 * mu-msg-iter.cc: remove debugging stuff 2010-11-20 17:51:24 +02:00
Dirk-Jan C. Binnema
c688cad8fc * fix mu_msg_field_type_is_numeric + unit test 2010-11-20 17:50:35 +02:00
Dirk-Jan C. Binnema
5818c40d7f * <many>: fix source code checks; move mu_msg_str_normalize to separate file 2010-11-20 17:27:17 +02:00
Dirk-Jan C. Binnema
2c8bd1015d * cosmetic 2010-11-20 16:37:59 +02:00
Dirk-Jan C. Binnema
c1b143c958 * cosmetic 2010-11-20 16:37:43 +02:00
Dirk-Jan C. Binnema
20e39933e5 * many: fix unit tests, add synonyms (WIP -- not working yet) 2010-11-20 16:37:23 +02:00
Dirk-Jan C. Binnema
208322527b * mu-log: don't complain when unit is called when not already initialized 2010-11-20 16:14:26 +02:00
Dirk-Jan C. Binnema
d1494028e7 * update testcases for mu-msg-field 2010-11-20 14:43:35 +02:00
Dirk-Jan C. Binnema
b69cf8f589 * <many>: update for mu-msg-field change 2010-11-20 14:43:04 +02:00
Dirk-Jan C. Binnema
7f617e32f0 * mu-index: remove version check warning 2010-11-20 14:42:07 +02:00
Dirk-Jan C. Binnema
de1deb4e80 * mu-msg-fields: cleanup, use MuMsgFieldId rather than MuMsgField* 2010-11-20 14:41:21 +02:00
Dirk-Jan C. Binnema
d4a2a3333f * mu-bookmarks.[ch]: bookmarks implemenation was still missing from git 2010-11-15 23:25:06 +02:00
Dirk-Jan C. Binnema
56c8a66672 * mu-cmd-index.c: cosmetic 2010-11-15 08:43:46 +02:00
Dirk-Jan C. Binnema
10142c66cd * mu-cmd-find.c: cosmetic 2010-11-15 08:43:30 +02:00
Dirk-Jan C. Binnema
4f788f6cc2 * mu-msg-str.[ch], add mu_msg_str_normalize_in_place and some further optimizations 2010-11-14 22:04:16 +02:00
Dirk-Jan C. Binnema
bbfe1cbd2d * mu-maildir.c: some micro-optimizations 2010-11-14 21:53:24 +02:00
Dirk-Jan C. Binnema
38b85ad161 * mu-msg-fields: store terms for message flags (so they become searchable) 2010-11-14 21:52:44 +02:00
Dirk-Jan C. Binnema
a8291f4462 * minor 2010-11-14 18:03:12 +02:00
Dirk-Jan C. Binnema
de77c4b5ad * mu-msg.c: improve attachment detection 2010-11-14 18:02:57 +02:00
Dirk-Jan C. Binnema
4019965d8e * mu-msg.c: update for mu_msg_field changes 2010-11-14 16:41:16 +02:00
Dirk-Jan C. Binnema
ece60f2e82 * mu-msg-flags: overhaul; cleaned up things, and should be a bit faster 2010-11-14 16:40:43 +02:00
Dirk-Jan C. Binnema
fdc67a021b * mu-query: pre-process query also when doing --xquery; makes thing more consistent 2010-11-14 16:39:21 +02:00
Dirk-Jan C. Binnema
141b7298e9 * add 'mu_runtime' for initialization, keeping global state during runtime. update many. 2010-11-14 13:55:04 +02:00
Dirk-Jan C. Binnema
3794182e05 * add basic implementation for bookmark support.
basically, add a file named ~/.mu/bookmarks which looks something like
  ----
  [mu]
  testarch=subject:test maildir:/archive
  inbox=maildir:/inbox
  ----

  now, one can do a query, e.g.

    mu find -b testarch

  which is equivalend to

    mu find subject:test maildir:/archive

 if both a bookmark and a 'normal' search expression are specified,
 the will be concatenated.

 bookmarks starting with mu_ are reserved for mu itself.
2010-11-13 14:16:38 +02:00
Dirk-Jan C. Binnema
be9157f3e9 * mu-msg-str.c: add Latin-Extended-A for normalization, update unit test 2010-11-12 22:36:13 +02:00
Dirk-Jan C. Binnema
fe68f403f8 * mu-maildir.c: update comment 2010-11-12 22:35:21 +02:00
Dirk-Jan C. Binnema
88a5d0e2fa * mu_msg_str_normalize: better handle empty strings 2010-11-11 22:12:03 +02:00
Dirk-Jan C. Binnema
e2b7d71cd4 * cosmetics 2010-11-11 22:07:08 +02:00
Dirk-Jan C. Binnema
fb30c1e2eb * mu-query.cc: now always search for normalized, lower-case values 2010-11-11 22:06:19 +02:00
Dirk-Jan C. Binnema
94bf9a68c7 * mu-store: store strings for searching now in normalized, lowercase form 2010-11-11 22:05:55 +02:00
Dirk-Jan C. Binnema
a3822ec850 * cosmetic 2010-11-11 22:05:24 +02:00
Dirk-Jan C. Binnema
3c5314e4ed * tests: updated 2010-11-11 22:05:10 +02:00
Dirk-Jan C. Binnema
be0683526f * mu-msg-str: re-implement mu_msg_str_normalize by hand to actually work, add
unit tests
2010-11-11 22:04:47 +02:00
Dirk-Jan C. Binnema
fd2df0199c * test-mu-query.c: add some more test 2010-11-09 00:26:24 +02:00
Dirk-Jan C. Binnema
2861e622c9 * mu-maildir.c: cosmetics 2010-11-08 08:46:24 +02:00
Dirk-Jan C. Binnema
fb46b4fddc * mu-maildir.c: use lstat, not stat in readdir_with_stat_fallback; this fixes
issue #28.
2010-11-07 19:14:01 +02:00
Dirk-Jan C. Binnema
a7a76e7989 * mu_msg_str: add mu_msg_str_display_contact[_s], to guess the name-part from
the values in To/Cc/Bcc/From fields. (ie. '"Foo Bar" <foo@bar.cuux>' => 'Foo Bar')
2010-11-07 19:01:34 +02:00
Dirk-Jan C. Binnema
1d9eeeb1a6 * mu-msg.h: cosmetics 2010-11-07 18:25:12 +02:00
Dirk-Jan C. Binnema
93cf7856d1 * mu-msg-str.[ch]: add mu_msg_str_display_date_s, displays time for time with
24h, date otherwise
2010-11-07 18:24:48 +02:00
Dirk-Jan C. Binnema
f867185ad3 * cosmetic 2010-11-07 18:02:25 +02:00
Dirk-Jan C. Binnema
b1a799df4a * mu-msg-iter: add mu_msg_iter_get_maildir 2010-11-07 18:01:04 +02:00
Dirk-Jan C. Binnema
df57723ec7 * mu-msg-list: make unread mailheaders bold, important ones read. Fix
mu-msg-iter.cc while doing so.
2010-11-03 23:02:40 +02:00
Dirk-Jan C. Binnema
ef4116efc2 * make mu_msg_str_date[_s] take an strftime-like argument for the format;
update callers
2010-11-03 07:43:46 +02:00
Dirk-Jan C. Binnema
a16a01cb2c * cosmetic 2010-11-02 21:18:50 +02:00
Dirk-Jan C. Binnema
b68a093092 * cosmetic 2010-11-02 21:15:35 +02:00
Dirk-Jan C. Binnema
1b75761984 * cosmetic 2010-11-02 21:15:18 +02:00
Dirk-Jan C. Binnema
99cf282d3b * cosmetic 2010-11-02 21:14:46 +02:00
Dirk-Jan C. Binnema
a10525d3c9 * mu_msg_str: sanitize date strings a bit, update test case 2010-11-02 21:14:24 +02:00
Dirk-Jan C. Binnema
a4ea979aaa * fix mu_msg_iter_get_date 2010-11-02 21:13:45 +02:00
Dirk-Jan C. Binnema
3b87a0f9e6 * add mu_util_guess_mu_homedir and mu_util_guess_xapian_dir and use them 2010-11-02 21:12:18 +02:00
Dirk-Jan C. Binnema
d112c2c930 * update testcases for normalization 2010-11-02 00:08:31 +02:00
Dirk-Jan C. Binnema
e15bb738ea * store normalized version of strings as well (value) 2010-11-02 00:06:17 +02:00
Dirk-Jan C. Binnema
7fe29ebfc3 * cosmetic 2010-11-02 00:05:49 +02:00
Dirk-Jan C. Binnema
23f1275a24 * add mu_msg_str_normalize (to remove accents from strings, optionally lowercase) 2010-11-02 00:05:27 +02:00
Dirk-Jan C. Binnema
1e93d614a9 * fix typo 2010-10-31 11:35:00 +02:00
Dirk-Jan C. Binnema
117e5bc76e * refactor output a bit (mu-cmd-find) 2010-10-31 11:34:01 +02:00
Dirk-Jan C. Binnema
12f02ea08f * mu-cmd-extract,test-mu-util: cleanups to pass line33/cc10 2010-10-30 15:14:14 +03:00
Dirk-Jan C. Binnema
976e0d03dc * add FLAG_XAPIAN_VALUE for MU_MSG_FIELD_ID_MSGID so the 'i' format field
works. this fixes issue #27
2010-10-23 12:29:06 +03:00
Dirk-Jan C. Binnema
23869e2066 * mu-config: small fix 2010-10-23 12:12:14 +03:00
Dirk-Jan C. Binnema
0c763c48f1 * tests/Makefile.am: add message 4 to test cases 2010-10-23 12:05:35 +03:00
Dirk-Jan C. Binnema
f9b50541e3 * mu-cmd-extract: don't be too picky for attachments 2010-10-23 12:04:58 +03:00
Dirk-Jan C. Binnema
f57a11828d * update documentation for extract 2010-10-23 12:04:14 +03:00
Dirk-Jan C. Binnema
3f971f69ba * test-mu-cmd: add some extract test cases 2010-10-23 12:03:42 +03:00
Dirk-Jan C. Binnema
f50846bdfb * mu-config: set default target dir to "." 2010-10-17 11:26:32 +03:00
Dirk-Jan C. Binnema
109f8e4e3c * update testcase, add attachment, m: testing 2010-10-17 11:21:12 +03:00
Dirk-Jan C. Binnema
c3dafe2329 * mu-cmd-extract.c: check targetdir for writability 2010-10-17 11:20:02 +03:00
Dirk-Jan C. Binnema
3f2023ed92 * tests: fix make distcheck 2010-10-09 15:36:32 +03:00
Dirk-Jan C. Binnema
7eb407dca3 * cosmetic: mail3 2010-10-09 15:12:49 +03:00
Dirk-Jan C. Binnema
093d65320d * mu-query: try stemming 2010-10-09 15:12:35 +03:00
Dirk-Jan C. Binnema
e161fb6065 * mu-cmd: some cosmetical updates in the output 2010-10-09 13:19:47 +03:00
Dirk-Jan C. Binnema
4e06349e65 * mu-cmd-index: cosmetic 2010-10-09 12:53:02 +03:00
Dirk-Jan C. Binnema
76815e4416 * mu-config: don't set opts->(maildir|linksdir) to NULL if it's invalid; do
checking later
2010-10-09 12:51:20 +03:00
Dirk-Jan C. Binnema
89b65df13b * small logging cleanups, don't g_debug before we initialized logging 2010-10-09 12:44:48 +03:00
Dirk-Jan C. Binnema
7de56f9399 * clean-up mu_util_dir_expand, add unit test 2010-10-09 11:56:55 +03:00
Dirk-Jan C. Binnema
b09535ea0e * mu-cmd-index.cc: clean up progress printing, make sure it passes make line33
and make cc10
2010-10-05 08:11:52 +03:00
Dirk-Jan C. Binnema
a5db0a6d81 * tests/: update unit tests 2010-10-04 22:33:22 +03:00
Dirk-Jan C. Binnema
64985d7791 * fix progress info display for indexing 2010-10-04 22:31:44 +03:00
Dirk-Jan C. Binnema
fb1651e184 * <many> fix small conversion errors (-Wconversion) 2010-09-26 17:29:54 +03:00
Dirk-Jan C. Binnema
3fa552a81e * mu-index: cosmetics 2010-09-26 15:52:42 +03:00
Dirk-Jan C. Binnema
6cb61593ad * mu-store: add mu_store_count 2010-09-26 15:52:22 +03:00
Dirk-Jan C. Binnema
f2770c5957 * added some more test cases 2010-09-26 15:52:07 +03:00
Dirk-Jan C. Binnema
82176c8991 * unit-tests: small updates to tests 2010-09-26 15:23:17 +03:00
Dirk-Jan C. Binnema
5ac9c55df6 * mu-cmd-index.c: small cleanup, keep func len <= 33 2010-09-23 00:03:44 +03:00
Dirk-Jan C. Binnema
4a51ea530e * mu-config.c: cosmetic 2010-09-23 00:03:21 +03:00
Dirk-Jan C. Binnema
99c0d620d4 * mu-util.[ch]: use realpath to resolve dirs, some cosmetics 2010-09-23 00:03:04 +03:00
Dirk-Jan C. Binnema
3375066c4f * mu-cmd-index: use isatty, do not write progress info to stdout unless it's a tty 2010-09-15 20:59:42 +03:00
Dirk-Jan C. Binnema
18e2cf2912 * mu-msg.cc: better handling of invalid mail files 2010-09-15 20:17:47 +03:00
Dirk-Jan C. Binnema
0490023baf * mu-cmd-index: print indexing updates only once 25, this reduces printing
overhead (of course, --quiet is still faster)
2010-09-15 20:17:29 +03:00