Commit Graph

98 Commits

Author SHA1 Message Date
djcb 82e7ba051f mu4e: add mu4e-view-fetch-url for downloading URLs
Add mu4e-view-fetch-url for fetching (downloading) URIs linked to in
e-mails. Add the 'f' keybinding for this, and document it.

Based on code by inigoserna.
2016-01-10 13:06:10 +02:00
djcb 144e2a8f1b mu4e: Contact completion - better sorting / display
Improve the contact-sorting algorithm, and make it better cooperate with
completion-at-point functions.

Also deal better with broken rewritten contacts, and document how
rewriting should done (docstrings and reference doc).
2016-01-09 21:27:52 +02:00
djcb b373f8e5f0 mu4e: context policy tweaking
As discussed in issue #751, mu4e should tried to accommodate some
different ways of choosing the context.

We add a new policy `ask-if-none', that will only query the user if
there is no context yet; this is the new default for
mu4e-context-policy, i.e. what happens when entering the main view.

The default policy for mu4e-compose-context-policy is now `ask',
i.e. ask if none of the contexts match.

The idea is for the defaults to ask when we don't know a context, and we
can't determine one using the match functions; this is probably the
least confusing. When user gets annoyed by too many question, they can
tweak the behavior to their liking. I.e. 'ask questions first, shoot
later'

Document all of this.
2016-01-03 13:29:19 +02:00
djcb a085c881ef mu4e: don't change context at startup when there is one
Since people often go start/stop mu4e, we shouldn't try to pick a
default context if one is already set.
2015-12-30 17:39:59 +02:00
djcb f645a12075 mu4e: improve sorting of contacts for completion
set up the extra machinery for making sure emacs does not try to re-sort
our already-sorted contacts.... Also try to improve the sorting strategy
itself.
2015-12-29 18:53:57 +02:00
djcb 6fa9556aa8 mu4e: improve mu4e-contact-rewrite-function
Allow mu4e-contact-rewrite-function to return nil to remove a
contact. Improve documentation.
2015-12-26 13:26:26 +02:00
djcb ed1c7edba3 mu4e: some more context tweaking
Fix some typo, change default for startup to pick-first.
2015-12-24 16:03:55 +02:00
djcb 113c024632 mu4e: implement context-policies
Allow setting a policy about what context to choose when starting mu4e
and composing a message. Basically:

When you have defined contexts and you start mu4e it decides which
context to use based on the variable `mu4e-context-policy';
similarly, when you compose a new message, the context is determined
using `mu4e-compose-context-policy'.

These policies can be one of the following:
- a symbol always-ask: unconditionally ask the user what context to pick

The other choices only apply if none of the context matches (i.e., if
none of the contexts' match-functions returns t:

- symbol ask: ask the user
- a symbol pick-first: pick the first context
- nil: don't change the context
2015-12-23 22:01:51 +02:00
djcb ddcd2f39b5 mu4e: more support for fancy-chars
Re-simplify `mu4e-use-fancy-chars` to a boolean again; add some extra
mark-chars (big character, so they are easily visible). Document it.
2015-12-15 09:07:17 +02:00
djcb 1a33a710db Add `mu4e-view-body-face`
This allows setting a custom face for the message body, e.g., if you
prefer a proportional font for the body:

    (set-face-attribute 'mu4e-view-body-face nil :font "Liberation Serif-10")
2015-10-13 08:03:56 +03:00
djcb f6b596d292 Documentation: e-mail address are case-sensitive 2015-10-07 11:45:06 +03:00
Daniele Pizzolli db65c824d0 Fix typo from higl.* to highl.* 2015-09-22 10:10:47 +02:00
Florian Lindner 9780f076f1 Make usage of fancy chars configurable. 2015-09-10 12:32:49 +02:00
djcb 4209eeef8c mu4e: don't use obsolete faces
Fixes #645.

Keep the ones that are still in use though.
2015-08-12 20:52:55 +03:00
djcb cc4bb1abcd mu4e: fix typo 2015-06-14 11:40:43 +03:00
djcb 041a79fdb5 mu4e: add NEWS(.org) as a main menu item 2015-06-09 21:08:02 +03:00
djcb 910e41e2fe mu4e: experimental :thread-subject field (one subject per thread)
with :thread-subject field, we attempt to only show one subject per
thread, somewhat like mutt does it.

the current implementation is straightforward, but does not take into
account whether the thread-subject is currently visible on the screen,
which is a bit tricky to implement
2015-03-22 11:49:57 +02:00
djcb 33804f63d8 mu4e: add example for mu4e-contact-rewrite-function 2015-03-15 13:45:28 +02:00
Stephen Eglen 3239a69fc5 Update mu4e-vars.el
typo
2015-02-25 09:50:55 +00:00
Alex Bennée 6bde425aa4 mu4e-vars: fix reference to obsolete mu4e-my-email-addresses
This variable has been replaced with mu4e-user-mail-address-list.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
2015-01-15 09:23:30 +00: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
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
Oliver Dunkl 4964fc721d Update mu4e-vars.el 2014-10-12 10:39:07 +02:00
Oliver Dunkl ce0006721a Add different face attribute for the mode-line
There is an additional face attribute for the mode-line.
2014-10-02 06:31:10 +02:00
djcb d042d8be89 Document that mu4e-maildir must not be a symlink ('fixes' #453)
mu doesn't support symlinks; document this. You can use hardlinks
instead of course.
2014-09-23 07:52:15 +03:00
djcb 8b775ab238 * mu4e: update the contact-rewriting code a bit:
- make the default nil rather than a dummy (identity) function, for
    speed
  - don't use 'canonical' but the 'rewrite' which is a bit more general
2014-04-06 17:51:12 +01:00
joost 86f0934f7b solves #383 2014-03-28 10:24:29 +01:00
Thierry Volpiatto 8394e6069f * mu4e/mu4e-view.el (mu4e-mark-region-code): New function to highlight region marked with `message-mark-inserted-region'.
* mu4e/mu4e-vars.el (mu4e-region-code): New face.
2014-03-24 09:17:25 +01:00
Thierry Volpiatto 3835c2e45e * mu4e/mu4e-utils.el (mu4e~fontify-cited): Use string-width.
* mu4e/mu4e-vars.el (mu4e-cited-regexp): Improve it.
2014-03-02 20:58:49 +01:00
Thierry Volpiatto 1e8f97b961 * mu4e/mu4e-utils.el (mu4e~fontify-cited): Simplify.
* mu4e/mu4e-vars.el (mu4e-cited-regexp): Simplify regex and use a group to match the >*.
2014-03-02 08:19:33 +01:00
sabof e2c8bff298 Moved citation regexps to a variable 2014-02-05 20:24:05 +00:00
djcb d28950cf48 * fix typo 2014-01-25 20:08:40 -08:00
djcb 9c8101d949 * mu4e: centralize some of the fontification code; cleanup signature support 2013-10-20 15:41:47 +03:00
djcb b53d2ec0c2 * mu4e: make the faces a bit more generic 2013-10-19 12:05:05 +03:00
djcb 92158cfdd4 * mu4e: add hooks mu4e-headers-found-hook and mu4e-update-pre-hook, document them. 2013-10-13 21:44:47 +03:00
djcb f7077285fa * mu4e: don't suggest helm-comp-read for completing-read 2013-10-09 08:16:52 +03:00
djcb 7ea092cbed * mu4e: fix docstring 2013-10-05 23:56:29 -07:00
djcb 4b0cb4d1df * mu4e: allow for custom header fields (see `mu4e-header-info-custom') 2013-10-05 10:09:26 -07:00
djcb a23f1a4f7c * mu4e: enable showing the message-id in the view (and even the headers) 2013-09-28 10:36:18 -07:00
djcb 11e8850e58 * update doc for mu4e-completing-read-function 2013-09-18 08:54:57 +03:00
Stuart Hickinbottom 6e8e9ec44a New flexible method of customising completing-read
Added the customisation option 'mu4e-completing-read-function' which can
be used to choose which method of input-with-completion will be used by
mu4e. This variable is set to the function which mu4e will use.

By default, mu4e will use ido (via 'ido-completing-read'), but any
compatible completing-read function can be used instead. Interesting
choices would include 'helm-comp-read' for Helm-based completion, and
'completing-read' for the built-in basic completion system.
2013-09-12 22:42:45 +01:00
djcb 6a098c7be3 * update some comments 2013-08-17 11:54:22 +03:00
djcb beffb8072b * mu4e: add variable mu4e-hide-index-messages 2013-08-11 14:37:19 +03:00
djcb c7c18505fc * mu4e: update documentation 2013-07-06 10:47:15 +03:00
djcb 72e6fb997a * mu4e: make the byte-compiler happy 2013-06-29 13:07:32 +03:00
djcb ebc718a674 * mu4e: update documentation on queries / bookmarks as bit 2013-06-16 11:54:08 +03:00
djcb 3c67aa6591 * mu4e: fix a few compiler warnings / typos 2013-06-03 21:09:20 +03:00
djcb 08748f2e28 * mu4e: add mu4e-change-filenames-when-moving customization 2013-05-28 04:34:49 -07:00
djcb 8af771fb76 * cosmetic 2013-05-15 00:42:40 +03:00
djcb 5b8cc54c69 * mu4e: correctly apply 'trashed' face (headers); make face selection a bit more explicit 2013-05-05 12:24:15 +03:00