Skip to content

mime: relax easy/mime structures binding#9927

Closed
monnerat wants to merge 1 commit intocurl:masterfrom
monnerat:mime-no-data
Closed

mime: relax easy/mime structures binding#9927
monnerat wants to merge 1 commit intocurl:masterfrom
monnerat:mime-no-data

Conversation

@monnerat
Copy link
Contributor

Recent changes to the library have released the strict need for an early binding of mime structures to an easy handle.

This constraint currently forces to create the handle before the mime structure and the latter cannot be attached to another handle once created (see https://curl.se/mail/lib-2022-08/0027.html).

This commit removes the handle pointers from the mime structures allowing more flexibility on their use.

When an easy handle is duplicated, bound mime structures must however still be duplicated too as their components hold send-time dynamic information.

@jay
Copy link
Member

jay commented Nov 17, 2022

"Recent changes to the library have released the strict need for an early binding of mime structures to an easy handle."

Can you please cite those changes as references in the commit, or just briefly explain what they are?

@monnerat
Copy link
Contributor Author

Can you please cite those changes as references in the commit

Done.

Deprecation and removal of codeset conversion support from the library
have released the strict need for an early binding of mime structures to
an easy handle (curl@2610142).

This constraint currently forces to create the handle before the mime
structure and the latter cannot be attached to another handle once
created (see https://curl.se/mail/lib-2022-08/0027.html).

This commit removes the handle pointers from the mime structures allowing
more flexibility on their use.

When an easy handle is duplicated, bound mime structures must however
still be duplicated too as their components hold send-time dynamic
information.
@bagder
Copy link
Member

bagder commented Nov 28, 2022

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants