Commit Graph

75 Commits

Author SHA1 Message Date
djcb e9a0939f8f update cfind, server for new contacts-cache
Use the new APIs.
2019-05-11 13:41:03 +03:00
djcb 16fa5d9a22 server: maybe mark updates with :maybe-view
Don't updates messages when it's not needed, but don't use :view, since
it confuses mu4e's handlers.
2018-08-18 11:40:16 +03:00
djcb aa70bf1920 Merge branch 'pr-1111'
Fix a bunch of conflicts, tests.
2018-08-18 10:29:40 +03:00
djcb 82e7d7c65d mu: better handle updating mail being viewed
instead of the the 'noupdate', add 'noview', so the headers still get
update but we don't render unread mail twice.
2018-08-14 21:59:41 +03:00
djcb 93c6ff1f85 mu: protect against overly long keys
We got some errors when some of the key values exceeded the Xapian
maximum; in particular the message-id.

So make all the key-methods check, and truncate the message-id if
necessary.
2018-08-14 21:57:33 +03:00
djcb a4398ac93d mu4e/mu: optimize mark-as-read
Since cd649efb6b, opening an unread message first does a proc-move,
then proc-view.

Reason is that while we get the (:update ... ) from the move, that only
contains a skeleton message; we need the full view get images etc. This
means that we render the message _twice_.

Here we change add a flag for move to _not_ send the (:update ..), so
only the (:view ...) will trigger rendering of the message.
2018-08-12 14:00:59 +03:00
djcb 2d954e9647 mu: fix strncpy usage
Ensure the resulting strings are \0-terminated.
2018-06-11 09:18:27 +03:00
djcb 7a62758afa mu: handle funny msgids
Query msgids without trying to parse them. Also, clean up some code.
2017-12-03 22:17:30 +02:00
djcb 4ee8c5e1d6 mu4e: work around quoting issues
Use base-64 for now.
2017-10-28 18:23:08 +03:00
djcb aa07c4a27c update commands for new query parser 2017-10-25 23:50:17 +03:00
djcb 4014e3d210 mu: cosmetics 2017-07-02 10:46:08 +03:00
djcb 855a8a5c5e mu: properly escape include file-names (forward)
We weren't properly escaping filenames when returning them for
forwarding. Let's do so now.
2017-04-09 11:31:39 +03:00
djcb 6a421f4d85 mu: fix C-d handler for mu server 2016-08-27 18:58:31 +03:00
djcb eb7888cdb1 mu4e: support mu indexing performance options
Add two variables mu4e-index-cleanup and mu4e-index-lazy-check, which
correspond to mu index option --lazy-check and --nocleanup.

Extend the mu server protocol a bit to handle this.

The defaults keep things behaving as they done before.
2016-07-23 21:33:10 +03:00
djcb cf9970ccd4 mu: server: add compose-type 'resend'
Add a type 'resend', for resending existing messages.
2016-02-16 08:28:59 +02:00
Maximilian Matthé 784d8c8cfe mu: smaller string chunkss for server on Cygwin
Add check for CYGWIN and in this case only print out 64K-sized
string-chunks from mu server.

Fixes issue #764.

fixup
2016-01-15 21:07:35 +02:00
djcb 02620af4c2 mu/mu4e: improve in contacts completion
mu: cleanup server side; make sure not to loose 'personal' flag when
    seeing same contact in non-personal context
mu4e: tweak the sorting algorithm a bit to take the personal flag into
    account
2015-12-30 15:33:27 +02:00
Ævar Arnfjörð Bjarmason 049e182e0c Correctly spell the word "quitting" in the protocol & documentation 2015-12-09 22:40:52 +01:00
djcb 26955ebe78 mu4e: remove duplicated line 2015-11-02 09:05:42 +02: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
Sasha Kovar 17dbee957a mu-cmd-server.c: quote msgid in query 2015-01-08 12:45:02 -08:00
Foivos S. Zakkak 925bc6a15c Fix forwarding of gpg encrypted mails (#186) 2014-10-15 03:12:29 +03:00
Foivos S. Zakkak c5fd36a67f Fix replying to gpg encrypted mails (#186) 2014-10-15 02:42:57 +03:00
djcb 182974bbc7 mu-cmd-server: fix compilating warning (BSD_SOURCE)
Fedora-21's gcc started complaining about this
2014-10-11 14:03:31 +03:00
Foivos S. Zakkak 51037be7fb Fix #186 Part 3
This patch fixes the attachment extraction (open, save, temp) when using
`mu4e`.  `mu4e` used to not notify the mu-server about the
mu4e-decryption-policy.  As a result mu-server did not decrypt the
attachments for extract, open, or temp.
2014-10-10 18:34:57 +03:00
djcb e0e0c0c3ac * mu-cmd-server: set default to 500 results (thanks to Frank Terbeck) 2013-12-01 20:40:06 +02:00
djcb 9ddb7510b9 * mu: initialize randomness in mu-cmd-server 2013-10-20 16:57:00 +03:00
djcb 7fe37334b5 * cosmetics 2013-06-24 22:44:36 +03:00
djcb bfe74d1d11 * mu: add the backend for freq information for contacts 2013-06-16 23:02:19 +03:00
djcb f4d3eb2d7a * mu-cmd-server: add support for moving without renaming 2013-05-27 03:44:46 -07:00
djcb 0cb5f9145e * mu-cmd-server: don't raise errors on empty lines 2013-05-22 00:06:51 +03:00
djcb 2f5d6e246b * mu: update the server command and (use 'cmd:' for commands) 2013-05-20 05:11:49 +03:00
djcb 4174ac7ed2 * fix a few compiler warnings 2013-05-13 22:30:27 +03:00
djcb 5d069e786f * lib: updates for mu-msg-field / mu-str updates 2013-05-13 00:03:47 +03:00
djcb 855e81db99 * update copyright years 2013-03-30 11:32:07 +02:00
djcb afc1258c10 * updates for MU_QUERY_FLAG_THREADS in mu_query_run users 2012-12-27 11:09:37 +02:00
djcb c23eee7b4c * fix compiler warning 2012-12-26 09:41:40 +02:00
djcb ba6955be21 * small updates for mu_query API changes 2012-12-25 17:34:57 +02:00
djcb 58f5e39d34 * add support for finding related messages to mu-find, mu4e, this does *not*
include the actual implementation though
2012-12-25 11:58:32 +02:00
djcb edb73a742f * mu-cmd-server: fix full-search vs limited-search 2012-12-20 23:34:34 +02:00
djcb 7053582dd7 * add skipping-dups support to mu4e 2012-12-17 22:30:26 +02:00
djcb 2f9dd78bb0 * add query flags (which match msgiterflags) to mu_query_run, update callers 2012-12-16 15:08:34 +02:00
djcb 0e204fece4 * small cleanup of the retagging support 2012-12-09 15:07:21 +02:00
Abdó Roig-Maranges 2803b43f63 Make cmd_add output update information
This way, if a message changes, I can use add to force reindexing it, and notify
mu4e about the changes.
2012-12-07 00:23:56 +01:00
djcb 6351a3906b * mu-cmd-server: use mu_util_supports 2012-10-18 12:25:46 +03:00
djcb 5b8de3a97b * mu4e: advertise guile support 2012-10-17 23:36:35 +03:00
djcb 6f3c738076 * mu-cmd-server: minor 2012-10-03 10:37:02 +03:00
djcb 8b5664fcfc * mu-cmd-server.c: small fixes / cleanups 2012-09-28 17:09:23 +03:00
djcb af5ad981a2 * some line35 fixes 2012-09-27 21:52:54 +03:00
djcb 506f26a342 * mu4e: unbreak attachments in forwarded messages 2012-09-25 15:20:26 +03:00