elementary / elementary/mail

Evolution Data Server disabled accounts status not taken into account, causes endless connection attempts

Open
#1,018 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
215
Forks
50
Avg merge
3h 11m
Merged PRs (30d)
1

Description

### What Happened?

Out of curiosity I wanted to try out elementary Mail to compare it with Geary, so on Fedora 41 I simply `dnf install elementary-mail` (which provided me with version 8.0.0) and ran it.

That's where I noticed that it does not seem to respect EDS' mail accounts enabled/disabled status:

* It showed all my email accounts in Mail's sidebar
* It seems it tried establishing a connection to all of them, and as some of them had not been used in years or had expired credentials, it kept prompting me with EDS' username/password prompt credentials request dialog

### Steps to Reproduce

1. Using Evolution's GUI, disable one of your email accounts (without deleting it), either by using the Preferences dialog's "Mail Accounts" section or by using the corresponding menu action when right-clicking the account in the sidebar (as shown below):
![Image](https://github.com/user-attachments/assets/5545cf1e-d073-4381-9c56-082ac6608ddd)

2. Run `io.elementary.mail`

### Expected Behavior

I don't know if you'd like to provide the ability for Mail itself to enable/disable accounts (without deleting them) in its account management UI, but if EDS had some disabled accounts already then that should probably be honored; in a situation like mine, I essentially had to force-quit the Mail app immediately after startup.

### OS Version

Other Linux

### Session Type

Secure Session (Wayland)

### Software Version

Latest release (I have run all updates)

### Log Output

```shell
$ io.elementary.mail

(io.elementary.mail:3392117): camel-WARNING **: 18:00:49.134: CamelIMAPXStore::get_folder_info_sync() reported failure without setting its GError
(io.elementary.mail:3392117): camel-WARNING **: 18:00:49.713: CamelIMAPXStore::get_folder_info_sync() reported failure without setting its GError
(io.elementary.mail:3392117): camel-WARNING **: 18:00:49.979: CamelIMAPXStore::get_folder_info_sync() reported failure without setting its GError
(io.elementary.mail:3392117): camel-CRITICAL **: 18:00:51.473: camel_session_trust_prompt: assertion 'class->trust_prompt != NULL' failed
** (io.elementary.mail:3392117): WARNING **: 18:00:51.482: GroupedFolderSourceItem.vala:102: Unable to fetch INBOX of account 'IBPSA': Failed to get capabilities: Unacceptable TLS certificate
(io.elementary.mail:3392117): camel-CRITICAL **: 18:00:51.674: camel_session_trust_prompt: assertion 'class->trust_prompt != NULL' failed
** (io.elementary.mail:3392117): WARNING **: 18:00:51.680: GroupedFolderSourceItem.vala:102: Unable to fetch INBOX/Archive of account 'IBPSA': Failed to get capabilities: Unacceptable TLS certificate
** (io.elementary.mail:3392117): WARNING **: 18:00:51.681: GroupedFolderSourceItem.vala:102: Unable to fetch INBOX/Sent of account 'IBPSA': Failed to get capabilities: Unacceptable TLS certificate
(io.elementary.mail:3392117): camel-CRITICAL **: 18:00:52.005: camel_session_trust_prompt: assertion 'class->trust_prompt != NULL' failed
** (io.elementary.mail:3392117): CRITICAL **: 18:00:52.013: AccountSourceItem.vala:64: Failed to get capabilities: Unacceptable TLS certificate
(io.elementary.mail:3392117): camel-CRITICAL **: 18:00:52.031: camel_session_trust_prompt: assertion 'class->trust_prompt != NULL' failed
** (io.elementary.mail:3392117): WARNING **: 18:00:52.034: GroupedFolderSourceItem.vala:102: Unable to fetch INBOX/Archive of account 'IBPSA info': Unacceptable TLS certificate
** (io.elementary.mail:3392117): WARNING **: 18:00:52.034: GroupedFolderSourceItem.vala:102: Unable to fetch INBOX/Sent of account 'IBPSA info': Unacceptable TLS certificate
** (io.elementary.mail:3392117): WARNING **: 18:00:52.034: GroupedFolderSourceItem.vala:102: Unable to fetch INBOX of account 'IBPSA info': Unacceptable TLS certificate
(io.elementary.mail:3392117): camel-CRITICAL **: 18:00:52.371: camel_session_trust_prompt: assertion 'class->trust_prompt != NULL' failed
** (io.elementary.mail:3392117): CRITICAL **: 18:00:52.380: AccountSourceItem.vala:64: Unacceptable TLS certificate
(io.elementary.mail:3392117): camel-WARNING **: 18:00:52.546: CamelIMAPXStore::get_folder_info_sync() reported failure without setting its GError
(io.elementary.mail:3392117): camel-WARNING **: 18:00:52.559: CamelIMAPXStore::get_folder_info_sync() reported failure without setting its GError
(io.elementary.mail:3392117): camel-WARNING **: 18:00:54.273: CamelIMAPXStore::get_folder_info_sync() reported failure without setting its GError
(io.elementary.mail:3392117): camel-WARNING **: 18:00:54.862: CamelIMAPXStore::get_folder_info_sync() reported failure without setting its GError
(io.elementary.mail:3392117): camel-WARNING **: 18:00:54.920: CamelIMAPXStore::get_folder_info_sync() reported failure without setting its GError
** (io.elementary.mail:3392117): CRITICAL **: 18:00:55.563: AccountSourceItem.vala:64: Failed to authenticate: Failed to obtain an access token for “the GOA version of my primary email account”: Account is disabled
(io.elementary.mail:3392117): camel-WARNING **: 18:00:56.324: CamelIMAPXStore::get_folder_info_sync() reported failure without setting its GError
(io.elementary.mail:3392117): camel-WARNING **: 18:00:56.397: CamelIMAPXStore::get_folder_info_sync() reported failure without setting its GError
(io.elementary.mail:3392117): camel-WARNING **: 18:00:56.433: CamelIMAPXStore::get_folder_info_sync() reported failure without setting its GError
(io.elementary.mail:3392117): camel-WARNING **: 18:00:56.745: CamelIMAPXStore::get_folder_info_sync() reported failure without setting its GError
(io.elementary.mail:3392117): camel-WARNING **: 18:00:57.935: CamelIMAPXStore::get_folder_info_sync() reported failure without setting its GError
(io.elementary.mail:3392117): camel-WARNING **: 18:00:59.701: CamelIMAPXStore::get_folder_info_sync() reported failure without setting its GError
(io.elementary.mail:3392117): camel-CRITICAL **: 18:00:59.952: camel_session_trust_prompt: assertion 'class->trust_prompt != NULL' failed
(io.elementary.mail:3392117): camel-CRITICAL **: 18:01:00.093: camel_session_trust_prompt: assertion 'class->trust_prompt != NULL' failed
```

### Hardware Info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.