Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

Properly cite text in Thunderbird 68 - #75

Merged
snipsnipsnip merged 1 commit into
exteditor:masterfrom
nicoroeser:cited-text
Sep 11, 2025
Merged

snipsnipsnip merged 1 commit into
exteditor:masterfrom
nicoroeser:cited-text

Conversation

@nicoroeser

Copy link
Copy Markdown
Contributor

Hope this helps. It seems to work for my purpose (and saves me a lot of time).

Please carefully verify this code. I am not an expert on this stuff, and would not like you to lose text from your messages. I have only done very limited testing.

Fixes #66.

@nicoroeser

Copy link
Copy Markdown
Contributor Author

I’ve been using this code for some time now without problems. Has anyone else tried it?

Should work on Thunderbird 68.

NB: this also converts lines starting with “>” to cited text, even if
the text had not been cited before. Most power users might like that,
though.

And it always changes the citation leaders to default Thunderbird style.

Fixes exteditor#66.
@nicoroeser

Copy link
Copy Markdown
Contributor Author

I just replaced the commit with a fixed one. The previous version always added an extra newline character to the end of each message when returning from the external editor. This is now removed.

The additional length check for the last block is just a shortcut so that the function calls can be skipped if nothing needs to be added (i.e. the last line obtained from the external editor ended with a newline – the usual case).

Sorry for the oversight.

@nicoroeser

Copy link
Copy Markdown
Contributor Author

I have been using this code for more than three months now without seeing problems. It would be nice to get some feedback from others. Anyone?

Perhaps this can be merged? It would close #66.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cited text shows up as ordinary text after returning from external editor

2 participants