summaryrefslogtreecommitdiff
path: root/mu4e/mu4e-draft.el
AgeCommit message (Collapse)Author
2026-04-19mu4e-compose: use text/x-diff defaultDirk-Jan C. Binnema
... in mu4e-compose-reply-include-mime-types, add text/x-diff as well.
2026-04-11Merge pull request #2906 from sergiodj/add-sign-signed-repliesDirk-Jan C. Binnema
mu4e-draft: add `{sign,encrypt}-signed-replies` to crypto options
2026-04-08mu4e: be more careful deleting framesDirk-Jan C. Binnema
Remember the exact frame we created, and only kill that one. Ensure mu4e-compose-post-hook fires at most once.
2026-04-02mu4e-draft/headers: resync headers-bufDirk-Jan C. Binnema
After restoring the window configuration, we could end up pointing at the wrong message. Let's try harder to restore... issue #2902.
2026-04-02mu4e-draft: decode utf-8 bytes in headersDirk-Jan C. Binnema
Another attempt at fixing the old #2722 decoding issue.
2026-04-01mu4e-draft: make compose frame config buffer-localDirk-Jan C. Binnema
This should help when multiple compose windows are present, such as in issue #2912.
2026-03-25mu4e-draft: add "{sign,encrypt}-signed-replies" to crypto optionsSergio Durigan Junior
This scratches an itch of mine: being able to sign messages when they're replies to signed messages. Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
2026-03-18mu4e-draft: handle corner-case decoding issueDirk-Jan C. Binnema
When there are raw utf-8 headers. Should help for #2722.
2026-03-18mu4e-compose: allow including parent mime partsDirk-Jan C. Binnema
mu4e-compose-reply-include-mime-types specifies the mime-types for message attachments that should be included in replies, with the default set to "text/x-patch" -- i.e., patches are included in replies, so you can comment on them. As mentioned in #2896.
2025-07-12mu4e-draft: add mu4e-compose-jump-to-reasonable-placeDirk-Jan C. Binnema
t by default (current behavior), but you can turn if off if your change (e.g. compose-hook) wants to put the point in some different place.
2025-04-17mu4e-draft: ensure we only remove the message Date:Dirk-Jan C. Binnema
Narrow to headers first, or we may remove e.g. Date: headers in forwarded messages.
2025-03-08mu4e-draft: ensure compose-type is available without parentDirk-Jan C. Binnema
In non-parent messages, such as completely new message, ensure the mu4e-compose-type is available during the initial composition, i.e., enlarge the let to cover the rest of `mu4e--prepare-draft'.
2025-01-15mu4e: improve mu4e--message-is-yours-pDirk-Jan C. Binnema
Ensure we can use both from headers view and message view. This helps with "supersede".
2024-12-07mu4e-draft: add some logging to mu4e--set-parent-flagsDirk-Jan C. Binnema
Also a little refactoring. This should hopefully help with diagnosing #2478.
2024-10-28mu4e: use if-let*, when-let*Dirk-Jan C. Binnema
Avoid the silly byte-compilation warning
2024-09-25mu4e-draft: always save before sendingDirk-Jan C. Binnema
This ensures fields (like Date:) are updated.
2024-09-03mu4e-draft/helpers: use newer message-hide-headersDirk-Jan C. Binnema
It seems the older (<= emacs 28 at least) message-hide-headers caused trouble when editing drafts with mu4e in some cases. So use the _newer_ version of this function, imported as mu4e--message-hide-headers. Fixes #2661.
2024-08-28mu4e-draft: move the user-agent settingDirk-Jan C. Binnema
This updates commit 411407f03e4bf55250d96015f427a86a373bfb12 and moves the check to where we set the special headers.
2024-08-28Ensure `User-Agent' is setXiyue Deng
* Set `message-newsreader' before calling `mu4e--prepare-draft-buffer' so that `User-Agent' is properly set. * Fixes #2750.
2024-08-26mu4e: cosmeticsDirk-Jan C. Binnema
2024-08-19mu4e: whitespace / typo fixesDirk-Jan C. Binnema
2024-08-17mu4e-draft: handle case where draft was not deletedDirk-Jan C. Binnema
Ensure draft is removed also when there's no fcc-path. As suggested by @malb in #2719.
2024-06-17mu4e-draft: fix mu4e-compose-pre-hookDirk-Jan C. Binnema
Run the hook earlier, and ensure mu4e-compose-type & mu4e-compose-parent-message are set. As noted in #2715.
2024-05-18mu4e-draft: use message-alternative-emails for repliesDirk-Jan C. Binnema
Set message-alternative-emails to the special `mu4e-personal-or-alternative-address-p' such that it honors both user-specified alternative address as well as the mu personal addresses. Fixes #2708.
2024-05-18mu4e-draft: invoke mu4e-compose-pre-hookDirk-Jan C. Binnema
We should invoke it, as documented.
2024-05-18mu4e: some flycheck fixesDirk-Jan C. Binnema
2024-05-01mu4e-draft: mark m-c-(type|parent-message) as permanent-localDirk-Jan C. Binnema
The variables mu4e-compose-parent-message & mu4e-compose-type are buffer-local as well as permanent-local. That way, they'll survive the mode change to mu4e-compose-mode and we can use them in the corresponding mode-hook.
2024-04-30draft: explicitly remove drafts after sendingDirk-Jan C. Binnema
This seems necessary in some cases.
2024-04-30mu4e-draft: don't treat delete as a functionDirk-Jan C. Binnema
In mu4e-sent-messages-behavior. Fixes #2701.
2024-04-28mu4e-draft: better handle repliesDirk-Jan C. Binnema
(again) avoid mixing up message-reply-headers.
2024-04-28mu4e: implement mu4e-compose-post-hookDirk-Jan C. Binnema
A hook for when we're done with message composition. We populate it with a function to kill created frames and one to attempt to restore window configuration.
2024-04-26mu4e-drafts: improve mu4e--fcc-pathDirk-Jan C. Binnema
Reworked from the pull #2698 for the new branch.
2024-04-26mu4e-draft/window: handle buffer display in mu4e-windowDirk-Jan C. Binnema
Handle buffer display where all mu4e's buffer display is done: in mu4e-window.el. Avoid overly long lines in mu4e-window.el.
2024-04-26mu4e-compose: split off parts in mu4e-draft; reworkDirk-Jan C. Binnema
Move draft-creation part of message-composition to a new file mu4e-drafts However, this is more than just some refactoring: rework the message (draft) setup as such to ensure we always get a (non-active, live) buffer back from the composition process. This also fixes (progn (compose-mail "test@example.org" "Test") (insert "TEST")) as mentioned on the mailing list. Fixes #2699
2023-10-25mu4e-compose: overhaul message composerDirk-Jan C. Binnema
This is a new composer sub-system, which more closely follows Gnus/message; in particular, we let gnus take care of creating draft messages. This reduces code size and allows us to re-use some of the more advanced features. There are a number of user-visible changes: - `mu4e-compose-resend' directly uses `message-resend', so there is no more editing phase (which used to be a bit broken with re-encoding MIME messages.
2023-09-20mu4e: Shorten descriptions a bitDirk-Jan C. Binnema
2023-09-20Fix missing or incorrect descriptions in file headersThierry Volpiatto
Try to make useful descriptions and use conventional --- to separate filename from description.
2023-08-16Don't use the original message `To` for a reply `To` fieldChristophe Troestler
Fixes https://github.com/djcb/mu/issues/2535
2023-08-10mu4e: fix byte-compiler warningsDirk-Jan C. Binnema
2023-08-06mu4e-draft: changes in to/cc lists creationDaniel Fleischer
- Bug fix. - Reply-all consistency, related to #2524
2023-05-12Fix more defcustom type errors and reworded docsRuijie Yu
* mu4e/mu4e-draft.el (mu4e-compose-reply-recipients): (mu4e-compose-reply-to-address): * mu4e/mu4e-thread.el (mu4e-thread-fold-single-children): Clarify docstrings and fixed type definitions.
2023-04-01Fix defcustom type definitionsRuijie Yu
So that the type definitions reflects the docstrings more closely. In additon, fixed warnings from flymake about docstring. * mu4e/mu4e-draft.el mu4e-compose-keep-self-cc: should be a comma * mu4e/mu4e-folders.el mu4e-maildir-shortcuts: recognize new (plist) format * mu4e/mu4e-helpers.el mu4e-debug: removed unnecessary double space in docstring * mu4e/mu4e-query-items.el mu4e-query-rewrite-function: prepend "\\=" before column 0 "(" in docstring * mu4e/mu4e-search.el mu4e-search-sort-field mu4e-search-sort-direction: used radio in types * mu4e/mu4e-server.el mu4e-mu-binary: "mu" executable must exist * mu4e/mu4e-view.el mu4e-view-fields: fixed type mu4e-view-actions: for function refs, prefer "#'" rather than "'"
2023-02-15mu4e: fix quotes in some docstringsDirk-Jan C. Binnema
Escape correctly.
2023-01-18mu4e-draft: cleanup, honor reply-toDirk-Jan C. Binnema
Fixes #2420
2023-01-14When replying to self, use :from field of original messageStephen Eglen
Simple patch to fix #2403
2023-01-01mu4e: move search functionality to mu4e-searchDirk-Jan C. Binnema
Move out of mu4e-headers; rename variables and callers.
2023-01-01mu4e: whitespace updatesDirk-Jan C. Binnema
2022-12-09Move defcustoms to mu4e-window.elMickey Petersen
2022-12-06Appease the byte compiler and clean up the codeMickey Petersen
2022-11-29Multiple buffer support and standardised window and buffer handlingMickey Petersen