1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-23 07:16:48 +02:00
Commit Graph

61 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema
2b41379183 * mu-store.[cc,h]: cleanup API, implementation 2011-09-18 14:40:51 +03:00
Dirk-Jan C. Binnema
6a13866235 * mu-store: many cleanups, fixes 2011-08-30 22:02:28 +03:00
Dirk-Jan C. Binnema
ce97c491eb * mu-store refactoring 2011-08-29 23:35:12 +03:00
Dirk-Jan C. Binnema
05532894a6 * mu-store, mu-msg-file: improve flagging 2011-08-16 00:45:42 +03:00
Dirk-Jan C. Binnema
c2507b33cc * mu-store.cc: optimize flag storing by pre-calculating the strings 2011-08-13 12:04:10 +03:00
Dirk-Jan C. Binnema
675b89708f * restore flag:unread and some optimization 2011-08-13 10:40:31 +03:00
Dirk-Jan C. Binnema
a571a3f877 * MuMsgFlags => MuFlags 2011-08-11 22:44:23 +03:00
Dirk-Jan C. Binnema
e55eb4ed25 * MuResult/MuExitCode => MuError 2011-08-11 20:20:22 +03:00
Dirk-Jan C. Binnema
b1d0de2cab * minor 2011-08-11 08:22:24 +03:00
Dirk-Jan C. Binnema
ba93c7bef7 * cosmetics, minor 2011-08-10 23:58:06 +03:00
Dirk-Jan C. Binnema
d291c5a9f5 * some mu_store_store => mu_store_store_msg and the consequences 2011-08-03 23:03:22 +03:00
Dirk-Jan C. Binnema
bdf1237c34 * mu-mv: optionally, let it update the database (--updatedb) and print the
target file on stdout (--printtarget)
2011-08-02 21:27:32 +03:00
Dirk-Jan C. Binnema
3c3f008c33 * mu-store: cleanup storing dates 2011-07-21 00:38:28 +03:00
Dirk-Jan C. Binnema
6c62a066c8 * make time & size checking a bit stricter, report errors to user 2011-07-16 12:50:17 +03:00
Dirk-Jan C. Binnema
199c6c9bd9 Revert "* mu-store: use strncpy instead of strcpy"
This reverts commit b2e9f43a05.
2011-07-16 10:22:21 +03:00
Dirk-Jan C. Binnema
bdd3306dc1 Revert "* fix string storing"
This reverts commit 2156036616.
2011-07-16 10:22:00 +03:00
Dirk-Jan C. Binnema
2156036616 * fix string storing 2011-07-16 10:16:10 +03:00
Dirk-Jan C. Binnema
b2e9f43a05 * mu-store: use strncpy instead of strcpy 2011-07-15 08:42:00 +03:00
Dirk-Jan C. Binnema
5441b1945f * cleanup --exec implementation 2011-07-10 14:48:45 +03:00
Dirk-Jan C. Binnema
f59ca5af2d * support special characters in X-Labels 2011-07-10 14:08:16 +03:00
Dirk-Jan C. Binnema
0ec6df6369 * use the new strip option for list->str 2011-07-06 02:14:00 +03:00
Dirk-Jan C. Binnema
e7f9e1d082 * mu-store.cc: handle a comma-separated list of tags as multiple terms for the doc 2011-06-16 07:59:00 +03:00
Dirk-Jan C. Binnema
9971c1e7ae * add basic support for X-Label (WIP) 2011-06-16 00:26:30 +03:00
Dirk-Jan C. Binnema
76bef9f984 * mu-store.cc: support GSList* fields 2011-06-15 23:52:32 +03:00
Dirk-Jan C. Binnema
93522893bf * mu-contacts: use encoded email address as group in gkeyfile (which valid as a
groupname), add real email as email= value; use g_keyfile_(get|set)_value
  instead of string, so there is no utf-8 problems, just the raw data we got
  as address

  This should all allow for any kind of email address, even invalid
  ones. switch order of name / address in mu_contacts_add
2011-05-24 21:41:52 +03:00
Dirk-Jan C. Binnema
c84baa1201 * mu-query.cc, mu-store.cc: cosmetics 2011-05-21 20:20:07 +03:00
Dirk-Jan C. Binnema
0ab861985a * mu-query.c,mu-store.cc: add support for storing/search message file attachments 2011-05-21 16:06:52 +03:00
Dirk-Jan C. Binnema
620b7e2cae * mu-store: add some debug stuff 2011-05-20 21:32:16 +03:00
Dirk-Jan C. Binnema
6f33f76797 * merge mu-msg-contact.[ch] with mu-msg.[ch] 2011-05-14 18:14:24 +03:00
Dirk-Jan C. Binnema
c07b8e4529 * <many> add support for displaying, searching the Bcc: field 2011-05-01 18:31:00 +03:00
Dirk-Jan C. Binnema
301de1bb81 * mu-store.cc: some optimizations:
- cache the prefix strings
   - use alloca for not too long string terms
2011-05-01 15:55:25 +03:00
Dirk-Jan C. Binnema
a633475e1b * cosmetics 2011-04-30 13:52:17 +03:00
Dirk-Jan C. Binnema
efa026648b * mu-store.cc: some optimizations, and add the possibility to use the slightly
faster 'add_document' instead of 'replace_document' (it's not used yet though)
2011-04-30 11:31:34 +03:00
Dirk-Jan C. Binnema
fda03bd562 * mu-store.cc: fix tiny leak 2011-04-30 10:09:12 +03:00
Dirk-Jan C. Binnema
b27a9f47c4 * add 'flag:unread' as a synonym for 'flag:new OR NOT flag:seen'
- update documentation
  - update test cases
  - some cleanups in the C++-code
  - bump the database version, to trigger the --rebuild warning
2011-03-31 23:08:26 +03:00
Dirk-Jan C. Binnema
adf45c4ee0 * mu-msg-iter.cc, mu-query.cc, mu-store.cc: use more c++ facilities 2011-03-22 23:37:01 +02:00
Dirk-Jan C. Binnema
6226754a25 * WIP: mu-contacts; add the following: return timestamp callback and add regexp filtering capabilities 2011-03-03 21:22:11 +02:00
Dirk-Jan C. Binnema
0bc10837fe * fix mu-cmd-index.c, mu-store.c to honor line33 2011-03-02 23:03:24 +02:00
Dirk-Jan C. Binnema
deeaf41f33 * WIP: contact listing / searching.
this is the first part, adding a cache for all the contacts in mails
  (~/.mu/cache/contacts), which is a .ini-type file.
2011-03-02 00:13:24 +02:00
Dirk-Jan C. Binnema
b1a17a1b9b * mu_store_get_timestamp: fix memleak 2011-02-04 20:47:56 +02:00
Dirk-Jan C. Binnema
c76af05a7a * make mag-msg-store a configurable parameter; refactor the setting of the
xapian batch size
2011-01-15 13:27:41 +02:00
Dirk-Jan C. Binnema
d1bf8b3c73 * improve checks for database version 2011-01-12 23:13:03 +02:00
Dirk-Jan C. Binnema
f2e8927f6f * mu-msg-fields: store escaped versions of maildirs, so matching works for 'strangely named' ones 2011-01-11 23:18:55 +02:00
Dirk-Jan C. Binnema
169196498e * <many>: add option to change the batch size for xapian transactions 2011-01-02 18:05:43 +02:00
Dirk-Jan C. Binnema
39d71b8e3b * use mu_str_ascii_xapian_escape instead of local version; and non-in-place version 2010-12-07 23:19:13 +02:00
Dirk-Jan C. Binnema
3d3a4f8308 * mu-query.cc, mu-store.cc: use the escaping for some fields; update test case 2010-11-29 21:29:43 +02:00
Dirk-Jan C. Binnema
e64e24aa61 * create mu-error.h, update some functions to use GError for errors 2010-11-24 20:04:20 +02:00
Dirk-Jan C. Binnema
0f2b4e2d3c * rename mu_msg_str => mu_str 2010-11-23 00:44:18 +02:00
Dirk-Jan C. Binnema
89b85cf7f7 * mu-store.cc, mu-query.cc: improved date-range matching 2010-11-23 00:33:15 +02:00
Dirk-Jan C. Binnema
e0cada86d6 * add date-range searches using date:/d: 2010-11-21 18:12:01 +02:00