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

Support adding/updating/removing attachments #1

Open
Frederick888 opened this issue Jul 7, 2022 · 2 comments
Open

Support adding/updating/removing attachments #1

Frederick888 opened this issue Jul 7, 2022 · 2 comments
Labels
enhancement New feature or request Thunderbird dependency This issue requires changes in Thunderbird wontfix This will not be worked on

Comments

@Frederick888
Copy link
Owner

I'd still like to leave as much as heavy-lifting in the native messaging host. It should provide the extension with what it needs to call compose APIs.

@Frederick888 Frederick888 added the enhancement New feature or request label Jul 9, 2022
@Frederick888
Copy link
Owner Author

e.g. X-ExtEditorR-Attach: /absolute/path/to/file.zip

If user wants to use a different name, we can support something like PKGBUILD: X-ExtEditorR-Attach: another-name.zip::/absolute/path/to/file.zip. If the name or path already contains double colons, simply add another colon to the separator: X-ExtEditorR-Attach: another::name.zip:::/absolute/path/to/file::name.zip (or four colons as separator if triple's already in name/path, and so forth.)

@Frederick888
Copy link
Owner Author

It seems that I have to fully load attachments into memory to achieve this cos addAttachment() only accepts File objects, and it's not possible to create Files from file paths using pure JavaScript. So I can at best support renaming/removing attachments only, which is next to being useless.

Unless there is some workaround this is parked indefinitely.

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 dependency This issue requires changes in Thunderbird wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant