Commit Graph

91 Commits

Author SHA1 Message Date
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 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 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 7156ff7fac mu4e: fix some compiler warnings 2021-10-18 21:52:37 +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
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
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 5e069d9a6f mu4e: support regexp patterns for personal addresses 2020-10-17 15:38:24 +03:00
Juan Jose Garcia-Ripoll 071c60d229 Allow use of Maildir FAT extension changing the Maildir info separator 2020-10-04 16:47:42 +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
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 0dced59cb9 mu4e: set better default for mu4e-compose-reply-ignore-address
... and some small cleanup
2020-02-15 22:36:00 +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
Dirk-Jan C. Binnema 9ba28bc4c5 mu4e-draft: Fix over-eager reply-all (typo)
Fixes #1559.
2020-01-28 20:57:45 +02:00
Dirk-Jan C. Binnema 17e1dc2b17 mu4e: include From: in cc-list for mailing, even with reply-to
Many mailing lists override reply-to.
2020-01-25 22:21:56 +02:00
Dirk-Jan C. Binnema 760b6a14de mu4e: fix typo in cc-creation
Thanks to stsquad.
2020-01-13 23:40:23 +02:00
Dirk-Jan C. Binnema f6b5fff83e mu4e: add special handling for mailing-list replies 2020-01-11 15:10:37 +02:00
Dirk-Jan C. Binnema 763ae799c8 mu4e-draft: fix indentation 2020-01-08 23:25:37 +02:00
Dirk-Jan C. Binnema 548dc16f67 mu4e-draft: Include a date in draft
Unconditionally include a date in draft messages; update it whenever
we're saving or sending.
2019-10-20 16:12:11 +03:00
Thierry Volpiatto e4f5576cfc
Add lexical-binding to all files and fix warnings
about free variables (declare) and unused lexical vars (prefix with "_").
2019-09-16 19:54:59 +02:00
Christophe Troestler 1078fee2c5 mu4e (ical): Allow to reply to icalendar invitations
Fixes https://github.com/djcb/mu/issues/994
2019-07-13 14:07:03 +02:00
Christophe Troestler c639a939f4 mu4e (ical): Fix indentation & typos 2019-07-13 14:06:57 +02:00
djcb 10ddaebf06 mu4e-draft: fix flycheck warnings + whitespace 2019-05-23 21:45:03 +03:00
djcb 7563b89c9c mu4e: support incremental contacts 2019-05-11 13:41:03 +03:00
Alex Branham 2674ca5583
mu4e: Replace cl with cl-lib 2019-01-04 16:03:58 -06:00
djcb e09419f85b mu4e: special-case empty hostnames
Fixes #1108
2017-08-27 15:44:23 +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
djcb abe732111a mu4e: cosmetics 2017-04-09 11:33:21 +03:00
John Whitbeck bbd8f55700 mu4e: fix sending emails with no body 2017-03-11 22:17:56 -08:00
djcb b04b3bcea9 mu4e: don't require user-agent string 2017-03-09 01:27:44 +02: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
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 0d9cac49d3 mu4e: mu4e-draft: fix "typo" in face name 2016-07-27 13:08:35 +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
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 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
djcb ac1bfae196 mu4e: limit # of references to 21
Following the example of `message-shorten-references', only allow up to
21 references, since some mail servers limit them.

Fixes #859.
2016-06-05 18:49:04 +03:00
Jun Hao 13c4b48920 mu4e: quote user-full-name according to rfc822 when construct from field 2016-03-14 23:08:41 +08:00
djcb a0f0e95344 mu4e: better handling of closing compose frames
Use message-mode actions to close the compose
frame (`mu4e-compose-in-new-frame') whenever we're finished editing a
message.
2016-02-20 12:25:21 +02:00
djcb b72db626f3 mu4e: implement resending
Implement the special compose type 'resend', for resending existing
messages, possibly with changes.
2016-02-16 08:29:06 +02:00
Thomas Moulia 8f5df6cca0 mu4e: fix compose cancel orphaning a buffer
Create buffer contents _before_ creating the file.
2016-02-02 20:21:37 +02:00
djcb d9ca330f2b mu4e: tiny doc improvement 2016-01-15 21:02:35 +02:00
djcb 967b3cb727 mu4e: update copyright years 2016-01-09 21:28:03 +02:00
djcb b373f8e5f0 mu4e: context policy tweaking
As discussed in issue #751, mu4e should tried to accommodate some
different ways of choosing the context.

We add a new policy `ask-if-none', that will only query the user if
there is no context yet; this is the new default for
mu4e-context-policy, i.e. what happens when entering the main view.

The default policy for mu4e-compose-context-policy is now `ask',
i.e. ask if none of the contexts match.

The idea is for the defaults to ask when we don't know a context, and we
can't determine one using the match functions; this is probably the
least confusing. When user gets annoyed by too many question, they can
tweak the behavior to their liking. I.e. 'ask questions first, shoot
later'

Document all of this.
2016-01-03 13:29:19 +02:00
djcb 2d443a953c mu4e: don't use `purecopy`, it's useless
Don't use `purecopy`, it's useless outside emacs itself, as pointed out
by cpitclaudel. Fixes issue #729.
2015-12-15 07:02:24 +02:00