Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow Usage of ContentId in html #48901

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

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

m42e
Copy link
Contributor

@m42e m42e commented Jan 6, 2023

Detect usage of Content-Id in html and mark part as related, just as it would happen with a cid:<name> reference.

Q A
Branch? 6.3
Bug fix? no
New feature? yes
Deprecations? no
Tickets
License MIT
Doc PR -

Assumed you have a defined Content-Id for your attachment, as you modify and forward an id.
The HTML part will already contain the reference to that id in the cid: reference. Which means the name is no longer part of the html body. In this case it is currently not detected that the parts are related to each other.
This will be improved with this PR.

I do not consider it a bug fix. The feature has a very special use case. If you consider otherwise, let me know and I will create a PR against the maintenance branch. (I already have one prepared: https://github.com/m42e/symfony/tree/allow-usage-of-content-id-in-html-5.4 Which means the feature/fix would reach more people. Please let me know what you think.)

@carsonbot carsonbot added this to the 6.3 milestone Jan 6, 2023
@carsonbot
Copy link

Hey!

I see that this is your first PR. That is great! Welcome!

Symfony has a contribution guide which I suggest you to read.

In short:

  • Always add tests
  • Keep backward compatibility (see https://symfony.com/bc).
  • Bug fixes must be submitted against the lowest maintained branch where they apply (see https://symfony.com/releases)
  • Features and deprecations must be submitted against the 6.3 branch.

Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change.

When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor!
If this PR is merged in a lower version branch, it will be merged up to all maintained branches within a few days.

I am going to sit back now and wait for the reviews.

Cheers!

Carsonbot

@m42e m42e force-pushed the allow-usage-of-content-id-in-html branch 2 times, most recently from bf83dce to d0402c3 Compare January 6, 2023 22:53
@m42e m42e changed the title Allow Usage of ContentId in html [Mime] Allow Usage of ContentId in html Jan 6, 2023
@OskarStark OskarStark requested a review from fabpot January 7, 2023 04:57
@carsonbot carsonbot changed the title [Mime] Allow Usage of ContentId in html Allow Usage of ContentId in html Jan 9, 2023
Detect usage of Content-Id in html and mark part as related, just as it
would happen with a `cid:<name>` reference.
@m42e m42e force-pushed the allow-usage-of-content-id-in-html branch from d0402c3 to a5e4fc2 Compare January 9, 2023 11:56
@m42e m42e requested review from nicolas-grekas and removed request for fabpot January 9, 2023 15:00
@fabpot
Copy link
Member

fabpot commented Jan 9, 2023

Thank you @m42e.

@fabpot fabpot merged commit 0aa12cd into symfony:6.3 Jan 9, 2023
@fabpot fabpot mentioned this pull request May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants