Hot answers tagged

4

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. Alternatively, I think you can just type them in yourself in the header, e.g. after the To: line, press enter, type Cc: and a space then add the email address you want.


3

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 messages, C.4.9: You need list your personal addresses by passing one or more --my-address=... to mu init. Note that the mu4e-user-mail-address-list which was ...


2

Display one email first and then run M-x clone-buffer to get an independent copy of the buffer. Then select the second email and display it.


2

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 much as you need. The string used to call the context is the :name you used to define it. Also you could get it from mu4e-contexts variable. All the rest is pretty ...


2

I just got mu with mu4e installed on Mojave. Here are links to the problems associated with doing so on a Mac: Cf for an explanation of the problem & hurdles: "installing mu and mu4e with homebrew with emacs from emacsforosx" https://blog.danielgempesaw.com/post/43467552978/installing-mu-and-mu4e-with-homebrew-with-emacs "A COMPLETE GUIDE TO EMAIL IN ...


2

After reading all previous answers in this thread and tweaking around, I came up with the following solution, that assumes separate contexts have been defined, which include a redefinition of mu4e-maildir and mu4e-mu-home. As stated in comments to older answers, it is necessary to quit and restart mu4e when these two variables are redefined. The trick is to ...


2

For mu version > 1.3.2. you need to define a filtering function and store its name in mu4e-contact-process-function, e.g. like in this example (defun my-mu4e-contact-filter-function (addr) (if (string-match-p (concat "\\(?:no-?reply\\|.*\\.unwanted\\.domain\\.com\\|" "unwanted\\.user@somedomain\\.com\\)") addr)...


1

Have you tried C-c M-n while writing the message? This at least should cover part of the answer. Regarding the visibility of the return receipt pop-up in mu4e, according to this thread such functionality does not exist at the moment


1

I figured out a solution by doing it just on os level. Using bindfs you could create a "read only" view to the maildir. For example if your maildir is ~/maildir create an empty directory ~/maildir_ro and then do bindfs --perms=a-w .maildir .maildir_ro Then change ~/maildir to ~/maildir_ro in your init file for mu4e as well.


1

This gets the current message the active cursor is in (plist-get (mu4e-message-at-point) :path).


1

Unfortunately mu itself doesn't let you interactuate with it in that way using predefined commands that I'm aware of. I guess that if you know enough about xapian databases, which isn't my case, you could do it. Still, you have a few options out of the box. On mu4e-contrib you have mu4e-headers-mark-all-unread-read, which probably will fit your bill for ...


1

For me an org file like - Read this [[mu4e:msgid:07DE09F4-70FC-4C03-B3BC-E3DE56F70FD5@andrew.cmu.edu][foo]] - a query [[query:msg:2][my description]] exports to this ascii text - Read this [foo] - a query [my description] [foo] <mu4e:msgid:07DE09F4-70FC-4C03-B3BC-E3DE56F70FD5@andrew.cmu.edu> [my description] <query:msg:2> ...


1

Maybe you can try auto-answer. I don't use mu4e, so the following snippet is just a pseudo-code. (defun my/mu4e-save-all-attachments (fpath) (interactive "D") (let ((auto-answer '(("<prompt-regex>" fpath)) (<mu4e-save-attachement>))) Each prompt from mu4e will be answered by the first prompted fpath.


1

If you don't want to compile altermime yourself, you could install it from macports then follow @mankoff recipe.


1

My solution (at your link) involved manually installing altermime back when I used OS X. I don't think it was hard. Perhaps only make was required when I tried?


1

I'm not sure at what point your text comes in, but since this is org-capture, you can use org-capture-prepare-finalize-hook to do postprocessing like this: (add-hook 'org-capture-prepare-finalize-hook (lambda () (unsafelinks nil))) Note that this does the postprocessing globally, so consider using the fourth argument of add-hook to do it locally or write a ...


1

As you can see in the manual, what you store is either a link to a particular message (from message-view) or the last know query to it (from headers view). I guess the latter, the query, is what gives you trouble. To avoid that, with the minimum fuss you can, either: Link from the message view. Refile first, then link. or with a little work, pack ...


1

I installed shebang.el from emacswiki: https://www.emacswiki.org/emacs/MakingScriptsExecutableOnSave Removing it solved the issue.


1

This is my answer. It works flawlessly. I hope it turns out to be useful. It is based on code from Wasamasa and Joseph Gay. ;; Microsoft safelinks decoder ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'url-parse) (defun my-decode-safelink (url) "Given a url string this function returns the corresponding decoded url" (if (string-match-p (regexp-...


1

I've ported the Python code you've linked: (require 'url-parse) (defun my-decode-safelink (url) (if (string-match-p (regexp-quote "safelinks.protection.outlook.com") url) (let* ((query (url-filename (url-generic-parse-url url))) (url (cadr (assoc "/?url" (url-parse-query-string query)))) (path (url-unhex-string url))) ...


1

I think your problem is more with mu4e-send-delay than with mu4e itself. Can you confirm which version of mu4e-send-delay you are using? That one? I'm asking because I found out several different versions, but the canonical seems to be the one I linked. This plugin seems abandoned by its creator (no update since 3 years). But maybe he will answer if you ...


1

The error is perhaps in the definition of mu4e-send-delay-setup. You have to comment the following line ... (when mu4e-compose-auto-include-date ... and also delete a ")" at the end of definition of the function. You should obtain ... (mu4e~draft-header mu4e-send-delay-header mu4e-send-delay-default-delay)))) Restart Emacs and it should be ...


1

To my understanding you're looking for a mu query (and not exactly a regexp) which will find emails that: has to:email AND has no other recip: field so something like this will do it: to:my@email.com (not cc:/.+/ not bcc:/.+/) please, note that: neither mu-query or mu4e manuals covers how to search for an empty field, so I faked it using any content ...


1

I wrote this to paste images into mu4e buffers on Linux. (defun my/clip-to-PNG () (interactive) (let ((image-file (concat default-directory "tmp/attach/" (format-time-string "tmp_%Y%m%d_%H%M%S.png")))) (shell-command-to-string (concat "xclip -o -selection clipboard -t image/png > " image-file)) image-file)) ...


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