New answers tagged

0

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

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 C.4.9 in https://www.djcbsoftware.nl/code/mu/mu4e/Writing-messages.html). You now have to use mu to register your email address (with mu init --maildir=/path/to/mail/folder --my-address=...


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)) ...


0

To open a link from a string: (org-link-open-from-string "mu4e:msgid:....@....com") To make the stored link the latest kill in the kill ring: (advice-add 'org-store-link :after (lambda (arg &optional interactive?) (when (or (eq major-mode 'mu4e-headers-mode) (eq major-mode 'mu4e-view-mode)) (...


0

The answer was in that same tutorial with the use of contexts: (setq mu4e-contexts `( ,(make-mu4e-context :name "Gmail" :match-func (lambda (msg) (when msg (string-prefix-p "/Gmail" (mu4e-message-field msg :maildir)))) :vars '( (mu4e-trash-folder . "/Gmail/[Gmail].Trash") (mu4e-refile-folder ....


0

Perl? Seriously? #!/usr/bin/emacs --script (require 'imap) (defun imap-get-subscribed-folders (server port user pass) (let ((buffer (imap-open server port))) (unwind-protect (with-current-buffer buffer (imap-authenticate user pass) (imap-mailbox-lsub)) (imap-close buffer)))) (mapc #'(lambda (f) (princ f) (...


Top 50 recent answers are included