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

1251 Commits

Author SHA1 Message Date
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
djcb
f1aedf14ab mu4e: remove some debugging output 2016-09-05 15:07:44 +03:00
Klaus Holst
9f5a2da5b5 For the upcoming org-mode version 9 org-add-link-type is obsolete, so if org-link-set-parameters is bound we will use that instead. 2016-09-04 14:12:53 +02:00
Dirk-Jan C. Binnema
a49ccf4ff0 Merge pull request #897 from liweitianux/aly
mu4e: use builtin function "shr-render-region" for simplicity
2016-09-03 11:30:19 +03:00
Dirk-Jan C. Binnema
5097dd8e1b Merge pull request #909 from sachdevaprash/master
mu4e: Adding eshell/mu4e-attach allowing attachments from eshell.
2016-09-03 11:27:49 +03:00
Dirk-Jan C. Binnema
db48031024 Merge pull request #911 from aroig/gh/tag-completion
mu4e: add rudimentary completion support for retag action
2016-09-03 11:26:47 +03:00
Dirk-Jan C. Binnema
dd1c0325f9 Merge pull request #912 from j-hao/master
mu4e: add mu4e-msg-changed-hook
2016-09-03 11:25:49 +03:00
Dirk-Jan C. Binnema
c29ebc6e6d Merge pull request #907 from Chris00/master
mu4e: Compare email addresses case insensitively
2016-08-28 17:58:13 +03:00
Jun Hao
0926ac6867 mu4e: show '...' when header field folded and keep text-properties 2016-08-28 10:39:37 +08:00
Prashant Sachdeva
eef00e7263 Removing the dependencies on gnus in eshell/mu4e-attach. 2016-08-28 10:03:02 +09:00
Christophe Troestler
dc3bffa186 Compare email addresses case insensitively 2016-08-28 00:30:29 +02:00
djcb
37f11d642f mu4e: improve mu4e-fill-paragraph
Improve mu4e-fill-paragraph for some corner-cases where there is
trailing whitespace. Patch by holtzermann17.
2016-08-27 19:06:10 +03:00
djcb
ae7f649a4a mu4e: avoid error return to same message
This avoids a runtime error. Fix by holtzermann17 for Issue #910.
2016-08-27 18:58:55 +03:00
Jun Hao
35c6d4ab8b mu4e: add mu4e-msg-changed-hook 2016-08-25 10:03:35 +08:00
Abdo Roig-Maranges
cba2e0c21c add rudimentary completion support for retag action
This adds a variable mu4e-action-tags-completion-list, that contains a
list of commonly used tags to suggest as completion terms during a retag
actions.

Along the way, the retag action accepts as argument a comma-separated
list of +tag and -tag keywords, instead of a space-separated one,
removing the need to quote tags with spaces in them, and making it
consistent with the behaviour of completing-read-multiple.
2016-08-22 20:26:35 +02:00
Prashant Sachdeva
9b6a7424df Adding eshell/mu4e-attach allowing attachments from eshell. 2016-08-17 10:45:32 +09:00
Dirk-Jan C. Binnema
2507933176 Merge pull request #893 from j-hao/master
mu4e: Allow header fields with more than one lines to fold to one
2016-08-13 23:01:50 +03:00
djcb
49ea3bec58 mu4e: update html/URL handling
Make mu4e-view-toggle-html _not_ toggle the global value of of
mu4e-view-prefer-html, but only the current one.

Make the link map 'permanent', so it survives the buffer changes when
refreshing. This fixes issue #904.
2016-08-13 10:57:49 +03:00
djcb
75412ec3b1 mu4e: document mu4e-view-html-plaintext-ratio-heuristic
Add note about most-positive-fixnum. This fixes issue #903.
2016-08-13 09:42:33 +03:00
Christophe Troestler
cec66211f5 Add a face for displaying the context in the mode-line 2016-08-12 00:11:12 +02:00
Christophe Troestler
744f288431 Fix typo 2016-08-12 00:05:12 +02:00
djcb
8235a903c4 mu4e: update bbdb instructions 2016-08-09 09:27:53 +03:00
Piotr Trojanek
fc8e563e90 minor fix of unbalanced parens in doc 2016-08-02 19:15:32 +01:00
Aaron LI
9b54c2745e mu4e: use builtin function "shr-render-region" for simplicity 2016-08-02 22:19:51 +08:00
Remco van 't Veer
9e6bfb9075 Fix kill ring clobbering by get mail filter
The kill ring fills up with lines like:

  C: 0/1  B: 28/29  M: +0/0 *0/0 #0/0  S: +2/2 *1/1 #0/0

when using mbsync or another tool using carriage return for progress.
2016-08-02 09:00:46 +03:00
Dirk-Jan C. Binnema
80ecf80a12 Merge pull request #875 from stsquad/some-fixes
mu4e-actions: improve mbox handling for multiple marks
2016-08-02 08:08:34 +03:00
Ævar Arnfjörð Bjarmason
e2ce627197 Actually make the "write attachments" feature in d16957d work
This is a follow-up to my pull request #895 which fixes another bug in
pull request #831 (d16957d).

The code to write out the attachments would never work, for what it's
worth it's clear from the issue I fixed in #895 that the codepath had
never been executed as-is.

It would find the attachments and try to write them out to /tmp/, just
that, no /tmp/NAME, just the directory itself. That would yield an
error of trying to write to a directory.

Fix that, now we create a temporary name as a function of the
attachment and both save it and extract it.

This makes the mu4e-action-view-in-browser function finally work for
me. It'll now write out the attachments to /tmp, and rewrite the HTML
so that I'll see the attachments in my browser.
2016-08-01 21:11:05 +02:00
Ævar Arnfjörð Bjarmason
dc65f0c5ec Fix a regression in pull request #831
The mu4e-message-field function was called in a way that would never
work, fix that by calling it correctly.

There's the additional follow-up TODO here that the mu4e-message-field
function itself should probably die on this sort of invocation, but I
don't know enough about elisp idioms to know how that should look.

This fixes my issue #894.
2016-07-31 23:28:35 +02:00
djcb
49bc9605d8 mu4e: add mu4e-headers-hide-predicate
Add `mu4e-headers-hide-predicate', a function that allows for hiding
messages from the display. This can be used e.g. to hide trashed
messages.
2016-07-31 13:07:27 +03:00
djcb
b5345851ee mu4e: documentation 2016-07-31 11:23:38 +03:00
djcb
f7be5ef2ff mu4e: make bookmarks a defstruct
Make the structures use for mu4e-bookmarks a defstruct, and update its
usage throughout the codebase. This makes it a bit easier to read and
extend.

Ensure that the old-style bookmarks are automatically converted.
2016-07-31 11:20:59 +03:00
Jun Hao
2d5475e7ed mu4e: Allow header fields with more than one lines to fold to one
Fix #803
2016-07-30 01:10:26 +08:00
djcb
0d9cac49d3 mu4e: mu4e-draft: fix "typo" in face name 2016-07-27 13:08:35 +03:00
djcb
538b7e5292 mu4e: allow for show :user-agent in message-view
Define a field :user-agent and make it showable in the view.
2016-07-24 14:30:37 +03:00
djcb
a4df4927a6 mu4e: document mu4e-index-(cleanup|lazy-check)
Document the two new configuration variables, mu-index-cleanup and
mu-index-lazy-check.
2016-07-24 12:49:49 +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
c27471f4fa mu4e: compose: auto-crypt/sign crypto replies
When replying to an encrypted message, sign/encrypt by default; see
  mu4e-compose-crypto-reply-policy.

(Issue #865)
2016-07-12 00:25:05 +03:00
djcb
a24058040f mu4e: fix typo in face description 2016-07-12 00:15:29 +03:00
djcb
1945ab3bce mu4e: handle foo> citation style
Handle the citation style where the cited part is prefixed with
eg. "foo> " instead of the normal ">".

Also improve the default color scheme a bit.
2016-07-10 21:45:52 +03:00
Dirk-Jan C. Binnema
fc3b9c19da Merge pull request #877 from remvee/feature/handle-mbsync-output
mu4e: Handle mbsync output in mu4e-update buffer
2016-07-10 00:04:25 +03:00
djcb
1e963c1779 mu4e: update font-locking for mu4e-compose-mode
mu4e was making a vain attempt to fontify the compose buffer; this
doesn't work because message (from which mu4e-compose-mode derives) uses
font-locking for that.

So, instead, remap the message-mode faces to the ones used for mu4e.
2016-07-09 23:42:58 +03:00
Remco van 't Veer
b203226a06 Handle mbsync output in mu4e-update buffer
The mbsync command uses carriage return characters to go to the
beginning of the line.
2016-07-08 14:12:30 +02:00
djcb
b31ba3dd81 mu4e: seems the keymaps might not be defined (workaround)
Users were seeing:
,----
| Debugger entered--Lisp error: (wrong-type-argument keymapp nil)
|   signal(wrong-type-argument (keymapp nil))
|   define-key-after(nil [mu4e-hard-newlines] (menu-item "Format=flowed"
| mu4e-toggle-use-hard-newlines :button (:toggle . use-hard-newlines) :help
| "Toggle format=flowed" :visible (eq major-mode (quote mu4e-compose-mode))
| :enable mu4e-compose-format-flowed) sep)
|   mu4e-compose-mode()
|   byte-code("..." [original-msg mu4e-compose-parent-message
| mu4e-compose-context-policy winconf includes att make-local-variable put
| permanent-local t mu4e~context-autoswitch run-hooks mu4e-compose-pre-hook
| current-window-configuration nil (mu4e-draft-open compose-type
| original-msg) ((quit (byte-code "..." [winconf set-window-configuration
| mu4e-message "Operation aborted" throw --cl-block-mu4e~compose-handler--
| nil] 3))) mu4e~draft-insert-mail-header-separator mml-attach-file plist-get
| :file-name :mime-type mu4e~compose-set-friendly-buffer-name
| set-buffer-modified-p (new forward) message-goto-to message-goto-body
| mu4e~compose-type mu4e~compose-hide-headers mu4e-compose-mode delete-frame
| --dolist-tail-- compose-type mu4e-compose-in-new-frame message-exit-actions
| message-postpone-actions] 6)
|   mu4e~compose-handler(new)
|   mu4e-compose(new)
|   mu4e-compose-new()
`----
2016-07-03 23:29:05 +03:00
Alex Bennée
fdb476e225 mu4e-actions: improve mbox handling for multiple marks
This avoids prompting the user over and over if the directory hasn't
changed. I've also ensured the paths are escaped with
shell-quote-argument.
2016-07-03 08:38:26 +01:00
Dirk-Jan C. Binnema
6a42000997 Merge pull request #871 from arthurl/arthur/PR/refences-header-bug
mu4e: [FIX] references header dropped bug
2016-07-03 10:17:04 +03:00
djcb
3895052bfd Merge branch 'master' of github.com:djcb/mu 2016-07-03 10:02:23 +03:00
djcb
ddf4adc30f mu4e: try a bit harder to find the draft folder
If we can't guess the draft folder when re-editing a message, fallback
to the default.
2016-07-03 10:00:27 +03:00
Arthur Lee
8a62bc172d mu4e: [FIX] references header dropped bug 2016-06-22 01:43:59 +08:00
Dirk-Jan C. Binnema
52b7aae439 Merge pull request #852 from jschwab/improve-action-show-thread
mu4e: Improve behavior of mu4e-action-show-thread
2016-06-11 09:54:08 +03:00
Thierry Volpiatto
fa2427e6f9 Fix window restoration when C-g'ing on reply.
* mu4e/mu4e-compose.el (mu4e~compose-handler):
Save and restore window config.
2016-06-09 07:22:56 +02:00