Dirk-Jan C. Binnema
99eb3bb674
mu4e-compose: handle message-cite-reply-position later
...
Can't really repro the problem. Perhaps I don't have hidden heders?
Anyway, can't hurt to move it after that.
Fixes #2283 .
2022-07-01 08:31:00 +03:00
Dirk-Jan C. Binnema
ff8e0455dc
mu4e-compose/compose-mail: add brackets for in-reply-to
...
Seems in some contexts we get them _without_ brackets in other-headers; so let's
fix that up.
Fixes #2273 .
2022-06-14 23:48:43 +03:00
Dirk-Jan C. Binnema
a1f0c5e9eb
mu4e: fix emacs-29 bytecompiler warnings
...
Wrong single quotes.
2022-05-28 00:51:08 +03:00
Dirk-Jan C. Binnema
db86e7b5ee
mu4e: contacts: use mu4e--contacts-set
...
We use to have mu4e--contacts-hash, with name mapping to rank; that was
needlessly complicated since most completion engine sort alphabetically, making
the rank totally irrelevant (in practice, it doesn't matter much from the
end-user pov).
Anyway, simplify that part, maintain a set of contacts without any rank (which
what the server delivers now).
Also update the _default_ mu4e-contact-process-function to filter out anything
with 'reply' since it's not very useful for autocompletion.
2022-05-09 22:25:28 +03:00
Dirk-Jan C. Binnema
45aec819f6
mu4e: updates for core changes
...
Deal with (name . email) --> (:name "boo" :email "boo@example.com")
Add support for the new "changed" field.
2022-05-05 01:40:17 +03:00
Dirk-Jan C. Binnema
a4707afe12
mu4e: cleanups and flycheck fixes
...
- Remove some unused faces
- Fix some flycheck warnings
- Replace some `cl-` functions with `pcase` and `seq`
2022-01-23 14:27:00 +02:00
Dirk-Jan C. Binnema
dd3efb0b8b
mu4e: update mu4e-compose-context-switch
...
Update mu4e-compose-context-switch:
1) attempt to update the message signature as well
2) remove the (no longer working) code to try to move the underlying file (which
was a bit too fragile) (see issue: #2140 )
2021-11-10 22:32:28 +02:00
Dirk-Jan C. Binnema
67b16acbb2
mu4e: support message-user-organization
...
Automatically include Organziation: if set and update when changing the context.
Fixes: issue #2112 .
2021-11-07 12:50:16 +02:00
Dirk-Jan C. Binnema
90a748aba1
mu4e-compose: make undo work across compose saves
...
Hide the header-separator change from the user-visible undo.
2021-11-07 11:47:29 +02:00
Dirk-Jan C. Binnema
0303f5d931
mu4e: compose/draft: remove some mostly obsolete things
...
Avoid some compiler warnings.
2021-10-22 08:33:51 +03:00
Dirk-Jan C. Binnema
4dc15334a6
mu4e-compose: fix some overly long lines
2021-09-30 15:41:38 +03:00
Dirk-Jan C. Binnema
3a39eff1df
mu4e-(actions|control|org|update).el: tidy up
...
Fix flycheck warnings, and use '--' instead of '~' for private
variables/functions.
2021-08-31 08:46:27 +03:00
Dirk-Jan C. Binnema
a6514fd683
mu4e-server: rename from mu4e-proc
...
Rename mu4e-proc.el into mu4e-server.el
Rename mu4e~proc... into mu4e--server...
Update users, too.
2021-08-29 21:40:42 +03:00
Dirk-Jan C. Binnema
9157d9102d
mu4e-utils: refactor into mu4e-helpers, separate files
...
Usurp more of the utils code than can be re-used without further dependencies in
helpers.
Split off specific parts in their own file.
After the helper/utils changes, update the rest of mu4e to take the changes into
account.
2021-08-29 21:40:42 +03:00
Dirk-Jan C. Binnema
035977a89a
mu4e-context: make it a minor-mode
...
Add mu4e-context-minor-mode, for re-use in other parts of mu4e.
Update those parts + documentation.
2021-08-29 20:30:29 +03:00
Dirk-Jan C. Binnema
b62f70f9d0
mu4e-compose: regenerate Date: when user removes it
...
However, we do not update the date if user does not do so.
2021-08-19 10:56:56 +03:00
Salman Mohammadi
539a946aa4
mu4e/*: fix license notice at the start of source files
...
At the start of mu4e/* files, the license has been wrongly attributed
to GNU Emacs instead of mu4e.
Fixes https://github.com/djcb/mu/issues/2019
2021-05-29 23:45:10 +02:00
Christophe Troestler
b2b8f562f7
mu4e/compose: attach buffers & files setting any property
2021-04-05 22:35:58 +02:00
Stephen J. Eglen
5d859d005f
Respect switch-function in compose-mail.
...
Emacs has several standard keybindings
C-x m compose-mail
C-x 4 m compose-mail-other-window
C-x 5 m compose-mail-other-frame
This patch fixes the creation of new mail buffers to respect the
latter two keybindings, C-x 4 m and C-x 5 m.
Note that there is already the variable mu4e-compose-in-new-frame
which if true opens in a new frame. That will still work for C-x m
and C-x 5 m, but if the user runs C-x 4 m, it switches to other-window
as it assumes the keybinding takes precedence. This behaviour can be
changed within mu4e~draft-open-file.
2021-04-03 22:23:21 +01:00
Dirk-Jan C. Binnema
811ae26574
Merge branch 'draft-context'
2021-03-17 11:36:12 +02:00
Al Haji-Ali
b094da8cd4
mu4e: Added mu4e-compose-context-switch for draft messages
...
Allow updating the context for the current draft message.
2021-03-17 11:35:09 +02:00
Dirk-Jan C. Binnema
d12d85e187
mu4e: work-around for format-flowed corner-case
...
Fixes : #1938
(fixes, eh, works around it)
2021-03-11 19:41:53 +02:00
Dirk-Jan C. Binnema
8d1175f511
mu4e: avoid some compiler warnings
...
(require) necessary things etc.
warnings for using "obsolete" code are still there since things should
work on emacs 25.3
2021-03-11 10:17:00 +02:00
Dirk-Jan C. Binnema
9cab1ae751
mu4e-compose: restrict to headers in before-save-hook-fn
...
Follow up to issue #1846 .
2020-12-05 11:42:54 +02:00
Dirk-Jan C. Binnema
4eed85187f
mu4e-compose: Don't auto-update Message-Id/Date
...
Fixes #1846
2020-12-02 08:51:35 +02:00
Thierry Volpiatto
c62dbb250c
Avoid looping through buffer-list when not needed
2020-11-16 08:59:45 +01:00
Thierry Volpiatto
0109172ad4
Use functions instead of lambdas in add-hook calls
2020-11-13 11:38:50 +01:00
Dirk-Jan C. Binnema
b672f6bc1d
mu4e: avoid trouble with truncate-string-to-width
...
Treatment of the 'ellipsis' parameter is a bit unclear, gave errors in
some cases.
Fixes #1716
2020-06-03 21:24:14 +03:00
Philip K
29ad71fdf2
Marked mu4e-compose-context-policy type as greedy
2020-05-27 22:54:15 +03:00
Philip K
bd87dcfd9b
Removed default case in mu4e-compose-crypto-message
2020-05-27 22:54:15 +03:00
Dirk-Jan C. Binnema
336cad35e6
Merged crypto-policy configuration into one variable
2020-05-27 22:53:41 +03:00
Dirk-Jan C. Binnema
c9a9d4be95
mu4e: handle compose-mail when mu4e is not yet running
...
We were trying to start mu4e asynchronously, then compose the mail but
this doesn't quite work the way some external packages expected, and
this would fail.
Fixes #1710
Fixes #1698
2020-05-27 22:34:43 +03:00
Dirk-Jan C. Binnema
a2d315df4c
mu4e-compose: fix external use (`compose-mail')
...
Ensure compose-mail with mu works again, including passing various
parameters.
Fixes #1695 .
2020-05-15 23:42:05 +03:00
Jonas Bernoulli
564d892701
Fix typos
2020-05-12 23:56:55 +02:00
Dirk-Jan C. Binnema
59ed21b01a
mu4e: start mu4e in compose-handler, when necessary
2020-05-01 22:44:45 +03:00
Dirk-Jan C. Binnema
1919146b94
mu4e: centralize mode-line context setting code
...
Add mu4e-context-in-modeline to handle all setting of context in the
mode-line, to address some corner-cases with the current setup.
2020-05-01 22:44:45 +03:00
Dirk-Jan C. Binnema
edd47ced71
mu4e: use mu4e-attachment-dir for attaching, too
...
Use mu4e-attachment-dir also for attaching (and not just for extracting)
attachments; the default (current draft message dir) is not very useful.
2020-04-06 20:52:24 +03:00
Abdo Haji-Ali
c335914caa
(widen) should be called before hiding the headers
...
Was also causing a corrupted header in some cases.
2020-03-29 22:06:29 +01:00
Dirk-Jan C. Binnema
83558be663
mu4e: set mu4e-compose-type earlier
...
So it can be used in hooks.
Fixes #1616 .
2020-03-16 22:42:35 +02:00
Dirk-Jan C. Binnema
fa7518ab60
mu4e-compose: don't touch default-directory
...
we probably shouldn't touch that.
2020-02-26 21:56:26 +02:00
Dirk-Jan C. Binnema
d4c959ea90
mu4e-compose: clear undo-list after entering compose mode
...
Fixes #1525 .
2020-02-26 21:11:06 +02:00
Dirk-Jan C. Binnema
e10fc21a9b
mu4e: Rename 'Unnamed' sections
2020-02-18 23:49:50 +02:00
Jonas Bernoulli
74332947a0
mu4e: Split libraries into outline sections
2020-02-18 23:49:50 +02:00
Jonas Bernoulli
040c6578be
mu4e: Place provide forms in their own sections
...
Use "_" as the title of that section so that it is less distracting
when sections are collapsed to get an overview of the library.
Using a separate section is useful because it reduces the risk of
accidentally into the middle of a library.
2020-02-18 23:49:50 +02:00
Jonas Bernoulli
83f0c9cea9
mu4e: Remove excess semicolons from library headers
...
Placing two semicolons on an otherwise empty line helps to logically
"connect" the surrounding "paragraphs", which in (only) some cases
makes sense.
Previously the three paragraphs of the permission statement were not
connected to each other like this, which is perfectly fine. However
the preceding "This file is not part of GNU Emacs." line was connected
to the first paragraph, which does not make sense considering that the
latter is not connected two the second paragraph, which it relates to
more.
Once those two semicolons are gone, it also makes sense to remove
those from the second line.
2020-02-18 23:49:50 +02:00
Dirk-Jan C. Binnema
c09a9c4372
mu4e: update context handling
...
Make mu4e-context-autoswitch works a before we updated the pong-handler
Avoid unnecessary mu4e~start int he composer.
2020-02-18 22:38:40 +02:00
Jonas Bernoulli
c2ef02f57c
mu4e: Begin each elisp summary line with three semicolons
2020-02-17 14:28:00 +01:00
Jonas Bernoulli
6790c0d015
mu4e: Fix indentation
2020-02-17 14:28:00 +01:00
Dirk-Jan C. Binnema
0d9d99df99
Merge pull request #1328 from pitti/fix-whitespace-deletion
...
mu4e: restrict deleting trailing whitespace to region
2020-02-09 00:24:32 +02:00
Dirk-Jan C. Binnema
e1e26d1da2
mu4e: update to use server maildir/database/addresses
...
Mkae mu4e-maildir and mu4e-personal-addresses obsolete, we get those
from the server.
2020-02-09 00:15:49 +02:00