org-msg
org-msg copied to clipboard
Compatibilty with mu4e 1.12
- Collection of various patches to make org-msg compatible with mu 1.12+.
- It will break compatibility with older versions as there are major changes in the mu library.
Hi I did some test on this branch, there is a small problem I noticed:
- there is an error message when trying to send the mail:
primitive-undo: Changes to be undone are outside visible portion of buffer
However, the mail can be sent succesfully though. I have no idea what does this message mean.
Try to comment the line:
(add-hook 'message-sent-hook 'undo t t)
I thought that isn't needed but some people came up with that fix. Also, are you following the latest code, not just the official 1.12 release?
I'm also experiencing a similar problem: After sending a mail I see the buffer with mail converted to HTML and the buffer marked as modified. The minibuffer contains a message 'Text is read-only'. The mail is successfully sent.
I have tried commenting out the line
(add-hook 'message-sent-hook 'undo t t)
but this didn't help. It wasn't clear to me, what your suggestion to follow the latest code meant. Should I try to use mu4e master in conjunction with your PR?
I have tried to debug into this, but was soon lost in unfamiliar code.
Yes, you should use mu4e from master as there were many updates to the composing code after the official release. Perhaps I should have been more explicit, as the the 1.12 code changes fast.
Yes, you should use mu4e from master as there were many updates to the composing code after the official release. Perhaps I should have been more explicit, as the the 1.12 code changes fast.
if this is the case, perhaps we can’t merge this PR now? If this PR relies on the master branch code and has unresolved problems on official release.
Since I believe most of people will just follow the official release (probably install from their package manager) instead of building from the source?
Well, there was a 1.12.4 release a couple of days ago, containing the fixes I'm talking about. So no need to compile from master, just make sure you are updating, and not use the original 1.12.0 from February.
Just updated my mu to 1.12.4 and it seems that it just works. No strange errors, and the mail was sent successfully.
@jeremy-compostella This is working fine as of today (mu 0.12.5), can you merge it please!
This works but I am getting Symbol’s function definition is void: mu4e~proc-sent after sending messages. The message sends successfully but the window does not close and I am left with a temp buffer.
This works but I am getting
Symbol’s function definition is void: mu4e~proc-sentafter sending messages. The message sends successfully but the window does not close and I am left with a temp buffer.
You are not running the PR correctly.
You’re right.I got mixed up and used:
(package! org-msg
:recipe (:host github :repo "jeremy-compostella/org-msg" :branch "jcompost/mu-1.12-support-with-backward-compatibility")
:pin "cc25647")
Instead of your PR:
(package! org-msg
:recipe (:host github :repo "danielfleischer/org-msg" :branch "1.12")
:pin "4dcd70f")
Still works with v1.12.6.
@jeremy-compostella will this be merged? I have been using it locally for a while now as otherwise org-msg doesn't work
Edit: And would be great to have a new release (version) for this as well, for downstream packaging.
An off topic mumble as an old mu4e user here:
I have switched to notmuch for about 1-2 months and I keep using org-msg to compose HTML emails using notmuch frontend. It just works as it should be. In fact, searching the issue list in this repo, the occurrences of notmuch is far less than mu4e. The most frustrating thing for mu4e, i.e the breaking change here and there just made me tired. I used some homemade shell script (in notmuch pre and post hook) to do the mail movement stuffs and I don't miss anything from mu4e.
@milanglacier please don't off topic here or in any pull-request discussion, it's not reddit or social media and the linear format makes any off topic an on topic discussion. This is strictly a technical discussion about suggested code changes to a library. As such you're not contributing anything.
Ready to ship; the overall change after the recent master update is removing some hooks, originally from mu4e-compose which aren't needed anymore.
Do you mind making a clean (or multiple) commit(s) with a nice headline and a descriptive commit. I would like to avoid nasty merge commits. Especially when one dl something that the other undo 🤔 Also, it seems that your last patch has nothing to do with my, could you move it out ?
@jeremy-compostella done; after your recent "backward compatibility" commit, all that is left is cleaning the hooks a bit.