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

fix: Change BccSelf default to 0 for chatmail (#6340) #6344

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iequidoo
Copy link
Collaborator

Fix #6340

@iequidoo iequidoo marked this pull request as ready for review December 17, 2024 03:46
src/config.rs Outdated
Config::ConfiguredInboxFolder => Some("INBOX"),
Config::DeleteServerAfter => {
match Box::pin(self.get_config(Config::BccSelf)).await?.as_deref() {
Some("0") => Some("1"),
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A check for IsChatmail is forgotten

Copy link
Collaborator Author

@iequidoo iequidoo Dec 17, 2024

Choose a reason for hiding this comment

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

Though it's an interesting question -- is leaving emails on the server useful w/o BccSelf? Probably not for most email providers because outgoing messages would be missing anyway. But to keep the current behaviour a check for IsChatmail should be added. Also other MUAs don't delete emails from the server by default even if the server doesn't save sent messages to some sentbox (like Gmail does)

EDIT: Fixed and added a test on the default DeleteServerAfter behaviour.

@iequidoo iequidoo marked this pull request as draft December 17, 2024 15:28
Change `BccSelf` default to 0 for chatmail configurations and enable it upon a backup export. As for
`DeleteServerAfter` who was set to 0 upon a backup export before, make its default dependent on
`BccSelf` for chatmail. We don't need `BccSelf` for chatmail by default because we assume
single-device use. Also `BccSelf` is needed for "classic" email accounts even if `DeleteServerAfter`
is set to "immediately" to detect that a message was sent if SMTP server is slow to respond and
connection is lost before receiving the status line which isn't a problem for chatmail servers.
@iequidoo iequidoo force-pushed the iequidoo/0-bcc_self-for-chatmail branch from dc4dcf4 to a900800 Compare December 17, 2024 15:55
@iequidoo iequidoo marked this pull request as ready for review December 17, 2024 15:58
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.

Set send-copy-to-self to off, when delete-immediately-after-download is on
1 participant