Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic search & replace for Thunderbird #71

Closed
marcstern opened this issue Feb 2, 2022 · 3 comments
Closed

Generic search & replace for Thunderbird #71

marcstern opened this issue Feb 2, 2022 · 3 comments
Labels
enhancement New feature or request Thunderbird Thunderbird-only issues wontfix This will not be worked on

Comments

@marcstern
Copy link

When replying to a message, there's often some useless test I want to suppress (like some banners, anti-virus warnings, external message warning, etc.)
Would it be possible to add custom search & replace terms (regex) on the whole body?
That would be incredibly handy.
It could be triggered when opening the new message (in case of a reply).
Thnaks a lot

@marcstern marcstern added the enhancement New feature or request label Feb 2, 2022
@tdulcet
Copy link
Collaborator

tdulcet commented Feb 2, 2022

Thanks for the feature request. Unfortunately, I think this would be out of scope for this add-on, which focuses on just Unicode symbol autocorrections and only as the user types. It does not support either arbitrary autocorrections or blanket replace alls, which may cause unwanted changes and would prevent the user from undoing them. See #42 for more information about using the code in this add-on to implement other autocorrection extensions.

Thunderbird specifically already has a find and replace functionality, just go to the “Edit” menu and select “Find and Replace…”. This does not support regular expressions, but that is an issue with Firefox as well. I would recommend creating a new bug for that enhancement on BMO (https://bugzilla.mozilla.org) blocking bug 565552. However, find and replace is probably not the right mechanism to remove arbitrary HTML from an e-mail, as it would remove the text, but likely leave the formatting/styling.

@marcstern
Copy link
Author

Thanks.
I'd love to create this extension but I'm afraid I don't have the experience to do it :-(

@rugk
Copy link
Owner

rugk commented Feb 3, 2022

If so, I can only agree here. Create an issue in bugzilla for that missing functionality/RegEx search feature.
As for this add-on there is unfortunately not a lot we can do here to fulfill this request and I thus close this issue.

Or as a tip: convert HTML mails to to text-only ones, then banners etc will likely also go away.

@rugk rugk closed this as completed Feb 3, 2022
@rugk rugk added the wontfix This will not be worked on label Feb 3, 2022
@rugk rugk added the Thunderbird Thunderbird-only issues label Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Thunderbird Thunderbird-only issues wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants