Commit Graph

3645 Commits

Author SHA1 Message Date
djcb fcdb2c1a04 mu4e: clean up address completion 2014-11-30 16:29:10 +02:00
Jean-Philippe Bernardy 28baa5a778 Fixed typo 2014-11-30 13:33:30 +01:00
Jean-Philippe Bernardy f6e5f3df7f pass the message structure to the mark actions
This allows to re-tag a message in a mark action.

Two examples of what one can do with this stuff:

1. G-mail archiving:
(archive
   :char       "a"
   :prompt     "archive"
   :show-target (lambda (target) "archive")
   :action      (lambda (docid msg target)
                  (mu4e~proc-move docid nil "-N")
                  (mu4e-action-retag-message msg "-\\Inbox")))

2. Tagging:
(tag
  :char       "g"
  :prompt     "gtag"
  :ask-target (lambda () (read-string "What tag do you want to add?"))
  :show-target (lambda (target) target)
  :action      (lambda (docid msg target)
                 (mu4e~proc-move docid nil "-N")
                 (mu4e-action-retag-message msg (concat "+" target))))
2014-11-30 13:33:29 +01:00
Jean-Philippe Bernardy a6c4785577 fix the target display
show the target when the shown-target is non-nil (not the target).
2014-11-30 13:33:29 +01:00
djcb 0b6ab46675 mu4e: add few more header-functions to mu4e-view 2014-11-30 11:49:41 +02:00
djcb 664431bf8c mu4e: improve mail-retrieval error handling
Add two new customization variables:
  mu4e-index-update-error-continue
  mu4e-index-update-error-warning

With these, we can configure what happens when the mail-retrieval
program finishes with a non-zero exit code.

Make the default to warn but continue; it seems quite some users got
bitten by the old behavior of not updating after an error (which may
only be a pseudo-error). offlineimap/mbsync do not document their exit
codes very well, unlike fetchmail.

Also update manual for this.
2014-11-30 11:33:31 +02:00
djcb 46425c201b Merge branch 'master' of github.com:djcb/mu 2014-11-28 08:56:24 +02:00
djcb 8991490262 mu4e: support jumping to next, previous unread message
mu4e-headers-next-unread
mu4e-view-headers-next-unread

Use key-bindings ] and [ to go to next, previous unread message.
2014-11-28 08:54:08 +02:00
Dirk-Jan C. Binnema bb902a821b Merge pull request #524 from jyp/master
Clarify the computation of mark targets
2014-11-27 21:37:33 +02:00
Jean-Philippe Bernardy 818eedf59f mu4e: marks: clarify the way targets are obtained.
:get-target is split into:
- :ask-target (run once per bulk operation)
- :dyn-target (run once per message)

A side benefit is that the existence of the target of a move is not
checked for every message when doing bulk moves.
2014-11-27 19:16:05 +01:00
Jean-Philippe Bernardy 3981f5412f documentation fix 2014-11-27 19:16:05 +01:00
Jean-Philippe Bernardy ad8488368b always recompute the dynamic target for a mark
This is a bug fix. Previously, recomputing was done only for refile,
which is wrong: trash target can also be dynamic, and we want to allow
the user to configure more dynamic targets.
2014-11-27 19:16:05 +01:00
djcb e434ea7680 mu4e: update documentation 2014-11-27 01:08:54 +02:00
djcb 8f2d4f38d5 configure.ac: bump version to 0.9.11 2014-11-27 01:08:29 +02:00
Dirk-Jan C. Binnema 2eb87daa24 Merge pull request #523 from jyp/master
mu4e: put the definitions of marks in a single structure
2014-11-27 01:05:12 +02:00
Jean-Philippe Bernardy a1181aa096 Put the definitions of marks in a single structure
This commit puts all what defines a mark (how to display, how to handle
targets, what action to apply, ...) in a single entry of a list. The list
is stored in a variable.
This should allow for customization of marks.
2014-11-26 21:39:17 +01:00
djcb 1022c64dd9 mu4e: add mu4e-headers-find-if-next, mu4e-headers-next-unread
In the headers-view, allow for movig to next and previous
unread/untrashed messages using tab/backtab.

Built on top of the convenience function mu4e-headers-find-if-next.

Update docstrings.
2014-11-25 07:38:07 +02:00
djcb 5cf4ab69d5 Merge branch 'master' of github.com:djcb/mu 2014-11-23 14:53:02 +02:00
Titus von der Malsburg ab9a7c3a6d mu4e-shr2text does not anymore retrieve images.
When HTML emails contain references to remote images, retrieving these images
leaks informationo.  For example, the sender can see when I openend the email
and from which computer (IP address).  For this reason, it is preferrable to
not retrieve images.
2014-11-23 14:52:31 +02:00
Dirk-Jan C. Binnema 5287b151b2 Merge pull request #518 from zakkak/docUpdate
mu4e: Add documentation about mu4e-compose-dont-reply-to-self
2014-11-23 14:27:52 +02:00
Foivos S. Zakkak c9a14fa096 Add documentation about mu4e-compose-dont-reply-to-self 2014-11-22 19:01:05 +02:00
djcb 8f9499c0c9 mu4e: update mu4e-headers-find-if documentation 2014-11-22 17:27:15 +02:00
djcb 7eac4ac918 mu4e: add mu4e-headers-find-if
This function can be used to jump to some message in the headers list
that matches a certain pattern.
2014-11-22 13:23:29 +02:00
djcb ddc3297ce9 mu4e: update documentation with some examples 2014-11-22 13:23:01 +02:00
djcb 80b4c17edc mu4e: make it easy to use shr for viewing rich text message
new emacs versions have the shr html renderer; we can use it to render
rich text messages. And some snippet to do so, and document it.
2014-11-01 12:41:55 +02:00
djcb 64738b8d4f mu4e: goto point-min after showing main screen 2014-10-30 21:02:18 +02:00
djcb fd6df0848c mu4e.texi: /bin/sh does not like sauron-msg
Use sauron_msg instead
2014-10-30 08:16:13 +02:00
djcb 48d42ccf75 Merge branch 'master' of github.com:djcb/mu 2014-10-26 21:22:59 +02:00
djcb 8305c2e147 mu4e: add note about overly long header lines 2014-10-26 21:21:51 +02:00
Dirk-Jan C. Binnema 3062dc1a39 Merge pull request #501 from zakkak/master
Add uncrustify configuration for C code
2014-10-21 13:01:59 +03:00
Foivos S. Zakkak bcdc1aeba5 Add uncrustify configuration for C code 2014-10-20 15:00:53 +03:00
djcb 18dcebd820 Update HACKING 2014-10-19 18:48:48 +03:00
djcb d368c0c3f3 mu4e: some documentation updates 2014-10-19 12:04:11 +03:00
djcb c6dd538975 mu-msg-part.c: some cosmetic changes 2014-10-19 11:38:49 +03:00
Dirk-Jan C. Binnema 260fdb8123 Merge pull request #500 from zakkak/decryption_field
Add decryption field
2014-10-19 11:19:35 +03:00
Foivos S. Zakkak aaef9493cd Fix signatures' detail box for encrypted messages
In the case of encrypted and signed messages the signature field's
details box did not work due to missing flags to the mu verify command.
This commit fixes this issue.
2014-10-19 03:53:32 +03:00
Foivos S. Zakkak 8f8bc52023 Revert "Do not handle signature parts after verification"
This reverts commit 6e9b9ad2d0.

Unfortunately the reverted commit breaks the Signature field for
encrypted and, at the same time, signed messages.

TODO: details button in the Signatures field does not work for such
cases because the signature is encrypted.

Conflicts:
	lib/mu-msg-part.c
2014-10-19 03:39:32 +03:00
Foivos S. Zakkak 2d843ca887 Add Decryption field
Add a decryption field of the form

Decryption: 2 part(s) decrypted 1 part(s) failed

Meaning that 2 encrypted mime parts where successfully decrypted and 1
part failed.  Note that the number 2 refers to the number of
successfully decrypted mime parts and not the number of successfully
decrypted encryptes multiparts, i.e., if an encrypted multipart
contains 4 parts and decryption is successful the field will be

Decryption: 4 part(s) decrypted

TODO: Add details button listing the names and indexes of the
decrypted (or not) mime-parts
2014-10-19 03:27:58 +03:00
Dirk-Jan C. Binnema d412cd84ec Merge pull request #499 from zeckalpha/patch-1
mu4e: Extra quote in mu4e smtp example configuration.
2014-10-18 20:25:11 +03:00
Kyle Marek-Spartz ce9b831772 Extra quote in mu4e smtp example configuration. 2014-10-18 11:53:53 -05:00
Dirk-Jan C. Binnema ae75060b6a Merge pull request #498 from zakkak/skip_signatures
Do not handle signature parts after verification
2014-10-18 13:16:44 +03:00
Dirk-Jan C. Binnema 98e105063d Merge pull request #497 from zakkak/failed_decryption
Improve decrypt failure handling
2014-10-18 13:16:34 +03:00
Foivos S. Zakkak 6e9b9ad2d0 Do not handle signature parts after verification
Since signatures are not listed as attachments there is no reason to
handle them after the verification.
2014-10-18 12:44:33 +03:00
Foivos S. Zakkak a79cd23cd1 Improve decrypt failure handling
On failure to decrypt, list the encrypted part as an attachment
2014-10-18 12:33:20 +03:00
Dirk-Jan C. Binnema 47db3d8bc3 Merge pull request #495 from zakkak/master
Fix #494. Start indexing attachments from 1 instead of 0
2014-10-17 17:24:48 +03:00
Foivos S. Zakkak c40522b632 Fix #494. Start indexing from 1 instead of 0 2014-10-17 15:53:32 +03:00
Dirk-Jan C. Binnema baedf6b186 Merge pull request #492 from zakkak/master
Fix save for attachments
2014-10-15 14:56:53 +03:00
Foivos S. Zakkak 0b52878920 Fix save for attachments
Bug introduced with 51037be7fb
2014-10-15 14:32:20 +03:00
Dirk-Jan C. Binnema 6bbd8739ae Merge pull request #491 from zakkak/master
Fix replying and forwarding of messages
2014-10-15 08:35:28 +03:00
Foivos S. Zakkak 925bc6a15c Fix forwarding of gpg encrypted mails (#186) 2014-10-15 03:12:29 +03:00