1
0
mirror of https://github.com/djcb/mu.git synced 2024-07-01 08:11:06 +02:00
Commit Graph

1001 Commits

Author SHA1 Message Date
djcb
02e651a8fc mu4e: rework html2text conversion
Rework the conversion from html to text; the functions doing that now
expect to receive one parameter, the message, and return the converted
message.

In the old way, the function got invoked in a buffer with html text, and
were expected to modify it to text. This old way is still supported for
backward compatibility.
2017-01-24 08:27:21 +02:00
djcb
edcae719e4 mu4e: pass msg to html2text functions
Add a `msg' parameter to html2text functions, but for backward
compatibility, introspect the functions, and if they don't support it,
use the old ways of running the function in the context of a buffer with
the html text.
2017-01-22 22:20:08 +02:00
djcb
014d33d050 mu4e: document `mu4e-headers-hide-predicate'
Add to the FAQ.
2017-01-22 22:12:40 +02:00
djcb
1c4caf198d mu4e: try to honor `message-cite-reply-position'
Try to respect gnu's `message-cite-reply-position' by placing the cursor
in the right position.
2017-01-22 22:11:30 +02:00
djcb
4859cb802f mu4e: headers: don't clear too soon
Try burying header buffers a bit less aggressively.
2017-01-18 00:13:02 +02:00
Dirk-Jan C. Binnema
6446d62c15 Merge pull request #1008 from KrzysiekJ/forward-as-attachment
mu4e: Add possibility to forward messages as attachments
2017-01-16 23:54:11 +02:00
djcb
e0c21252c9 mu4e: clean up update handling
When we have a mu4e-headers window open and there's an update, try to
refresh it. If there's no open window, don't.
2017-01-16 23:45:14 +02:00
djcb
52ef84ccab mu4e: mu4e-main: don't use obsolete function 2017-01-16 23:44:34 +02:00
djcb
600955eebc mu4e: rename msg->message in mu4e-message-changed-hook 2017-01-15 15:41:16 +02:00
djcb
e9b71af547 mu4e-headers: default to include-related / skip-duplicates
Probably better default options for most users.
2017-01-14 16:51:50 +02:00
Krzysztof Jurewicz
f060cb8196 mu4e: Add possibility to forward messages as attachments
This commit adds a global variable
mu4e-compose-forward-as-attachment. To enable choosing forwarding
method on a per-message basis would probably require either:

• changing the mu server backend so that it distinguishes between
  inline forwarding and forwarding as attachment;
• changing the mu server backend so that it doesn’t return attachments
  at all and making both inline and as attachment forwarding via
  MIME (and also making mu4e actually display MIME-enclosed inline
  emails).
2017-01-13 16:30:25 +01:00
djcb
f40ffa2464 mu4e: split off mu4e-proc-mu
Move mu-specific backend functions into separate file.
2017-01-03 17:49:31 +02:00
djcb
ec064c5f9e mu4e: cosmetic
Clear up some overly long lines.
2017-01-03 17:45:03 +02:00
Josiah Schwab
de2329dbde Replace "focus" with "context"
There were a handful places, primarily in the main menu, where the
word "focus" seemed to be used as a synonym for "context".  This
changes all of those instances to "context".
2017-01-03 17:41:21 +02:00
Sébastien Le Callonnec
74b2c1de0a mu4e: Improve mu4e manual.
Fix some typos, improve formatting, and move down `@documentencoding`
otherwise causing issues on the PDF cover.
2017-01-03 17:38:23 +02:00
Dirk-Jan C. Binnema
f49e808160 Merge pull request #993 from dzop/master
mu4e: Use re-search-forward to find message signatures
2016-12-28 13:40:56 +02:00
Nathaniel Nicandro
9c884ee498 Use re-search-forward to find message signatures 2016-12-27 12:27:39 -06:00
djcb
800cb0e164 mu4e: update documentation on changing sorting params 2016-12-27 17:08:02 +02:00
Dirk-Jan C. Binnema
66f550b210 Merge pull request #985 from thierryvolpiatto/improve_attachments
mu4e: Add some improvements in attachment actions.
2016-12-27 17:01:33 +02:00
djcb
b6985e13cb mu4e: killing instead of interrupting update process
Rename mu4e-interrupt-update-mail into mu4e-kill-update-mail, and it
kill rather than update the process.

Add backward-compat alias.
2016-12-27 16:52:20 +02:00
Thierry Volpiatto
3e865ca71f Add some improvements in attachment actions.
* mu4e/mu4e-view.el (mu4e-view-attachment-action):
Handle multi save in mu4e-view-attachment-action.

* mu4e/mu4e-view.el (mu4e-view-attachment-actions):
Make mu4e-view-attachment-actions a defcustom and add some options.

New user variable mu4e-view-attachment-assoc.

