ement.el icon indicating copy to clipboard operation
ement.el copied to clipboard

Editing formatted message

Open yantar92 opened this issue 3 years ago • 2 comments

I just tried to send a message composed in org buffer (I have (setq ement-room-send-message-filter #'ement-room-send-org-filter)). Then, I edited it quickly in the modeline and confirmed the edit.

Expected behaviour: Org formatting is preserved

Observed behaviour: Plain text is displayed after the edit.

yantar92 avatar Apr 15 '22 12:04 yantar92

The formatting is preserved when I view the message in another client.

The edited message in ement is displayed as:

yantar92​[unknown body format: nil] ~/etc/mailcap~ and ~~/.mailcap~ are checked by Emacs first. They usually link pdf to ~xdg-open~. Can you show the contents of your mailcap files? [edited]

yantar92 avatar Apr 15 '22 12:04 yantar92

Thanks, I've been aware of this bug but it doesn't happen often so I haven't looked into it yet.

I'm not sure of the best way to handle it. We might need to send the Org formatted text in the original event so we can reuse it when editing. I guess that's allowed by the spec, although it would mean sending the message body in 3 different formats.

alphapapa avatar Apr 15 '22 21:04 alphapapa

I just tested this and it seems to work now, so closing. Please let me know if anyone finds otherwise.

alphapapa avatar Sep 02 '23 02:09 alphapapa