I want to make each mu4e-*-folder
a lambda function which takes msg
as a function, while folder
is set to produce this lambda function.
(defun my-get-eval-func (folder)
(lambda (msg)
(my-mu4e-get-folder folder msg)))
(dolist (folder (list
'mu4e-sent-folder
'mu4e-drafts-folder
'mu4e-trash-folder
'mu4e-refile-folder))
(set folder (my-get-eval-func folder)))
The code above seems not working. Why and what's the correct way to do?