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

1300 Commits

Author SHA1 Message Date
djcb
d106e0e03b mu4e-view: ensure buffer is named *Article* (gnus mode)
Some of the gnus internal code depends on that.
2018-06-13 22:24:47 +03:00
djcb
9bf1670aa1 mu4e: work-around for missing contacts 2018-06-13 18:19:13 +03:00
djcb
acb68f5551 mu4e: disable some keybindings for the gnus backend 2018-06-13 16:58:41 +03:00
djcb
d98e78548c mu4e: re-draw speedbar when context changes
Folders may have changed.
2018-06-13 14:48:22 +03:00
djcb
0140d433a1 mu4e: update documentation 2018-06-13 13:22:47 +03:00
djcb
36ce14e705 mu4e: view/gnus: support verifying signed mails
Hook up with gnus' verification for signed mails.
2018-06-13 13:22:47 +03:00
Dirk-Jan C. Binnema
4fb5d11d9f
Merge pull request #1243 from avar/render-urls-with-space-before-number
mu4e: view: render URLs as "<url> [%d]" not "<url>[%d]"
2018-06-12 09:23:14 +03:00
Ævar Arnfjörð Bjarmason
6c8aec38be view: render URLs as "<url><zwp>[%d]" not "<url>[%d]"
When we render URLs like https://gnu.org/[1] right-clicking on them in
e.g. GNOME Terminal will also copy the "[1]" as well as the URL,
inserting zero-width-space[1] between the two avoids this.

I know about "g" (mu4e-view-go-to-url), but sometimes I want to open a
URL in a different browser, or copy it into a non-Emacs program. This
makes that easier. I think this improves the UI at a very trivial cost
to users that don't care about this use-case.

I could make this configurable, but unless someone vehemently objects
to this I don't see the point of not just making it the default.

In GNOME Terminal a ZWS is rendered simply as a space, and
copy/pasting works as expected, but in Emacs's GTK GUI there's no
space between the two.

This was initially a plain ASCII space character, but djcb preferred a
ZWP, and this works as well.

1. https://en.wikipedia.org/wiki/Zero-width_space
2018-06-11 22:10:56 +02:00
djcb
088064d5e1 mu4e: define the view-mode when needed
Define the view-mode (gnus or internal) just before it's needed. This
ensures that (when in gnus mode) it's really a gnus-article-mode
derivative, so more of the gnus specifics work.
2018-06-08 10:01:55 +03:00
djcb
ee6e91da9b mu4e: auto decode quoted-printable, base64 (gnus)
Set things up so gnus article mode decodes base64 and quoted-printable
messages automatically.

Don't try to set up URL links.
2018-06-07 13:13:37 +03:00
djcb
d01bdfa7b4 mu4e: add decoding support for gnus' article-mode
Decode Gnu's articles as expected; thanks to Lars Ingebrigtsen for his
advice.
2018-06-05 17:42:09 +03:00
Alex Bennée
79774d4d1b mu4e/mu4e-actions: re-factor apply-patch/mbox
The old code directly hacked around with ido-read-directory to achieve
its smarts. However other completion methods are available so this
re-factors the code to use an appropriately predicated completing-read
with a new history variable which is just used for patch application.
2018-05-25 18:26:59 +01:00
Alex Bennée
67b9ef8384 mu4e/mu4e-actions: optional apply signoff
Maintainers often want to apply patches with their signoff. Support
this with an optional argument.
2018-05-21 18:56:44 +01:00
Alex Branham
39ec6a0417
Fix call to make-obsolete-variable 2018-05-18 15:52:41 -05:00
djcb
b9527245a8 mu4e: minor doc update 2018-05-14 15:44:23 +03:00
Marcelo Henrique Cerri
94e9795d9d mu4e: Do not assume orphan messages can't appear in the middle of a thread
Do not clear the thread state when an orphan message is found.
2018-05-03 08:27:20 -03:00
Marcelo Henrique Cerri
26cd0a59ff mu4e: use special prefixes to describe orphan threads
Re-use `mu4e-headers-thread-orphan-prefix' for the prefix for the
first sibling in the orphan thread and add
`mu4e-headers-thread-single-orphan-prefix' as the prefix of single orphans.
2018-05-02 23:31:33 -03:00
Marcelo Henrique Cerri
d8ca5a3d7b mu4e: remove reference to mu4e-headers-new-thread-style
The docs for the prefix variables mention the variable
"mu4e-headers-new-thread-style" that was removed on a previous
iteration.
2018-05-02 23:04:50 -03:00
djcb
35951da4b5 mu4e: doc: mention aquamacs-autoface-mode
See issue #1230.
2018-05-01 13:12:23 +03:00
djcb
cd649efb6b mu4e: re-view after marked-as-read
When we mark a message as read, we get an (:update ... ) with the
marked-as-read message (ie., moved from new/ to cur/).

