Hot answers tagged

47 votes

Reading and writing email with emacs

I use Mu4e. It is well documented (also via Info), and as of this writing, actively developed. Mu4e is shipped as an add-on to mu, "a set of tools to deal with Maildirs and message files, in ...
Joe Corneli's user avatar
  • 1,786
28 votes

Reading and writing email with emacs

If you use Gnus (bundled with Emacs already), check https://github.com/redguardtoo/mastering-emacs-in-one-year-guide/blob/master/gnus-guide-en.org Here is the summary of the guide: Use minimum setup ...
chen bin's user avatar
  • 4,771
15 votes
Accepted

Outlook Calendar in org agenda

I solved this myself using excorporate. To activate and integrate excorporate I used the following configuration in my .spacemacs (since I am using spacemacs) I added excorporate to dotspacemacs-...
bombadil's user avatar
  • 537
13 votes

Reading and writing email with emacs

Notmuch I use notmuch for my emails in emacs. It does only operate on local mails which needed to be stored one message per file and I use maildir folders to which my smtp-server delivers. It ...
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 warn before sending email if Subject: is empty

One way is to hook into message-send-hook: message-send-hook is a variable defined in ‘message.el’. Its value is nil This variable may be risky if used as a file-local variable. Documentation: ...
Basil's user avatar
  • 11.9k
10 votes
Accepted

send mail later in Gnus

There is, you need to: ; Activate delayed messages: (gnus-delay-initialize) And this is also handy: ; Remove date, so delayed messages (C-c C-j) don't get a date until ; sent <mailman.1180....
asjo's user avatar
  • 1,037
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,061
8 votes
Accepted

How to make Emacs check my email and report new mail

You'll want to look at Gnus Demon. From gnus-demon.el you'll probably want gnus-demon-scan-mail or gnus-demon-add-scanmail [Defaults to 120, 60: Scan every 2 hours if idle for 1 hour]. This is ...
Jonathan Leech-Pepin's user avatar
7 votes

Reading and writing email with emacs

WANDERLUST: https://github.com/wanderlust/wanderlust FEATURES: Implementation in elisp only. Support of IMAP4rev1, NNTP, POP(POP3/APOP), MH and Maildir. Integrated access to messages based on ...
lawlist's user avatar
  • 18.6k
7 votes

Reading and writing email with emacs

I was a happy user of mew for many years. I haven't used emacs for reading and writing mail for a long time now, so this information may well be outdated. Hopefully, more recent mew users can fill it ...
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

`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

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
  • 163
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.3k
5 votes

Difference between C-x m and M-x mail

I know nothing about mail in Emacs, but running C-h k C-x m tells me that C-x m runs the command compose-mail, which is different from mail. This is presumably why they behave differently. You can ...
Radon Rosborough's user avatar
5 votes

Which, if any, of the emacs email programs is written exclusively in elisp?

The following Emacs mailers are written entirely in Emacs Lisp: RMAIL; Gnus; Wanderlust; VM. The following Emacs mailers are mostly written in Lisp, but use some components written in C: Notmuch; ...
jch's user avatar
  • 5,680
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,042
5 votes
Accepted

Gnus doesn't see mail, even though files are there

If Gnus doesn't see some or all mail in your mail directory, even though the files are there, it may be for 2 reasons. You miss or have corrupted an .overview file. An .overview file is called a NOV ...
Mirzhan Irkegulov's user avatar
5 votes
Accepted

Upload ICS calendar file to Google Calendar

There is a command line interface to Google Calendar called gcalcli. You can install it using pip: pip install gcalcli In order to import calendar files, gcalcli requires the vobject library to be ...
legoscia's user avatar
  • 6,002
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.3k
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,526
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 ...
EHartC's user avatar
  • 169
4 votes
Accepted

How would you do a mail merge?

Try this Create a Named Table #+NAME: my-data | Hostname-variable |username-variable | password-variable | |-------------------+------------------+-------------------| | Hostname1 |Username1 ...
Melioratus's user avatar
  • 4,474
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

GNUS - mark all articles in the thread as Unread

3.9.2 Thread Commands --------------------- ‘T k’ ‘C-M-k’ Mark all articles in the current (sub-)thread as read (‘gnus-summary-kill-thread’). If the prefix argument is positive, remove ...
Dmitry Alexandrov's user avatar
4 votes
Accepted

Send in mail mode?

Inside any major mode you can type M-x describe-mode (C-h m) to view its description and key bindings. mail-mode reports: C-c C-s mail-send (send the message) C-c C-c mail-send-and-exit (send the ...
Basil's user avatar
  • 11.9k
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

Trying to separate Private and Work email using mu4e contexts in emacs

There were a number of issues (mostly my ignorance) that causes at least some of my problems. Since this could happen to others, I'll post the solutions here. Things seem to be working fine ...
AstroFloyd's user avatar
4 votes

How to draft email programmatically?

Something as simple as this snippet will work, the only pitfall is that mu4e should be loaded before trying to select a context or it'll fail. From here you can "complicate" the thing as ...
Muihlinn's user avatar
  • 2,526

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