Skip to content

[After UIs introduced a multi-tranpsort screen] api!: Remove unused config smtp_certificate_checks, deprecate old transport configs #6803

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Hocuri
Copy link
Collaborator

@Hocuri Hocuri commented Apr 14, 2025

In preparation for mt, this deprecates the old configs Config::Addr, Config::MailPw, etc. which were used to pass login data to core
and the Config::Configured* configs which I replaced by the transports table.

smtp_certificate_checks was not used by anything, so I removed it instead of deprecating.

Also, fix small bug that the configured server didn't turn up in get_info().

There are still some transport-related configs left, and we will need to discuss what to do about them:

  • SentboxWatch, MvboxMove, OnlyFetchMvbox - maybe they can just stay a global setting
  • ConfiguredInboxFolder, ConfiguredMvboxFolder, ConfiguredSentboxFolder, ConfiguredTrashFolder - we probably need put these into the transports table
  • ConfiguredProvider
  • IsChatmail
  • AuthservIdCandidates - this one we can just remove

Also, fix small bug that the configured server didn't turn
up in get_info().
@Hocuri Hocuri requested a review from link2xt April 14, 2025 10:30
@Hocuri Hocuri changed the title chore: Mark transport old configs as deprecated chore: Mark old transport configs as deprecated Apr 14, 2025
@Hocuri Hocuri changed the title chore: Mark old transport configs as deprecated api!: Remove unused smtp_certificate_checks, deprecate old transport configs Apr 14, 2025
@Hocuri Hocuri changed the title api!: Remove unused smtp_certificate_checks, deprecate old transport configs api!: Remove unused config smtp_certificate_checks, deprecate old transport configs Apr 14, 2025
@@ -43,50 +43,84 @@ use crate::tools::get_abs_path;
)]
#[strum(serialize_all = "snake_case")]
pub enum Config {
/// Deprecated(2025-04).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably needs to be updated before merging

@@ -406,7 +406,6 @@ char* dc_get_blobdir (const dc_context_t* context);
* - `proxy_enabled` = Proxy enabled. Disabled by default.
* - `proxy_url` = Proxy URL. May contain multiple URLs separated by newline, but only the first one is used.
* - `imap_certificate_checks` = how to check IMAP certificates, one of the @ref DC_CERTCK flags, defaults to #DC_CERTCK_AUTO (0)
* - `smtp_certificate_checks` = deprecated option, should be set to the same value as `imap_certificate_checks` but ignored by the new core
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In deltachat.h there is mail_pw etc still around. mail_pw is even marked as "always needed".

Copy link
Collaborator Author

@Hocuri Hocuri Jun 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In deltachat.h there is mail_pw etc still around.

mail_pw etc. is still used in order for the UIs to query the entered login params. The UIs will switch to list_transports() when they implement a screen for listing and editing the transports. The reasoning for this is that UIs would have to do work twice, if they have to switch to `list_transports() now, and then later completely rework the account-login options, anyway.

mail_pw is even marked as "always needed".

We could change this, but I don't see what it has to do with the PR here? Though we will likely mark mail_pw etc. as deprecated or remove it in a few months from now, anyways, so, I don't think it's important right now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mail_pw etc. is still used in order for the UIs to query the entered login params.

Oops, wait, it's long since I opened the PR here, and when opening the PR here, I didn't know that we still want to use mail_pw etc. in the UI. I will mark the PR here as a draft, and revive it when we actually don't need these anymore.

@Hocuri Hocuri marked this pull request as draft June 18, 2025 12:05
@Hocuri Hocuri changed the title api!: Remove unused config smtp_certificate_checks, deprecate old transport configs [After UIs introduced a multi-tranpsort screen] api!: Remove unused config smtp_certificate_checks, deprecate old transport configs Jun 18, 2025
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.

3 participants