Skip to content

Instantly share code, notes, and snippets.

@wunki
Created October 9, 2013 06:16
Show Gist options
  • Save wunki/6896949 to your computer and use it in GitHub Desktop.
Save wunki/6896949 to your computer and use it in GitHub Desktop.
(defun wunki-folder-for-account (folder)
"Returns the correct folder for this account"
(lambda (msg)
(if msg
(let ((account (nth 1 (split-string (mu4e-message-field msg :maildir) "/"))))
(format "%s/%s" account folder)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment