2022 Developer Survey is open! Take survey.

Hot answers tagged

18 votes
Accepted

How can I use eww as a renderer for mu4e?

eww is basically an interactive wrapper around the shr package, which renders HTML as Emacs text (the actual HTML parsing is done by the libxml package). You can use it in mu4e by setting mu4e-...
user avatar
  • 4,950
17 votes
Accepted

mu4e - multiple accounts

I'm using mu4e with two accounts. Each account has its own maildir: ~/Mail | +---- work | `---- private The manual comes with an example function to choose an account: (defun my-mu4e-set-account ()...
user avatar
  • 5,206
11 votes

attach multiple files from the same directory to an email message?

I can only suggest a solution for gnus and dired but it is at least easier as lawlist suggested. Open the directory in dired with C-x 4 d and type M-x turn-on-gnus-dired-mode. Then mark the required ...
user avatar
11 votes
Accepted

How to force Emacs or pinentry to forget wrong GPG password?

Pinentry is only an interface, it doesn't keep any passphrase or permission, and neither does Emacs. It's GPG-agent that manages the ropes. For example, if the time expires or the process dies, you'll ...
user avatar
  • 2,366
10 votes

mu4e bookmarks: how to hide messages for folders like Trash and Spam?

You can skip specific maildir from indexing for search, using .noindex file. from mu-index(1): If there is a file called .noindex in a directory, the contents of that directory and all of its ...
user avatar
  • 1,031
9 votes

mu4e - multiple accounts

I'm using two different accounts that I want to mix as little as possible. offlineimap is configured with two accounts, one delivering mail into ~/.maildir-work the other one into ~/.maildir-home. ...
user avatar
  • 239
9 votes

mu4e folders for multiple accounts (contexts)

You can't set mu4e-maildir in contexts. cf. http://www.djcbsoftware.nl/code/mu/mu4e/Contexts-example.html You can set any kind of variable; including settings for mail servers etc. However, ...
user avatar
  • 1,031
9 votes
Accepted

How to view email address details in mu4e?

