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

Tracking pixel is added to S/MIME mails breaking the signature #3240

Open
MexHigh opened this issue Nov 23, 2024 · 3 comments
Open

Tracking pixel is added to S/MIME mails breaking the signature #3240

MexHigh opened this issue Nov 23, 2024 · 3 comments

Comments

@MexHigh
Copy link

MexHigh commented Nov 23, 2024

Describe the bug

When sending a PGP encrypted mail, Postal does not add the tracking pixel. This is also true for PGP signed (not encrypted) mails, probably to keep the signature intact. When signing the message with S/MIME however, the tracking pixel is added, breaking the signature.

To Reproduce

  1. Enable email tracking
  2. Send PGP encrypted mail --> tracking pixel is not added
  3. Send PGP signed mail --> tracking pixel is not added
  4. Send S/MIME signed mail --> tracking pixel is added

Expected behaviour

Nothing should change the mail body when mail is signed with S/MIME.

Screenshots

S/MIME signed mail with the added tracking pixel and the signature

image

Environment details

  • OS: Manjaro Linux
  • Mail Client: Thunderbird, current version
  • Browser: Brave, current version
  • Postal Version: 3.3.4

Additional information/context

It would be interesting if Postal would have S/MIME support by itself, so it can add the tracking pixel and sign the mail afterward. This would also make it possible for transactional senders that do not support S/MIME to sign with S/MIME. However this is not part of this issue, just a proposal.

@willpower232
Copy link
Collaborator

I didn't know Postal did that but it makes sense to extend it to S/MIME too, I couldn't find where in the code this happens but I'm guessing somewhere in https://github.com/postalserver/postal/blob/main/lib/postal/message_parser.rb is accidentally doing a good but incomplete job

@MexHigh MexHigh changed the title Tracking pixel is added to S/MINE mails breaking the signature Tracking pixel is added to S/MIME mails breaking the signature Nov 25, 2024
@MexHigh
Copy link
Author

MexHigh commented Nov 25, 2024

I would love to help fixen this, but I really don't have any clue about Ruby. But I would love helping with testing!

Do you think adding a S/MIME signing function to Postal would be feasible?

@willpower232
Copy link
Collaborator

I mean nothings impossible, I don't know much about S/MIME so I guess it depends how willing you are to muddle through the message_parser.rb and figure out how the message parts work in each situation.

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

No branches or pull requests

2 participants