Hot answers tagged

12 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 ...
Dieter.Wilhelm's 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 ...
Muihlinn's user avatar
  • 2,576
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 ...
lurdan's user avatar
  • 1,071
10 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. ...
Magnus's user avatar
  • 259
10 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 ...
Tyler's user avatar
  • 21.7k
10 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 ...
Chad WALSTROM's user avatar
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, ...
lurdan's user avatar
  • 1,071
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 '...
event's user avatar
  • 186
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 ...
Stuart Hickinbottom's 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. ...
YoungFrog's user avatar
  • 3,506
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 ...
mange's user avatar
  • 161
6 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.
tobiasBora's user avatar
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-...
AnFi's user avatar
  • 173
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-...
Jordan He's user avatar
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 ...
Constantine's user avatar
  • 9,072
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 ...
Dan's user avatar
  • 32.6k
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)
ctietze's user avatar
  • 195
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 ...
Dan's user avatar
  • 32.6k
5 votes
Accepted

mu4e adds sender with reply-all

Old question, but since it is the first thing that pops up in google (at least for me), I guess it is worth updating. The answer provided by @miguelmorin no longer works, see the manual for Writing ...
juanerasmoe's user avatar
5 votes
Accepted

Muting threads in mu4e

You need to tag at least one message in the thread with the value "muted" (press aM in the headers buffer), then add a predicate function to mu4e-headers-hide-predicate to determine whether the thread ...
jagrg's user avatar
  • 3,834
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 ...
Muihlinn's user avatar
  • 2,576
5 votes
Accepted

Add CC and BCC when composing an email with mu4e

Look in the Field Menu and select those fields. For me, the key shortcuts are C-c C-f C-c (message-goto-cc) for CC and C-c C-f C-b (message-goto-bcc) for BCC. These will add those fields. ...
John Kitchin's user avatar
  • 11.6k
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 () (...
Lang Martin's user avatar
4 votes

Remove attachments from emails

I found the solution hidden in a closed issue on GitHub (thanks to @mankoff): (defun my-remove-attachment (msg num) "Remove attachment." (let* ((attach (mu4e~view-get-attach msg num)) (...
tmalsburg's user avatar
  • 2,540
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. ...
Stuart Hickinbottom's user avatar
4 votes

Removing seconds from :human-date in mu4e

You can customize mu4e-headers-time-format and mu4e-headers-date-format. Their default is to use a locale-dependant format ("%X" and "%x"), so I guess this should do the trick for you : (setq mu4e-...
YoungFrog's user avatar
  • 3,506
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 `...
Felipe Lema's 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") "* ...
andrej's user avatar
  • 983
4 votes
Accepted

Getting a org link to an mu4e message

The org-mode integration is built-in to mu4e, but it is kept in a separate package that is not enabled by default. You have to run (require 'org-mu4e) After that you can use org-store-link in both ...
Heikki's user avatar
  • 2,981
4 votes
Accepted

Is there a natural language date parser in Elisp/Emacs?

org-read-date can handle a certain amount of fuzziness, e.g. '22 sept 0:34’ ⇒ 2006-09-22 0:34 ‘w4’ ⇒ ISO week for of the current year 2006 ‘2012 w4 fri’ ⇒ Friday of ISO week 4 in 2012 ‘2012-w04-...
rpluim's user avatar
  • 4,645

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