Set the following variable in your Emacs init file (or try it in the *scratch* buffer) (setq mu4e-view-show-addresses 't) In a pinch, you can also look at the raw message when in view mode with a ...
user avatar
7 votes
Accepted

How can I delete mu4e drafts on successfully sending the mail?

If you use offlineimap (like I do) then your drafts likely accumulate because offlineimap syncs emacs' #autosave# files (kept in Drafts/cur folder). As offlineimap can only ignore files starting with '...
user avatar
  • 186
7 votes
Accepted

Openning a link in mu4e message

g will prompt you for a url to visit, which you select by number. (The numbers appear next to the link in the message) From mu4e you can open the manual at any time with H. This will open the manual ...
user avatar
  • 20.1k
7 votes

mu4e: how to stop the unarchiving of entire threads when new message arrives?

You may have display of "related messages" turned on. Try pressing W (note: capital) while in your inbox (mu4e-headers-toggle-include-related) and seeing if those messages disappear. If this is what ...
user avatar
6 votes
Accepted

How can I easily download/save an attachment in mu4e?

Use e: e runs the command mu4e-view-save-attachment Offer to save attachment(s). If MULTI (prefix-argument) is nil, save a single one, otherwise, offer to save a range of attachments. ...
user avatar
  • 3,331
6 votes

`mu4e-contexts` multiple gmail accounts using incorrect smtp credentials

It's been almost two years since the question was asked, but I have just had the same problem and I managed to solve it using the smtpmail-smtp-user variable. In the manual it says: If the variable ...
user avatar
  • 161
6 votes
Accepted

How to prevent mu4e from checking mail when the internet is down?

Use wrapper shell script. Below please find trivial sample script checking connection status as reported by Unix/Linux NetworkManager. #!/bin/sh # exit if there is no internet connection /usr/bin/nm-...
user avatar
  • 163
5 votes
Accepted

How to display plain text attachments inline with mu4e?

Is there a way to let mu4e display certain attachments inline with the email text? The short answer is "no." mu concatenates all text/plain parts to form the body of a message--- both for indexing ...
user avatar
  • 8,922
5 votes

Automating inbox zero with the org agenda?

Turns out that it's pretty straightforward to put this function together, although there's a bunch of housekeeping to keep the buffers tidy. The following command words with mu4e in both its headers ...
user avatar
  • 31k
5 votes
Accepted

How can I make encrypted messages readable in my sent folder

The usual approach is to force encryption to happen for your own key, in addition to the recipients' (and that's only one encryption). Depending on what you use exactly, you might want to (setq ...
user avatar
  • 4,440
5 votes
Accepted

Using ido or helm to auto complete email addresses in mu4e

The variable mu4e~contacts-for-completion stores a list of contacts that mu4e knows about. The contacts are conveniently stored as "name <email>" strings, which is the same thing you want to ...
user avatar
  • 372
5 votes

How to stop mu4e from inserting line breaks?

This will suffice in emacs nowadays: (add-hook 'mu4e-compose-mode-hook 'turn-off-auto-fill)
user avatar
  • 183
5 votes
Accepted

How to stop mu4e from inserting line breaks?

You can turn off auto-fill-mode in the mu4e message buffer. You can do so automatically by adding a function to the mu4e-compose-mode-hook: (defun no-auto-fill () "Turn off auto-fill-mode." (...
user avatar
  • 31k
5 votes

How can I delete mu4e drafts on successfully sending the mail?

I was suffering from the same problem. The solution I chose is to disable auto-save-mode in mu4e-compose so that drafts do not accumulate: (add-hook 'mu4e-compose-mode-hook #'(lambda () (auto-save-...
user avatar
5 votes
Accepted

mu4e: do not display messages in the thread that does not respect the query

Ok I found the answer here: type W, or set mu4e-headers-include-related to nil.
user avatar
5 votes

How to prevent mu4e from checking mail when the internet is down?

(Posting this Q&A combo since it took me a while to figure out, and it might save someone else the trouble.) Based on this answer to a question on how to test for an internet connection within ...
user avatar
  • 31k
5 votes
Accepted

Add date to mu4e email when forwarding or replying

mu4e uses message.el to edit the messages. The documentation for message-citation-line-function in that package shows: Function called to insert the "Whomever writes:" line. Predefined ...
user avatar
  • 2,366
4 votes

Using UTF8 encoding as default when writing emails

I have dealt with this issue a lot. The encoding will be depending on information in the file. If there is no information in the file explicitly to determine what it is, you could get such things as ...
user avatar
  • 159
4 votes

How do you select under emacs the key you sign/encrypt with when using mml?

We can set (setq mm-sign-option 'guided) and now we will be prompted with key selection menu before sending a message. As described: mm-sign-option - Option of creating signed parts. nil, ...
user avatar
  • 2,315
4 votes

mu4e - multiple accounts

I'm using a setup very similar to Magnus', and just wanted to add that (mu4e-quit) exists, and it works fine for cleaning up accounts without restarting. Actual mechanism: (defun mail-gmail () (...
user avatar
4 votes
Accepted

mu4e - A "Folder mode" buffer?

Have you seen "mu4e-maildirs-extension" (https://github.com/agpchil/mu4e-maildirs-extension)? This provides something similar to your request, but it does require a specific account/folder structure. ...
user avatar
4 votes

Configure mu4e for Gmail-style citation (reply quoting)

You need to customize message-citation-line-function. Something like this would help (it may require date formatting to please your needs): (defun my/message-insert-citation-line () "Based off `...
user avatar
4 votes
Accepted

Unable to link org-mode capture items to mu4e email messages

This is an example that works for me and that I have somewhere from the mu4e-pages (require 'org-mu4e) (setq org-capture-templates '(("T" "todo with link" entry (file "~/org/inbox.org") "* ...
user avatar
  • 983

Only top scored, non community-wiki answers of a minimum length are eligible