---
As we talked about on irc://libera.chat/emacs I'm gonna try to pick
this work back up two years later. I've got the FSF papers signed so
that this can go into ELPA.♥
(It took a year to get it from then and then it took me a year to get
back into the mood for working on this kinds of stuff.)
(I'm also more used to working with git and sourcehut, I guess I was
kinda confused back then.)
This first patch is unrelated to what I'm gonna work later and you can
accept it or reject it, either way is fine by me, since I don't use
mu4e and the patches don't conflict. It came about because I fixed
similar flickering in the notmuch version.
autocrypt-mu4e.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/autocrypt-mu4e.el b/autocrypt-mu4e.el
index 10c6a0b..e5119ac 100644
--- a/autocrypt-mu4e.el+++ b/autocrypt-mu4e.el
@@ -48,10 +48,12 @@
(defun autocrypt-mu4e--get-header (header)
"Ask mu4e to return HEADER."
- (save-window-excursion- (with-current-buffer (mu4e-view-raw-message)- (prog1 (mail-fetch-field header)- (kill-buffer (current-buffer))))))+ (let ((path (mu4e-message-field-at-point :path)))+ (unless (and path (file-readable-p path))+ (mu4e-error "Not a readable file: %S" path))+ (with-temp-buffer+ (insert-file-contents path)+ (mail-fetch-field header))))(provide 'autocrypt-mu4e)
--
2.39.2
Uh, never mind, it should work just fine. But some mu4e user
should test it. I've made a new notmuch version, testing it out
before sending it.
It'll be in an new thread, not the one from two years ago. It's just a
different implementation all together.
Sandra Snan <sandra.snan@idiomdrottning.org> writes:
> ---> As we talked about on irc://libera.chat/emacs I'm gonna try to pick> this work back up two years later. I've got the FSF papers signed so> that this can go into ELPA.♥
Great!
> (It took a year to get it from then and then it took me a year to get> back into the mood for working on this kinds of stuff.)>> (I'm also more used to working with git and sourcehut, I guess I was> kinda confused back then.)>> This first patch is unrelated to what I'm gonna work later and you can> accept it or reject it, either way is fine by me, since I don't use> mu4e and the patches don't conflict. It came about because I fixed> similar flickering in the notmuch version.
I don't use it either, not can I quickly test it, so we might ask around
if I can find anyone would want to help out.
> autocrypt-mu4e.el | 10 ++++++----> 1 file changed, 6 insertions(+), 4 deletions(-)>> diff --git a/autocrypt-mu4e.el b/autocrypt-mu4e.el> index 10c6a0b..e5119ac 100644> --- a/autocrypt-mu4e.el> +++ b/autocrypt-mu4e.el> @@ -48,10 +48,12 @@> > (defun autocrypt-mu4e--get-header (header)> "Ask mu4e to return HEADER."> - (save-window-excursion> - (with-current-buffer (mu4e-view-raw-message)> - (prog1 (mail-fetch-field header)> - (kill-buffer (current-buffer))))))> + (let ((path (mu4e-message-field-at-point :path)))> + (unless (and path (file-readable-p path))> + (mu4e-error "Not a readable file: %S" path))> + (with-temp-buffer> + (insert-file-contents path)> + (mail-fetch-field header))))> > (provide 'autocrypt-mu4e)