Norm Tovey-Walsh
unread,Sep 3, 2021, 7:52:26 AM9/3/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mu-di...@googlegroups.com, John Kitchin, Joost Kremers, Tassilo Horn
>> The value of `mu4e-refile-folder` can also be a function, so (if I
>> understand you correctly), you don't need the hook.
>
> Gosh, sometimes you don't see the forest for the trees. :-)
I’ve been meaning to reply on this thread. Apologies if I’m coming too
late to the party. My approach is to bind a different mu4e-refile-folder
(as a function) in each context. One of the providers I use is
fastmail.com, and for that context I have the refile folder set to:
(defun fastmail-mu4e-refile-folder (msg)
"Function for choosing the refile folder for my personal email.
MSG is a message p-list from mu4e."
(let ((date (mu4e-message-field msg :date)))
(cond
(date
(format "/Fastmail/archive-%s" (format-time-string "%Y-%m" date)))
(t
"/Fastmail/Archive"))))
My workflow is to refile messages out of my INBOX as I process them and
these functions move them into folders archived by year and month. Every
now and then I archive off the folders more than a couple years old.
FWIW.
Be seeing you,
norm
--
Norman Tovey-Walsh <
n...@nwalsh.com>
https://nwalsh.com/
> Quotation, n: The act of repeating erroneously the words of
> another.--Ambrose Bierce