org-msg icon indicating copy to clipboard operation
org-msg copied to clipboard

Compatibilty with mu4e 1.12

Open danielfleischer opened this issue 1 year ago • 17 comments

  • 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.

danielfleischer avatar Apr 13 '24 14:04 danielfleischer

Hi I did some test on this branch, there is a small problem I noticed:

  1. 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.

milanglacier avatar Apr 14 '24 03:04 milanglacier

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?

danielfleischer avatar Apr 14 '24 07:04 danielfleischer

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.

martin5233 avatar Apr 18 '24 07:04 martin5233

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.

danielfleischer avatar Apr 18 '24 08:04 danielfleischer

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?

milanglacier avatar Apr 18 '24 21:04 milanglacier

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.

danielfleischer avatar Apr 19 '24 07:04 danielfleischer

Just updated my mu to 1.12.4 and it seems that it just works. No strange errors, and the mail was sent successfully.

milanglacier avatar Apr 19 '24 23:04 milanglacier

@jeremy-compostella This is working fine as of today (mu 0.12.5), can you merge it please!

abougouffa avatar Jul 20 '24 11:07 abougouffa

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.

djs42012 avatar Jul 30 '24 03:07 djs42012

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.

You are not running the PR correctly.

danielfleischer avatar Jul 30 '24 10:07 danielfleischer

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")

djs42012 avatar Jul 30 '24 13:07 djs42012

Still works with v1.12.6.

danielfleischer avatar Aug 14 '24 08:08 danielfleischer

@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.

podiki avatar Aug 19 '24 19:08 podiki

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 avatar Aug 20 '24 04:08 milanglacier

@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.

danielfleischer avatar Aug 20 '24 06:08 danielfleischer

Ready to ship; the overall change after the recent master update is removing some hooks, originally from mu4e-compose which aren't needed anymore.

danielfleischer avatar Aug 28 '24 18:08 danielfleischer

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 avatar Aug 29 '24 02:08 jeremy-compostella

@jeremy-compostella done; after your recent "backward compatibility" commit, all that is left is cleaning the hooks a bit.

danielfleischer avatar Aug 30 '24 09:08 danielfleischer