Commit Graph

1232 Commits

Author SHA1 Message Date
djcb e483291a1d * lib/mu-container: remove some O(n*n) behavior from threading
mu_container_append_siblings was showing up high in profiles as it has to
  walk chains of next->next->next->... pointers to find the last one. we now
  cache the last link in the chain. for listing ~ 23K messages, this saves
  about 20%.
2012-09-17 17:45:59 +03:00
djcb 7fe594fb2a * cosmetics 2012-09-17 17:42:56 +03:00
djcb 2db1606a36 * lib: refactor mu-log a bit 2012-09-17 13:17:49 +03:00
djcb ac12d0c8aa * lib/mu-runtime: fix broken error handling 2012-09-17 13:05:49 +03:00
djcb 3759436a37 * cosmetics 2012-09-17 12:44:08 +03:00
djcb cc59c83756 * lib: mu-msg-part: improve handling of b0rked messages, s/HAVE_CRYPTO/BUILD_CRYPTO/ 2012-09-17 12:43:53 +03:00
djcb 0b32a63537 * guile: fix getting message bodies 2012-09-17 11:13:37 +03:00
djcb cd506d6d79 * add missing ifdef BUILD_CRYPTO block, so things build without crypto, too 2012-09-17 10:07:26 +03:00
djcb 55f7ecd362 * mu: try harder to create temp files for images (so we can show them in mu4e) 2012-09-16 23:10:23 +03:00
djcb b4219bd06b * minor 2012-09-16 18:00:51 +03:00
djcb 6bff28a6ff * cosmetics 2012-09-16 13:16:01 +03:00
djcb 87e61b7a3e * mu-maildir: hide some innocent errors 2012-09-15 18:03:23 +03:00
djcb 5b0d056f58 * lib/mu-runtime: update for logging changes 2012-09-15 17:59:21 +03:00
djcb 04523b4cd1 * lib/mu-log: cleanups and some improvements
use an option enum instead of boolean args for code clarity; allow for
  printing an \n before logging to tty (improved mu-index output). allow
  for color in logging to tty
2012-09-15 17:58:37 +03:00
djcb 211635b18b * mu-msg-crypto: improve comments 2012-09-14 12:17:52 +03:00
djcb cb810010e1 * mu-msg-part: some refactoring, warn user about gmime pw bug 2012-09-14 12:17:40 +03:00
djcb 70824bf978 * mu_util_read_password: fix mem mgmt 2012-09-14 12:16:53 +03:00
djcb 6a4b094ac9 * some refactoring for line35 2012-09-14 10:06:14 +03:00
djcb 61ade73332 * lib: add support for asking user for password from console 2012-09-13 22:57:04 +03:00
djcb 52bc720258 * lib/mu-util: add mu_util_read_password 2012-09-13 22:56:08 +03:00
djcb ac1d1b2ed8 * cosmetics 2012-09-13 21:12:12 +03:00
djcb 70c76459a9 * lib/mu-msg-crypto: correct mem handling (after discussion with gmime dev) 2012-09-13 21:11:26 +03:00
djcb 0445d87ab9 * lib/mu-msg-part.c: enable decryption (WIP) 2012-09-12 12:12:24 +03:00
djcb 1e4f94f9ae * mu-msg-priv.h: use G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT for some funcs 2012-09-12 12:11:47 +03:00
djcb 6470ff989a * mu-msg.c: return NULL rather than "" if there is no body (get_body) 2012-09-12 12:11:02 +03:00
djcb 8109410c58 * mu-msg.h: use G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT for mu_msg_to_sexp 2012-09-12 12:10:17 +03:00
djcb 325d596c0a * fix make-dist 2012-09-09 16:14:41 +03:00
djcb 7cdb72ddd5 * lib/Makefile.am: fix make-dist (remove mu-msg-crypto.h) 2012-09-09 16:14:39 +03:00
djcb cd0589b1b3 * lib: consider more things to be attachments 2012-09-08 12:46:55 +03:00
djcb 58a90e4a5d * lib/mu-contacts: make address comparison case-insensitive 2012-09-05 01:24:18 +03:00
djcb cf143667e8 * cosmetics 2012-09-05 01:23:00 +03:00
djcb e63ed13f5f * mu-msg-sexp: support signature checking, remove elvis code 2012-09-01 20:04:24 +03:00
djcb 9d6ef76f5f * crypto: improve signature checking code 2012-09-01 20:03:48 +03:00
djcb 7b39d56c99 * mu-query.cc: fix cc10 2012-08-31 00:22:18 +03:00
djcb 14661a6d7b * restore mu-verify (WIP) 2012-08-30 20:26:35 +03:00
djcb adc23614a1 * enable signature verification (WIP) 2012-08-30 12:53:52 +03:00
djcb 57e5f7b56f * lib: better error checking for message date / size when creating sexp 2012-08-28 18:28:18 +03:00
djcb dcda69e459 * lib: don't check for bogus error 2012-08-23 00:00:28 +03:00
djcb 93171a5b90 * lib: try to reopen database when it got updated from the outside (for guile) 2012-08-19 09:57:49 +03:00
djcb 90674172b9 * mu-store-write: use 'Xapian:WritableDatabase::commit' rather than '...flush' 2012-08-19 09:56:38 +03:00
djcb 441c5a1b9b * mu-store-read: fix realpath checking 2012-08-19 09:54:51 +03:00
djcb ba50104b8f * cosmetics 2012-08-16 20:48:01 +03:00
djcb 020bf110cb * fix leak in test-mu-store 2012-08-11 22:30:13 +03:00
djcb 2f33744f59 * fix leak in mu_msg_get_header 2012-08-11 22:26:30 +03:00
djcb 3423b86e09 * fix leak in mu-msg-doc 2012-08-11 21:37: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 e47646e010 * mu-msg-sexp: don't make crypto required 2012-08-11 12:02:16 +03:00
djcb 477a36ca57 * mu-msg-crypto: don't use g_clear_object, it requires glib 2.28 2012-08-11 11:57:35 +03:00
djcb 3823dd5a6c * mu-msg-file: don't use g_clear_object, it requires glib 2.28 2012-08-11 11:55:06 +03:00
djcb 8e6903cb61 * mu-msg-part: don't use g_mime_part_iter_*: it's gmime 2.6 only 2012-08-11 11:54:08 +03:00
djcb 4fa0c57d29 * mu-msg-file.c: don't try to over-optimize charset decoding; it broke iso-2022-jp 2012-08-10 17:13:05 +03:00
djcb 96bcf42277 * lib: get_tags: support X-Label, X-Keywords and Keywords 2012-08-10 10:07:35 +03:00
djcb 74189c04a4 * mu-msg-sexp: mark attachments as such 2012-08-10 09:59:01 +03:00
djcb 1c058a1b9d * lib/crypto: disable pkcs7 for now 2012-08-10 09:39:24 +03:00
djcb dba062b97c * tests: cleanup test-mu-msg.c 2012-08-09 11:46:00 +03:00
djcb b3760740f8 * update for attachment checking changes 2012-08-09 11:45:46 +03:00
djcb 51fe7fcae8 * lib: refactor attachment checking 2012-08-09 11:45:04 +03:00
djcb ea86b71294 * lib: fix embedded text indexing 2012-08-09 10:54:05 +03:00
djcb 70856427cf * cosmetic 2012-08-09 10:34:05 +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 6d91589791 * lib: fix initialization in get_tags 2012-08-09 10:07:23 +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 86bf7b7165 * lib: cleanup mu_msg_get_body_(html|text) (WIP) 2012-08-09 09:38:22 +03:00
djcb c3391b3929 * lib: cleanups: remove mu-msg-cache (WIP) 2012-08-08 19:13:59 +03:00
djcb d7dabca0b6 * lib: fixes for make line35/make cc10 2012-08-07 12:02:44 +03:00
djcb a91fa644d5 * lib: correctly handle embedded text parts 2012-08-07 11:43:54 +03:00
djcb dc211648a8 * mu-msg-file: don't try to decrypt when this is not desirable 2012-08-05 12:28:47 +03:00
djcb 57b26259f7 * mu-store-read.cc: use realpath when determining path, getting rid of
e.g. /foo//bar double slashes
2012-08-03 18:44:43 +03:00
djcb cf2b81c009 * lib: centralize MAX_PATH stuff 2012-08-03 18:43:59 +03:00
djcb b71a27b7c0 * mu4e/mu-msg-part: better detection of body / attachments 2012-08-02 15:48:03 +03:00
djcb 11b60b7ca0 * mu-msg-part: small fix (initialize fname) 2012-08-01 23:22:50 +03:00
djcb 8d517021bb * mu-msg-file: cleanup message path (realpath) 2012-08-01 23:21:59 +03:00
djcb 3c59b97fc9 * mu-str.c: make mu_str_convert_to_utf8 slightly more tolerant 2012-08-01 17:03:55 +03:00
djcb 67a9282fc9 * updates for mu-msg-part changes 2012-08-01 17:02:43 +03:00
djcb 536665d126 * further refactoring/cleanup of MuMsgPart 2012-08-01 17:02:11 +03:00
djcb 279f627c5e * cosmetics 2012-08-01 10:48:56 +03:00
djcb 86e3c3095b * mu-msg-fields: add name for refs 2012-08-01 10:45:45 +03:00
djcb 6a7562422f * MuMsgPart refactoring / cleanups 2012-08-01 10:45:03 +03:00
djcb 7485911cd6 * mu-log.c: minor 2012-07-31 18:47:05 +03:00
djcb f1a2e94b1a * crypto: update for crypto api changes 2012-07-27 18:04:49 +03:00
djcb 8432156765 * crypto: implement automagic decryption when so requested
(mainly by adding some smartness to various part_foreach functions, adding
  mu_msg_(get|set)_auto_decrypt to mark a message for auto-decryption)
2012-07-27 18:04:17 +03:00
djcb c88aea5285 * crypto: add mu_msg_crypto_decrypt_part, fix password func, remove cruft 2012-07-27 18:02:34 +03:00
djcb 84682bfe2c * mu-msg-view: better detection of signed/encrypted parts 2012-07-24 23:38:57 +03:00
djcb 8f6cf28f2d * mu-msg-part: better detection of message body 2012-07-24 23:38:37 +03:00
djcb a3b4edf56a * updates for mu-msg-part changes 2012-07-24 22:12:49 +03:00
djcb c7eaaf9475 * mu-msg-part: clean up mime-part parsing 2012-07-24 22:12:22 +03:00
djcb d92ad056e1 * cosmetics 2012-07-23 00:56:01 +03:00
djcb 5a92c8b58a * crypto: decryption support (WIP) 2012-07-22 19:39:17 +03:00
djcb 34401b743c * fix 'make distcheck' 2012-07-20 12:20:46 +03:00
djcb c240e6c17f * fixes for 'make line35' (small function refactoring) 2012-07-20 11:54:37 +03:00
djcb 3322464564 * crypto: refactor a bit; add to sexp 2012-07-18 17:52:33 +03:00
djcb acfabfdf4b * refactor: MU_MSG_PART_OPTION -> MU_MSG_OPTION and related changes 2012-07-18 16:22:10 +03:00
djcb fe6333dfef * crypto: small cleanups 2012-07-18 11:36:42 +03:00
djcb 39fe3f417c * crypto: add automated test for 'verify' 2012-07-18 11:35:57 +03:00
djcb 807c9de625 * crypto: better handling of crypto errors 2012-07-18 10:30:23 +03:00
djcb 9e59b1f29b * crypto: update other mu-msg-part users for api changes 2012-07-17 19:17:09 +03:00
djcb c7cf0c6655 * crypto: hook up crypto support with mu-msg-part and friends 2012-07-17 19:16:42 +03:00
djcb 2be6b041ae * mu: build crypto support maybe (depends on gmime 2.6) 2012-07-17 19:15:47 +03:00
djcb d4abc249c2 * refactor mu_msg_(un)load_msg_file from various versions 2012-07-16 12:55:54 +03:00
djcb a2bceff17c * cosmetic 2012-07-16 09:23:48 +03:00
djcb aa62d4ca1b * cosmetic 2012-07-14 15:52:55 +03:00
djcb c9fc49cfd6 * cosmetics 2012-07-12 15:47:11 +03:00
djcb b09b9ceaac * guile: add mu:timestamp accessor to <mu:message>, implement it 2012-07-10 23:36:21 +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 b16aab5b3d * update some documentation 2012-06-26 22:47:25 +03:00
djcb e5448adbb8 * robustness/cleanup fixes:
- mu-util.c: don't raise errors when fputs failes (this would spam us when a
    pipe broke)
  - mu-cmd-server.c: handle SIGPIPE, ignore empty command lines
2012-06-26 13:11:50 +03:00
djcb e792c61f32 * mu4e: when moving messages, always reset the N flag
(since N (new) messages cannot have any other flags, you would loose
  e.g. the T flag when moving to trash; now, we remove the N flag, and the T
  flag remains)
2012-06-23 10:11:18 +03:00
djcb dea26471d0 * fix _MuStore initialization; proliferate API change 2012-06-20 20:33:58 +03:00
djcb 39ff643e48 * store: allow setting my-addresses 2012-06-19 17:59:16 +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 be46769255 * mu-contacts: allow saving a separate value 'personal'
which, if true, means that the contact was seen in a message where at least
  one of the addresses in the recipients field was 'my' address (this is
  decided when in mu-store-write.cc). using this, we can exclude mailing list
  posts.
2012-06-18 17:59:27 +03:00
djcb a332583d81 * mu-msg.c: improved case-insensitive sorting function 2012-06-15 18:22:18 +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 664ebce107 * minor 2012-06-13 08:11:32 +03:00
djcb cc125b4218 * cosmetic 2012-06-13 08:11:05 +03:00
djcb 9133750d24 * mu-str.c: fix bug in check_for_field 2012-06-12 11:55:59 +03:00
djcb 1774a42882 * lib/tests: update tests for GStringChunk-related API changes 2012-06-12 00:11:52 +03:00
djcb 423a1d7140 * mu4e: use GStringChunk* for string normalization / escaping
- this should fix the rare bug for some non-Latin unicode blocks,
  simplify some code, and possibly improve performance a bit
2012-06-12 00:11:14 +03:00
djcb dea5a7892d * mu-msg-part.h: include unistd.h, to unbreak ubuntu 10.04 compilation 2012-06-10 12:10:28 +03:00
djcb 20d858e464 * implement / document changing sort order and threading
- update the protocol a bit (mu4e-proc, mu-cmd-server)
  - provide the user-interface (mu4e-headers.el)
  - document it (mu4e.texi, mu-server.1)
  - some cosmetics (the other changes)
2012-06-10 11:19:51 +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 895ab10a4b * optionally ignore invalid (unknown) message flag letters, update callers 2012-06-01 14:03:43 +02:00
djcb 7008e108ae * mu-maildir.c: fix compiler warning 2012-06-01 12:35:46 +02:00
djcb b50adb1c0a * split off test-mu-msg test cases 2012-06-01 12:35:30 +02:00
djcb f7699c0ad3 * mu-msg-sexp.c: add contact info later in the sexp so that we can access file
data (in the !header_only case), i.e.. Reply-To
2012-05-23 23:34:28 +03:00
djcb ecf18e9ac9 * mu-util.c: return FALSE in all case for mu_util_g_set_error 2012-05-22 16:49:57 +03: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