* mu4e/mu4e-view.el (mu4e-view-attachment-assoc): New.
(mu4e-view-open-attachment-with): Use it.
2016-12-19 09:32:17 +01:00
Sébastien Le Callonnec
c1c7bf44cf mu4e: Fix outdated docstring for `mu4e-headers-actions' 2016-12-18 10:38:50 +00:00
djcb
50ba087b7a update build instructions 2016-12-13 23:03:25 +02:00
Jun Hao
59dfcb5ac5 mu4e: add mu4e-msg-changed-hook to mu4e-index-updated-hook globally 2016-12-11 21:22:44 +08:00
Dirk-Jan C. Binnema
c45cfadb71 Merge pull request #962 from titaniumbones/fix-other-headers
mu4e: force use of strings for other-header in mu4e~compose-mail
2016-12-04 18:11:45 +02:00
Stig Brautaset
764b205fe9 mu4e: redraw menu after context switch
This is useful if you change e.g. bookmarks in the context vars and want your
menu to reflect that.
2016-12-03 12:18:07 +00:00
Matt Price
ad738b88b0 force use of strings for other-header in mu4e~compose-mail
org-mime and potentially other users of `compose-mail' pass a parameter
`other-headers', an alist of the form ((symbol . string)).
`mu4e~compose-mail' sends this parameter to message-add-header, which
appears to expect a string instead.  We therefore loop through
other-headers and instead pass a string to message-add-header for each
element of other-headers.
2016-11-30 14:55:23 -05:00
djcb
68fd3b71d3 mu4e: fix toggling between html/text 2016-11-27 14:34:50 +02:00
djcb
dfd01c40f9 mu4e: doc: fix typo 2016-11-26 16:56:12 +02:00
djcb
c5a93427e3 mu4e: doc: clarify available msg properties
The text was a bit obscure.
2016-11-26 12:34:46 +02:00
djcb
34cd624023 mu4e: fix some defcustoms
There weren't quite right.
2016-11-24 00:33:06 +02:00
Dirk-Jan C. Binnema
1d7bacc0ce Merge pull request #955 from stig/patch-1
mu4e: Fix typo / grammar in mu4e-html2text-command doc
2016-11-23 23:43:43 +02:00
djcb
217e06641d mu4e: minor cleanup in docstrings 2016-11-23 23:26:12 +02:00
Stig Brautaset
786e02c67f Fix typo / grammar in mu4e-html2text-command doc 2016-11-21 22:59:24 +00:00
djcb
b2cfc02010 mu4e: mark attachment-actions non-interactive
mu4e-view-pipe-attachment, mu4e-view-open-attachment-with and
mu4e-view-open-attachment-emacs are not interactive, so don't mark them
as such.
2016-11-12 14:00:11 +02:00
djcb
01fe899c37 mu4e: better error for non-supported header fields
Some fields (eg. :attachments and :user-agent) require a full message
and are not supported in headers-mode. Document this and give a clearer
error message when they are added to `mu4e-headers-fields'.

Fixes issue #933.
2016-11-05 12:42:28 +02:00
djcb
e294016e85 mu4e: fix typo in manual
Thanks to Eduardo Mercovich.
2016-11-05 12:03:02 +02:00
Dirk-Jan C. Binnema
b981a7804f Merge pull request #934 from antoine-levitt/master
mu4e: Don't erase global-mode-string with context label, but add to it
2016-11-05 10:52:35 +02:00
djcb
e1092c5f27 mu4e: restore mu4e-compose-type in compose-buffer
Seems the `mu4e-compose-type' is always nil when we enter the
compose (it is set when executing the pre-hooks though). It can be
useful in the compose buffer as well, so restore it.
2016-11-05 10:18:23 +02:00
Antoine Levitt
c0726d92a0 do not rename current message buffer if the name has not changed 2016-10-31 16:28:25 +01:00
djcb
d6337ade1c mu4e: index: only clear echo area when asked to
In `mu4e-hide-index-message`-mode, don't clear the echo area.
Fixes #925.
2016-10-29 11:50:33 +03:00
djcb
739013d031 mu4e: allow maildir as sort-field 2016-10-26 22:36:40 +03:00
Allen
779b50f0f0 Fix parentheses grouping typo 2016-10-25 23:37:34 -07:00
Antoine Levitt
bc13cfda35 dont erase global-mode-string with context label, but add to it 2016-10-26 08:20:25 +02:00
djcb
87ab21702e mu4e-mark: remove debug message 2016-10-25 20:19:19 +03:00
djcb
9a3ff05192 mu4e: handle overflow for plaintext-ratio-heuristic
Handle overflow when multiplying
mu4e-view-html-plaintext-ratio-heuristic by most-positive-fixnum.
2016-10-03 21:27:06 +03:00
djcb
82dc1aeb46 mu4e: use mu4e-user-agent in bbdb example 2016-09-30 09:16:07 +03:00
Anders Johansson
b885dd308e Only call old org-link API if new unavailable 2016-09-13 15:07:27 +02:00
Dirk-Jan C. Binnema
8d345ee17f Merge pull request #917 from kkholst/master
mu4e: For the upcoming org-mode version 9 org-add-link-type is obsolete, so…
2016-09-12 00:02:18 -07:00
djcb
c419bca577 mu4e: set mu4e-compose-type earlier
Set mu4e-compose-type before invoking the "pre" hook, so that it can be
used there.
2016-09-06 18:29:05 +03:00