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

Strip Attachment elements from sidebar #132

Conversation

stevenharman
Copy link
Collaborator

@stevenharman stevenharman commented Apr 19, 2024

The count of elements is (or at least can be) different depending on the email headers - like reply-to, etc… So rather than relying on the count and stripping the last two, find the <dt> containing the "Attachments:" label text, and then remove it and the element following it.

Here's what it looks like with this patch applied. Note the Attachments aren't in the sidebar, but still show up in the iframe.

snap-2024-04-19-12 26 52

The count of elements is (or at least can be) different depending on the
email headers - like reply-to, etc… So rather than relying on the count
and stripping the last two, find the `<dt>` containing the
"Attachments:" label text, and then remove it and the element following
it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant