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

Prevent proton mailboxes from enabling pgp encryption #2086

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

acasajus
Copy link
Collaborator

No description provided.

)
else:
mailbox.disable_pgp = False
flash(f"PGP is enabled on {mailbox.email}", "info")
Copy link
Contributor

Choose a reason for hiding this comment

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

"enabled" should be "disabled" here I think

Copy link
Collaborator Author

@acasajus acasajus Apr 12, 2024

Choose a reason for hiding this comment

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

this request is to enable pgp. If we want to enable pgp then disabled has to be set to False. We only force it to True if it's a proton mailbox to disable pgp.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The disable_x logic is quite confusing. I event had to edit the previous comment twice to get it right.

Copy link
Contributor

Choose a reason for hiding this comment

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

ah that's true, I think the reason it was called disable_pgp as I want the default value for a new column is false

@acasajus acasajus merged commit 015036b into master Apr 12, 2024
6 checks passed
@acasajus acasajus deleted the prevent-pgp-toggle branch April 12, 2024 13:19
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.

2 participants