The (:update ...) however does _not_ include extracted images etc.; so
images in unread message would not be visible at that time. To fix this,
to another (:view ...) and extract the images etc.

Thanks to tangxinfa for pointing this out.
2018-04-25 11:35:52 +03:00
djcb
bef3113c09 mu4e: factor out mu4e~decrypt-p
Factor out defun to get decryption decision, so we can use it from
elsewhere.
2018-04-25 11:35:52 +03:00
djcb
84afa94fb2 mu4e: do not mark mu4e~view-msg as buffer-local
It's unnecessary.
2018-04-25 11:35:52 +03:00
Dirk-Jan C. Binnema
aeb6718da6
Merge pull request #1161 from gambhiro/modeline-max-width
mu4e: shorten modeline str if longer than max-width
2018-04-25 11:32:15 +03:00
Dirk-Jan C. Binnema
b9d2046a6e
Merge pull request #1228 from mhcerri/mu4e-improved-thread-prefix
mu4e: improved thread prefix
2018-04-25 09:45:14 +03:00
Marcelo Henrique Cerri
adc56249da mu4e.texi: update the header view example with the new thread prefix 2018-04-24 22:34:43 -03:00
Marcelo Henrique Cerri
0b38210549 mu4e: add support for mutt-like thread tree prefix 2018-04-24 22:34:43 -03:00
Dirk-Jan C. Binnema
59e24f0234
Merge pull request #1221 from cacology/master
mu4e: updated fontify-signature for RFC 1153 compliant digest messages
2018-04-24 15:01:22 +03:00
djcb
260a8bb629 mu4e-view: use Gnus' article mode (experimental)
Add a defcustom `mu4e-view-use-gnus`, which, when `t', use Gnus'
article-mode for displaying messages instead of mu4e's built-in mode.

This is experimental, and a view messages do not display
correctly yet (base64-encoded bodies).
2018-04-24 14:58:39 +03:00
Dirk-Jan C. Binnema
cc34705930
Merge pull request #1176 from emacsjanitors/silencio
mu4e: No longer use obsolete alias speedbar-with-attached-buffer
2018-04-24 14:58:03 +03:00
Dirk-Jan C. Binnema
eebe1c4c66
Merge pull request #1198 from c-nixon/master
mu4e: Only require html2text if it will be used
2018-04-24 14:43:11 +03:00
James P. Ascher
82bf333fab updated fontify-signature for RFC 1153 compliant digest messages 2018-04-03 14:50:28 -04:00
Dirk-Jan C. Binnema
4242ca8bbf
Merge pull request #1212 from tarleb/update-links-in-mu4e-docs
mu4e.texi: Fix and update external links
2018-03-25 22:03:52 +03:00
Albert Krewinkel
3bb4c21995 mu4e.texi: Fix and update external links
External links are updated to point to the most informative pages. Pure
http links are upgraded to https were possible.
2018-03-24 12:20:00 +01:00
Christian Egli
522489a33c Use automake support for texi to generate version info in the manual
Automake contains some support for automagically adding version
information to a texi manual (see
https://www.gnu.org/software/automake/manual/automake.html#Texinfo).

> If the .texi file @includes version.texi, then that file will be
> automatically generated

This patch gets rid of the texi.texi.in and instead uses the standard
method to inject version information in the manual.

This fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=870634
2018-03-22 12:35:44 +01:00
Evan Klitzke
73d9378819
Fix display of bugs link in mu4e-about.org 2018-03-17 22:33:31 -07:00
Chris Nixon
7b6da1131b Only require html2text if it will be used
html2text is deprecated in the emacs pretest, by unconditionally
importing it mu4e causes a mildly irritating yes/no prompt to appear
during startup.

This change ensures that html2text is not loaded unless the emacs
running is a version that does not have 'shr-insert-document
2018-02-19 12:17:00 +00:00
djcb
aef46ec14f mu4e: add some support for the mux backend 2018-02-11 12:02:53 +02:00
John Whitbeck
76c0f44c51 mu4e: ensure sent dir is created with proper maildir structure
offlineimap will only sync directories that have 'cur', 'tmp', and
'new' sub-directories. Currently, mu4e can end up in a state where the
sent folder only has the 'cur' directory and is therefore not synced.

Upon saving a sent email, emacs' write-file will prompt to create
parent directories if the sent maildir does not already exist. This
results in the following directory structure:

<mu4e-maildir>/<sent>/cur/<email>

Note that the 'tmp' and 'new' directories are missing. This commit
ensures that they are always created.
2018-02-08 20:35:43 -08:00
Dirk-Jan C. Binnema
97ad4baea7
Merge pull request #1134 from jabranham/master
mu4e: simplify what "e" does in mu4e-view mode
2018-01-23 22:56:32 +02:00
Jonas Bernoulli
393ee7b219 No longer use obsolete alias speedbar-with-attached-buffer
Instead use the aliased variable `dframe-with-attached-buffer'.
The alias was established in Emacs 24.4.
2018-01-12 14:05:59 +01:00
Dirk-Jan C. Binnema
82743b3164
Merge pull request #1148 from thierryvolpiatto/mu4e-view
Fix again #1141 (mu4e-view-mode-hook should run after text insertion)
2018-01-06 15:01:32 +02:00
Dirk-Jan C. Binnema
dd8e099d5f
Merge pull request #1157 from andersjohansson/add-defcustom
mu4e: Use defcustom for the customizable variables in mu4e-lists.el
2018-01-06 14:59:01 +02:00
Dirk-Jan C. Binnema
a563651b22
Merge pull request #1163 from eqyiel/replace-references-to-mu4e-message-get-field
mu4e/mu4e-vars.el: replace references to mu4e-message-get-field
2018-01-06 14:54:52 +02:00
djcb
ef8c1960de mu4e.texi: Add compose-mode example 2018-01-06 14:48:28 +02:00
djcb
0228f35ec5 simplify mu4e~docid-msgid-param
It was using an ununed `format', which caused trouble when the msgid
contained format characters.
2017-12-27 12:51:44 +02:00
djcb
e1c6fa4b95 mu4e: fix typo in mu4e~docid-msgid-param
Fix silly typo. Fixes #1166.
2017-12-10 13:52:11 +02:00
Ruben Maher
f279d54c1a mu4e/mu4e-vars.el: replace references to mu4e-message-get-field
I think these docs strings are referring to the function `mu4e-message-field'.
2017-12-06 09:23:50 +10:30
djcb
0d9d8d26d0 mu4e: improve msgid quoting 2017-12-03 22:18:35 +02:00
Gambhiro
b95fb8b95a shorten modeline str if longer than max-width 2017-12-03 15:27:16 +00:00
Anders Johansson
e0fd8ed3ba Use defcustom for the customizable variables in mu4e-lists.el 2017-11-26 15:47:13 +01:00
djcb
5f79535574 proc: ensure query string is utf-8
ensure that the query string is utf-8 before passing it to the backend.
2017-11-08 21:26:00 +02:00
Bryan Gilbert
c71bc710fb Fix region bounds checking when marking headers 2017-11-08 08:34:34 -05:00
djcb
9ecc610e14 mu4e: some doc fixes 2017-11-04 15:06:45 +02:00
Thierry Volpiatto
fc4e2c743b
Merge branch 'master' into mu4e-view 2017-11-04 13:03:40 +01:00
djcb
f59c899ae5 mu4e: add mu4e-query-rewrite-function
Add a function that allows rewriting queries before they are issued.
2017-11-04 13:54:09 +02:00
Dirk-Jan C. Binnema
d87b97e0fb
Revert "Ensure mu4e-view-mode-hook run after text insertion" 2017-11-04 13:36:43 +02:00
Thierry Volpiatto
70d4d56db5
Run mu4e-view-mode without its hook (#1141)
before text insertion and run finally the hook at end.
This ensure local variables are not killed after being set.
* mu4e/mu4e-view.el (mu4e-view): Do it.
2017-11-04 05:50:03 +01:00
Dirk-Jan C. Binnema
43df94fa39
Merge pull request #1146 from mekeor/master
mu4e: fix bug preventing mu4e-headers-change-sorting to sort by list
2017-11-02 08:10:32 +02:00
djcb
c3aca5b29e mu4e: cosmetic 2017-11-02 08:06:48 +02:00
Dirk-Jan C. Binnema
d72d298818
Merge pull request #1141 from thierryvolpiatto/mu4e-view-mode-hook
mu4e: Ensure mu4e-view-mode-hook run after text insertion
2017-11-02 07:47:33 +02:00
Mekeor Melire
150234cb5f mu4e: fix bug preventing mu4e-headers-change-sorting to sort by list
The little bug was caused by a little confusion of the key for list-IDs.
Namely, we use `:list` and not `:list-id` for list-IDs.
2017-10-30 23:57:02 +01:00
djcb
ea2ffe23ae mu: fix quoting/unquoting parameters 2017-10-30 22:06:36 +02:00
Thierry Volpiatto
2eccd7df90
Keep original indentation
Only whitespace changes.

* mu4e/mu4e-view.el (mu4e-view): Do it.
2017-10-29 11:51:28 +01:00
djcb
3bc53af575 mu4e: show "Searching..." message
The new query-parser makes it easier to create queries that might take a
few seconds. qShow "Searching..." so the users knows what mu is doing.
2017-10-29 12:10:10 +02:00
djcb
8c531bd92b configure: don't require autoconf-archive
We ship the few macros we need or make them conditional
2017-10-29 11:25:12 +02:00
Thierry Volpiatto
8db567c980
Link urls after running mu4e-view-mode
* mu4e/mu4e-view.el (mu4e-view): `mu4e~view-make-urls-clickable`
should run after `mu4e-view-mode` otherwise an error popup telling the
hash-table storing links is nil.
2017-10-29 07:43:00 +01:00
Thierry Volpiatto
0a36c8431a
Ensure mu4e-view-mode-hook run after text insertion
* mu4e/mu4e-view.el (mu4e-view): Do it.
2017-10-29 06:54:13 +01:00
djcb
af4f12c696 mu4e: allow longer queries
Tell base64-encode-string not to include newlines.
2017-10-28 20:33:41 +03:00
djcb
4ee8c5e1d6 mu4e: work around quoting issues
Use base-64 for now.
2017-10-28 18:23:08 +03:00
djcb
a4fefc7256 mu4e: make mu4e-compose-crypto-reply-plain-policy nil by default
Making it sign by default is a bit too aggressive.
2017-10-28 11:23:57 +03:00
djcb
3ce8cd7e70 mu4e: small doc update
Update dependency information.
2017-10-28 11:17:03 +03:00
djcb
457a0a17a2 mu4e: update query quoting for new parser 2017-10-27 18:44:19 +03:00
Dirk-Jan C. Binnema
fe04e6d820 Merge pull request #1118 from MaximeMaW/master
mu4e: Allow to set the reply policy in a smart manner
2017-10-26 23:14:08 +03:00
djcb
68847f027f mu4e: support new query parser
maildirs with spaces
2017-10-26 21:31:50 +03:00
djcb
e4b3174ed8 mu4e: update docs
note the new query parser doc
2017-10-25 23:50:17 +03:00
djcb
5d3d9e274f mu4e: update headers for new quoting
update for the new query parser
2017-10-25 23:50:17 +03:00
djcb
85a9098962 mu4e: merge proc-mu back into proc.el 2017-10-25 23:50:17 +03:00
Alex Branham
7f16b7422d
mu4e: simplify what "e" does in mu4e-view mode
The default was to use e to save one attachment or C-u e to save multiple. This
simplifies it so that e simply offers to save one or many attachments.
2017-10-09 14:15:51 -05:00
djcb
77b8f034e9 cosmetic 2017-09-17 14:02:14 +03:00
maxime
e761f74f19 Warn the user about obsolete crypto-policy variable 2017-09-02 09:24:11 -07:00
maxime
5c6561873e Warning the used abot obsolete variable
Following code review (PR 1118):
- Warn the user about the fact that the
'mu4e-compose-crypto-reply-policy' variable is deprecated
- Removed a leftover debug message
- Edited typo in the name of the new variable
2017-09-02 09:13:57 -07:00
djcb
cb0025b352 mu4e: unbreak abbrevs in compose mode
Fixes issue #1119.
2017-09-02 15:56:29 +03:00
djcb
2811370d7e mu4e: fix some compiler warnings in mu4e-view 2017-09-02 15:37:35 +03:00
djcb
b8eba8f1fc mu4e: add some details about the "Verified:" header 2017-08-27 20:23:33 +03:00
djcb
95d68b4741 mu4e: add action mu4e-action-copy-message-file-path
Allow for copying the file path of the current message; useful for
developers.
2017-08-27 17:35:23 +03:00
djcb
3a8748c549 mu4e: display signers in signature header
Display the signers in the signature headers, so users can easily very
that a verified signed message was indeed signed by the expected sender.

We can't check using 'From:' automatically as that gives too many false
negatives.
2017-08-27 17:33:37 +03:00
djcb
e09419f85b mu4e: special-case empty hostnames
Fixes #1108
2017-08-27 15:44:23 +03:00
maxime
d343f7f538 Allow to set the reply policy in a smart manner
Depending on whether the original email was encrypted, one can set
different reply policies.
2017-08-26 19:47:36 -07:00
djcb
ceb7f0a8b4 mu4e: fix some typos
Hat-tip: Kelly Dean.
2017-08-13 10:09:03 +03:00
Dirk-Jan C. Binnema
b9ddc8b708 Merge pull request #1109 from galaunay/Add-update-info-in-modeline
mu4e: Optionally, add info on update status in the modeline
2017-08-11 00:02:36 +03:00
djcb
0cfc23650b mu4e: cosmetics
fix whitespace
2017-08-10 23:32:10 +03:00
galaunay
513eb65388 Add info on update status in modeline 2017-07-19 13:01:30 +02:00
djcb
81294eb17b mu4e: allow sorting by list-id
Added support for sorting by mailing-list; note that this ultimately is
a sort by the 'list-id', so the items will be in that alphabetical
order, which is not necessarily the same as the order of the friendly
names.
2017-07-02 10:46:08 +03:00
Vladimir Sedach
6017ac46ce mu4e: Update single-window mode
Update mu4e~headers-quit-buffer and mu4e~main-menu.

mu4e~headers-quit-buffer in single-window mode now kills current buffer
instead of quitting mu4e.

mu4e~main-menu is updated to redisplay the main menu on context switch
or unknown keybinding, display errors in commands better, and to handle
C-g and ESC keys.

Thanks to Joost Kremers for the suggestions.
2017-06-24 12:54:21 +02:00
djcb
afb47e7ef6 mu4e: small doc fix 2017-06-24 12:39:12 +02:00
djcb
cde35be271 Revert "Merge pull request #1099 from stsquad/fix-header-history"
This reverts commit ba75ef4b87, reversing
changes made to e735e70fa4.
2017-06-18 11:25:53 +03:00
Dirk-Jan C. Binnema
72db436a63 Merge pull request #1046 from jwhitbeck/master
mu4e: fix sending emails with no body
2017-06-17 12:10:24 +03:00
Dirk-Jan C. Binnema
ff2f8fa37d Merge pull request #1094 from wataash/remove-realdelete
mu4e: remove `realdelete' option of OfflineIMAP
2017-06-17 12:08:37 +03:00
Dirk-Jan C. Binnema
ba75ef4b87 Merge pull request #1099 from stsquad/fix-header-history
mu4e: don't loose search history when editing search
2017-06-17 12:05:51 +03:00
djcb
e735e70fa4 mu4e: add untrash to mu4e-view
The untrash function was not defined; let's add it.
2017-06-17 12:00:20 +03:00
Alex Bennée
9d06d72d6e mu4e: don't loose search history when editing search
Even though the user may be editing this expression there is no reason
to not have the mu4e~headers-search-hist present for the prompt. Emacs
will only replace it with system wide history which would likely
contain irrelevant history for the action.
2017-06-16 14:17:28 +01:00
Wataru Ashihara
625ee4f5f9 mu4e: remove `realdelete' option of OfflineIMAP
offlineimap/Changelog.md says Gmail `realdelete' option is considered
harmful and was removed on OfflineIMAP v6.5.2.1 (2012-04-04).
2017-06-10 15:47:48 +09:00
Vladimir Sedach
9420d088eb mu4e: Added new mu4e-split-view mode: single-window
Single-window mode is meant to minimize mu4e window operations (opening,
killing, resizing, etc) and buffer changes, while still retaining the
view and headers buffers. In addition, it replaces mu4e main view with a
minibuffer prompt containing the same information.
2017-05-31 20:52:59 -07:00
djcb
34d5c61930 mu4e: try a little harder to get contacts
Some people reported problems with completing contacts. It's unclear
what's going on there. Maybe this helps.
2017-05-06 13:12:38 +03:00
djcb
bbdee4e765 mu4e: cosmetics (mu4e-main) 2017-05-06 13:12:38 +03:00
djcb
6bde2618ab mu4e: make mu4e-context-current interactive
So it will output the name of the current context when used in an
interactive context.
2017-05-06 13:12:38 +03:00
Arne Köhn
47a046c662 advance after mark can now be disabled
The variable mu4e-headers-advance-after-mark can be set to nil if you
want to disable moving to the next mail after marking.
2017-04-25 16:40:41 +02:00
djcb
22e11fc112 mu4e-vars.el: cosmetics
whitespace cleanup and some typo fixes; fixes issue #1065.
2017-04-10 20:05:31 +03:00
djcb
abe732111a mu4e: cosmetics 2017-04-09 11:33:21 +03:00
djcb
98b998b86d mu4e: remove mu4e~compose-browse-url-mail
Instead, rely on the common browse-url-mail, which does the right thing
after
  (setq mail-user-agent 'mu4e-user-agent)
2017-04-08 15:25:38 +03:00
djcb
895a78ba7b mu4e: handle cc in mu4e~compose-browse-url-mail
Handle Cc fields in mu4e~compose-browse-url-mail, as per issue #1025.
2017-04-08 14:55:24 +03:00
djcb
87ed69ee03 mu4e: auto-delete after 30 secs instead of 10
Don't auto-delete files too soon (before they can be used), even on
slower systems.
2017-04-02 16:39:21 +03:00
djcb
fb09af4215 mu4e: compose/format-flowed: don't enable fringe indicators
We were enabling the fringe indicators by default in
mu4e-compose-format-flowed; let's not do that and leave it to the
user (they can use add-hook etc.)
2017-04-02 16:27:53 +03:00
Ronald Evers
6ce126ca69 Fix typo in mu4e-sent-messages-behavior docs 2017-03-26 21:49:36 +02:00
djcb
21b637f291 mu4e: minor cleanup in mu4e-compose 2017-03-18 10:24:51 +02:00
djcb
42cd4f89d2 mu4e: mention max-specpdl-size setting
Mention the max-specpdl-size setting, to avoid the
  Variable binding depth exceeds max-specpdl-size
error some people were seeing.
2017-03-18 10:22:46 +02:00
djcb
7729948d74 mu4e: utils: whitespace cleanups 2017-03-18 10:10:46 +02:00
djcb
c115d75a50 mu4e: handle marks outside headers-view
Ensure we the marks get counted correctly outside the headers view. This
avoids mu4e trying to refresh the headers buffer when we're reading a
message.
2017-03-18 10:09:10 +02:00
djcb
7d895dbd69 mu4e: widen buffer after save
Otherwise, undo won't work. Fixes issue #1047.
2017-03-18 10:07:12 +02:00
John Whitbeck
bbd8f55700 mu4e: fix sending emails with no body 2017-03-11 22:17:56 -08:00
Dirk-Jan C. Binnema
8f1f88ce0a Merge pull request #1044 from garaud/doc-org-contact-link
mu4e: update the org-contacts package link in the doc
2017-03-11 15:02:07 +02:00
djcb
b04b3bcea9 mu4e: don't require user-agent string 2017-03-09 01:27:44 +02:00
Damien Garaud
5b36656d5d mu4e: update the org-contacts package link in the doc 2017-03-06 10:55:35 +01:00
Dirk-Jan C. Binnema
9798d1fe6a Merge pull request #1036 from wavexx/reply-ignore-regexp
mu4e: Allow to ignore addresses when doing wide replies
2017-03-05 15:57:05 +02:00
Ian Kelling
c6d297b402 mu4e: improve `mu4e-get-maildirs' docstring 2017-02-28 04:15:27 -08:00
Dirk-Jan C. Binnema
ff94595fad Merge pull request #1037 from wavexx/fix-duplicate-header-views
mu4e: Do not duplicate headers views in iconified/hidden frames
2017-02-21 09:46:43 +02:00
Dirk-Jan C. Binnema
f3aa51fbc1 Merge pull request #1034 from jschwab/docs-context-maildir
doc: Add example of matching maildir and its sub-directories in contexts
2017-02-21 07:59:31 +02:00
Yuri D'Elia
34ed757e11 Do not duplicate headers views in iconified/hidden frames
When the frame running mu4e is in another virtual desktop or iconified, but
still contains a visible headers buffer, do not attempt to create a new view.
2017-02-20 18:40:20 +01:00
Yuri D'Elia
0a5224c4c8 Allow to ignore addresses when doing wide replies
Introduce a new variable, mu4e-compose-reply-ignore-address, which matches
addresses to be skipped when doing wide replies.

This is identical in behavior to messages-dont-reply-to-names from message.el
(which we default on).
2017-02-20 00:37:44 +01:00
Josiah Schwab
195b91a3db Add example of matching maildir and its sub-directories in contexts
Inspired by this mu-discuss thread:
https://groups.google.com/d/msg/mu-discuss/rAT2YJPEwsA/eYmoGJbUCgAJ
2017-02-17 14:52:06 -08:00
Titus von der Malsburg
79ad110737 mu4e: Added menu items for untrash 2017-02-14 12:02:56 +01:00
djcb
4c9a8ea112 mu4e: filter out body parts as attachments
Make the attachment heuristic yet a bit more complicated... filter out
most body parts.
2017-02-12 11:33:01 +02:00
djcb
1c4dbe580c mu4e: show inline text/plain as attachment
Show inline text parts as attachments too, so we can save them; however,
filter outer really small ones (ie. footers)
2017-02-12 11:11:16 +02:00
djcb
235dc75a1a mu4e: mu4e-message: allow for bodyless messages
Seems the code didn't handle the no-body case. Do so now.
2017-02-07 07:45:59 +02:00
djcb
7c6c3b63f8 mu4e: remove some debugging 2017-02-07 07:09:05 +02:00
Dirk-Jan C. Binnema
ad1a372b5f Merge pull request #986 from stig/format-flowed-alt
POC: Respect format=flowed and delsp=yes for viewing plain-text messages
2017-02-05 15:52:16 +02:00
djcb
b0c618c3e5 mu4e: fix typo mu4e~html2text-wrapper 2017-02-05 15:49:02 +02:00
djcb
06e848a448 mu4e: fix type (-> mu4e~html2text-shell) 2017-02-05 13:23:19 +02:00
Stig Brautaset
cdc2fa1bd8 Respect format=flowed and delsp=yes for viewing plain-text messages 2017-01-31 11:28:55 +00:00
djcb
05faceeb49 mu4e: some whitespace cleanup 2017-01-30 21:07:00 +02:00
djcb
5a09733048 mu4e: msg2pdf: don't require builddir for default
Try to find msg2pdf in addition to builddir, since it seems some people
/ distros are actually installing it.
2017-01-30 21:05:04 +02:00
Dirk-Jan C. Binnema
430f17af65 Merge pull request #1003 from Chris00/elec-quote
mu4e: Make electric-quote-(local-)mode work when composing emails
2017-01-30 20:49:56 +02:00
djcb
d718531312 mu4e: don't use 'node' for the subsection 2017-01-30 08:50:44 +02:00
djcb
08f2bb2ef4 mu4e: allow for message body rewriting
Add `mu4e-message-body-rewrite-functions', a list of functions to
transform the message body text. Add a small example to the
documentation.
2017-01-29 13:21:53 +02:00
Christophe Troestler
bf2f2ee12a Do not show the electric quote menu if Emacs is too old 2017-01-24 23:21:55 +01:00
Christophe Troestler
a9cbead5af Add a menu entry for electric-quote-local-mode 2017-01-24 23:21:55 +01:00
Christophe Troestler
9cb0772993 Make electric-quote-(local-)mode work when composing emails
electric-quote-(local-)mode used to have no effect because
`comment-use-syntax' was left to `undecided' so the electric mode was
not enabled for paragraphs.

Fixes https://github.com/djcb/mu/issues/997
2017-01-24 23:21:55 +01:00
djcb
67b499f9ed mu4e: minor doc updating 2017-01-24 23:58:32 +02:00
djcb
475fec0d16 mu4e: treat 'traditional as 'above 2017-01-24 18:48:27 +02:00
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
djcb
bca649cb32 mu4e: make mu4e-compose-type a public variable
Replace mu4e~compose-type so it can be used in pre-hooks and the like.
2016-09-06 09:15:17 +03:00