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 #134

Merged
merged 1 commit into from
May 13, 2024

Conversation

stevenharman
Copy link
Collaborator

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

(This is replacing #132 which is the same change, but I deleted the remote. Yay me! Yay Git!)

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.
@stevenharman stevenharman merged commit 1c5cd10 into master May 13, 2024
8 checks passed
@stevenharman stevenharman deleted the strip_attachment_link_in_sidebar branch May 13, 2024 22:42
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