Commit graph

66 commits

Author SHA1 Message Date
Hanno Perrey
2b1cb2620a
fix(mu4e): do not set coding-system-for-read globally
`+mu4e-lock-pid-info` had unintentional side effects: it changed
`coding-system-for-read` globally.

Fix: #5788
2021-11-18 19:11:55 +01:00
TEC
13163888a1 fix(mu4e): incorrect access of from addr slot
Within +mu4e/capture-msg-to-agenda, the from address is stored in the
cdar not the cadr.
2021-11-18 19:05:57 +01:00
Henrik Lissner
3b0eeb104b revert: fix(mu4e): reflect upstream naming changes (#5620)
Revert 390fd1a7b0
Ref #5620
2021-10-18 14:53:32 +02:00
Dylan Barker
390fd1a7b0
fix(mu4e): reflect upstream naming changes (#5620) 2021-10-18 01:36:21 +02:00
TEC
9e8e1d93ea
nit(mu4e): correct indentation 2021-10-02 16:04:06 +08:00
TEC
090c7b9afa
fix(mu4e): minor errors with org-msg LaTeX eqns
A typo and a missing "*" break the creation and insertion of LaTeX
images.

Close #5416
2021-10-02 16:01:34 +08:00
TEC
7ab825157f
feat(mu4e): make the unicode bullet customizable
By popular demand.

Close #5452.
2021-09-15 02:43:40 +08:00
Ralf Beckmann
451afea47b docs(mu4e): clarify impact of user-full-name
The variable is not really required. It seems to be only used by mu4e
to determine the contents of the FROM field when composing mail.
2021-08-03 23:04:38 -04:00
TEC
61126c6bb4
fix(mu4e): improve mu-lock compatability with mac
On mac process args aren't defined, but comm is. Since comm also works
on Linux, we now check for that instead, accounting for a potential
capitalisation difference.
2021-08-03 03:36:57 +08:00
Ellis Kenyő
425f6a1264
fix(mu4e): remove autoload cookie
Autoload cookie was not working as expected

Close #5331
2021-08-02 03:55:13 -04:00
Ellis Kenyő
89bb96c304
fix(mu4e): allow mu4e to be started early
mu4e complains about missing file-notify-*-watch functions if loaded too early.

Close #5327
2021-08-01 14:54:35 -04:00
TEC
896f7dd3df
Mu4e: Select reply account when multiple addrs set
Modify +mu4e-set-from-address-h to account for messages with multiple
to/from headers by finding the intersection between the headers and
registered accounts.

While I'm at it, there was a rather silly typo in the when-let line
that's been corrected.
2021-07-31 01:32:57 +08:00
TEC
6915490d21
Mu4e: Better adhere to Doom naming conventions 2021-07-31 01:10:54 +08:00
Liam Hupfer
ffaed9f5d7
Mu4e: Fix typos 2021-07-31 01:10:14 +08:00
Liam Hupfer
2fd89a7eca
Mu4e: More contextual +mu4e-set-from-address-h
This hook should only be used when users define email aliases, or no
contexts are defined (in which case the list of personal addresses
should be used). Otherwise, the `:match-func` contexts feature is
sufficient.
2021-07-31 01:07:52 +08:00
Liam Hupfer
a75dea6281
Mu4e: Ignore case when matching mu4e context
This allows users to have different casing in their mu4e context names
and the corresponding directories. Since mu4e's context switching
automatically selects the letter from the context name, this allows
users to set two contexts starting with the same letter to uppercase and
lowercase variants, while leaving the directories lowercase.
2021-07-30 23:44:59 +08:00
Liam Hupfer
3d54471b2a
Mu4e: Fix setting default context
The default-p argument to `set-email-account!` now works as intended.
mu4e checks the first context on startup to determine the default and
uses functions for that, so we can't really get around it by setting
the bare mu4e~context-current variable.
2021-07-30 23:44:56 +08:00
TEC
2efeaa3bf2
Mu4e: re-indent advice.el and fix docstring typo 2021-07-30 01:56:54 +08:00
TEC
7e1f7915c0
Mu4e: use file when imagemagik not present
We will also use this as an opportunity to clean up the use of
+org-msg-img-scale-css.
2021-07-30 01:56:54 +08:00
TEC
a4db56be2f
Mu4e: Confirm that lockfile pid is an emacs proc
Or else another app can be given the same PID and we'll be complaining
another Emacs process is using mu4e when that simply isn't true.
2021-07-30 01:56:53 +08:00
TEC
921157f8d7
Mu4e: Remove redundant check in cond statement
The `t' case is already handled in the preceding condition.
2021-07-30 01:56:53 +08:00
TEC
e5c8cb747b
Mu4e: Remove spurious autoloads
None of these functions are called outside the file they're defined in.
2021-07-30 01:56:53 +08:00
TEC
a72d533a24
Mu4e: Fix inline LaTeX image scaling
The structure of doom-call-process's return had changed.
2021-07-30 01:56:53 +08:00
TEC
8603a3c7d2
mu4e: also prettify key-val string in main view 2021-07-30 01:56:53 +08:00
TEC
3778862a79
mu4e: lock file may not be created by file watcher
On some OS implementations (e.g. BSD uses kqueue),
`file-notify-add-watch' might not create the file if it doesn't exist.
This patch fixes that error. Arguably, emacs lisp should ensure the same
behaviour exists across each implementation.
2021-07-30 01:56:53 +08:00
TEC
fadc5f1b35
Mu4e: Add header line to dired buff when attaching 2021-07-30 01:56:53 +08:00
TEC
e881ced143
Mu4e: Improve the +mu4e/attach-files docstring 2021-07-30 01:56:53 +08:00
TEC
2e49b16a6d
Mu4e: When only one personal addr is set, use it
No need to prompt when there's a single entry in +mu4e-personal-addresses.
2021-07-30 01:56:52 +08:00
TEC
e76dcb328a
Mu4e: lock file, use temp file var instead of /tmp 2021-07-30 01:56:52 +08:00
TEC
eebe2859cf
Mu4e: Replace shell-commands with call-process
Shell-process actually initialises a shell, which is completely
unnecessary here.
2021-07-30 01:56:52 +08:00
TEC
6af30b5d68
Mu4e: Handle no-name from case
As seen in
https://www.djcbsoftware.nl/code/mu/mu4e/Message-functions.html, the
name can be nil, but an address will still be present.
2021-07-30 01:56:52 +08:00
TEC
6c2d68ea17
Mu4e: ensure that attachment isn't mixed with text
Ensure that mail-add-attachment is called on a blank line at the end of
the buffer.
2021-07-30 01:56:52 +08:00
TEC
d945987b93
Mu4e: make attachments possible without pain 2021-07-30 01:56:51 +08:00
TEC
3c0df378a6
Mu4e: rename msg refile func, customisable target 2021-07-30 01:56:51 +08:00
TEC
f2445eb6a0
Mu4e: Gah. Typos 2021-07-30 01:56:51 +08:00
TEC
42ee991f4a
Mu4e: Remove (now-)unused header colourise func 2021-07-30 01:56:51 +08:00
TEC
6490565404
Mu4e: Add account stripe, and use it by default 2021-07-30 01:56:51 +08:00
TEC
7cf91ff61d
Mu4e: Further americanisation (colour → color) 2021-07-30 01:56:51 +08:00
TEC
b983b8ec33
Mu4e: Refile autoload functions semantically
With a dash of renaming
2021-07-30 01:56:51 +08:00
TEC
92cfdd6f7f
Mu4e: Change colourise to (sigh) american spelling 2021-07-30 01:56:51 +08:00
TEC
b1f7e9b9f9
Mu4e: follow function naming conventions
Rename +mu4e-msg-to-agenda and +get-string-width
2021-07-30 01:56:50 +08:00
TEC
8e0001f6fd
Mu4e: Generalise ivy-read to completing-read 2021-07-30 01:56:50 +08:00
TEC
358ff84c54
Mu4e: Factor out f dependency 2021-07-30 01:56:50 +08:00
TEC
a75bace498
Mu4e: Remove duplicate + in function name 2021-07-30 01:56:50 +08:00
TEC
2a2f8bfbac
Mu4e: correct misspelling 2021-07-30 01:56:50 +08:00
TEC
75601101c6
Mu4e: Don't require a context to compose emails 2021-07-30 01:56:50 +08:00
TEC
e2792127f0
Mu4e: correct reference to renamed variable 2021-07-30 01:56:50 +08:00
TEC
6bf9ecacc7
Mu4e: have relaxed lock by default 2021-07-30 01:56:50 +08:00
TEC
a8d7d61e44
Set context-aware "from" address (mu4e)
The user can configure a list of addresses that are associated with a
context by passing a list to set-email-account!, e.g.

    (set-email-account! "foo"
      ...
      (+mu4e-personal-addresses ("foo@bar.org" "bar@baz.org")))

This list, if it exists, is used to prompt the user for the "from"
address after trying to set the "from" address automatically.
2021-07-30 01:56:50 +08:00
TEC
522c1ca33b
Mu4e: Include workspace switch in if true case 2021-07-30 01:56:50 +08:00