deltachat / deltachat-core-rust

Delta Chat Rust Core library, used by Android/iOS/desktop apps, bindings and bots 📧
https://delta.chat/en/contribute
Other
664 stars 85 forks source link

Log: Couldn't select folder "DeltaChat" #5870

Closed ChrisPHL closed 2 months ago

ChrisPHL commented 2 months ago

Dear DC developers,

since Version 1.44.0 my DC instance is not able to receive any message. If I downgrade (uninstall, install v.1.42.6 and restore from backup) all new messages are received as normal. I would expect the reception of new messages in the current version as before in version 1.42.6. I doubt the fault is related to the access to DeltaChat folder..? For clarification I append some snippets of the log file. Please feel free to contact me for further information or in case you need help trying a new debug version... with my account. I could even create an email-account on the same server my email-account is hosted on so you could try out/debug new code if needed.

device=samsung SM-G973F (lineage_beyond1lte) android=13 (eng.vince.20240719.001237, TQ3A.230901.001 dev-keys) sdk=33 memory=30M (34.93% free, 512M max) memoryClass=256 host=p3 applicationId=com.b44t.messenger app=Delta Chat 1.46.7-foss versionCode=6902 installer=org.fdroid.fdroid.privileged ignoreBatteryOptimizations=true notifications=true reliableService=true lang=de_DE rtl=false push-enabled=false push-token=

arch=64

bcc_self=1

bot=0 configured_inbox_folder=INBOX configured_mvbox_folder=INBOX.DeltaChat configured_sentbox_folder=INBOX.Sent configured_trash_folder=INBOX.Trash

database_version=114 debug_logging=0 delete_device_after=0 delete_server_after=0 delete_to_trash= deltachat_core_version=v1.140.2 disable_idle=false displayname=ChrisPHL download_limit=655360 e2ee_enabled=1

fetch_existing_msgs=0 fetched_existing_msgs=true

folders_configured=4 gossip_period=172800 imap_server_id={"name": "Dovecot"} is_chatmail=false is_configured=1 journal_mode=wal key_gen_type=0 last_cant_decrypt_outgoing_msgs=0 last_housekeeping=1723106217 last_msg_id=42932 level=awesome mdns_enabled=1 media_quality=0 messages_in_contact_requests=1091 mvbox_move=1 num_cpus=8 number_of_chat_messages=33204 number_of_chats=81 number_of_contacts=3043 only_fetch_mvbox=0 private_key_count=3 public_key_count=96 quota_exceeding=0 save_mime_headers=false scan_all_folders_debounce_secs=60 secondary_addrs= selfavatar= sentbox_watch=1 show_emails=2 sign_unencrypted=0

sync_msgs=1 uptime=0h 26m

verified_one_on_one_chats=true webrtc_instance= webxdc_realtime_enabled=true

...

--------- beginning of main 08-08 11:29:02.099 22174 22204 🔵 DeltaChat: src/imap/idle.rs:76: INBOX.DeltaChat: Idle has NewData ResponseData { raw: 4096, response: Fetch(5, [ModSeq(8706), Flags(["NonJunk"])]) } 08-08 11:29:02.127 22174 22204 🔵 DeltaChat: src/imap.rs:748: 0 mails read from "INBOX.DeltaChat". 08-08 11:29:02.187 22174 22204 🔵 DeltaChat: src/scheduler.rs:674: IMAP session supports IDLE, using it. 08-08 11:29:02.206 22174 22204 🔵 DeltaChat: src/imap/idle.rs:64: INBOX.DeltaChat: Idle entering wait-on-remote state 08-08 11:29:20.106 22174 22204 🔵 DeltaChat: src/imap/idle.rs:76: INBOX.DeltaChat: Idle has NewData ResponseData { raw: 4096, response: Fetch(10595, [ModSeq(8707), Flags(["\Seen"])]) } 08-08 11:29:20.133 22174 22204 🔵 DeltaChat: src/imap.rs:748: 0 mails read from "INBOX.DeltaChat". 08-08 11:29:20.203 22174 22204 🔵 DeltaChat: src/scheduler.rs:674: IMAP session supports IDLE, using it. 08-08 11:29:20.216 22174 22204 🔵 DeltaChat: src/imap/idle.rs:64: INBOX.DeltaChat: Idle entering wait-on-remote state 08-08 11:29:28.100 22174 22204 🔵 DeltaChat: src/imap/idle.rs:76: INBOX.DeltaChat: Idle has NewData ResponseData { raw: 4096, response: Fetch(10603, [ModSeq(8708), Flags(["\Seen"])]) } 08-08 11:29:28.139 22174 22204 🔵 DeltaChat: src/imap.rs:748: 0 mails read from "INBOX.DeltaChat". 08-08 11:29:28.200 22174 22204 🔵 DeltaChat: src/scheduler.rs:674: IMAP session supports IDLE, using it. 08-08 11:29:28.214 22174 22204 🔵 DeltaChat: src/imap/idle.rs:64: INBOX.DeltaChat: Idle entering wait-on-remote state 08-08 11:29:35.420 22174 22204 🔵 DeltaChat: src/imap.rs:333: Connecting to IMAP server 08-08 11:29:35.454 22174 22204 🔵 DeltaChat: src/net.rs:72: Resolved ha01s030.org-dns.com:993 into 62.108.32.110:993. 08-08 11:29:35.545 22174 22204 🔵 DeltaChat: src/imap.rs:412: Logging into IMAP server with LOGIN 08-08 11:29:35.597 22174 22204 🔵 DeltaChat: src/imap.rs:428: Successfully logged into IMAP server 08-08 11:29:35.668 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:97: Failed to select folder DeltaChat because it does not exist, trying to create it. 08-08 11:29:35.685 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:100: Couldn't select folder, then create() failed: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs)."). 08-08 11:29:35.708 22174 22204 🟠 DeltaChat: src/scheduler.rs:418: Failed fetch_idle: store_seen_flags_on_imap: failed to select folder: IMAP other error: failed to select or create folder DeltaChat: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs).") 08-08 11:29:35.708 22174 22204 🟠 DeltaChat: src/imap.rs:314: IMAP got rate limited, waiting for 0h 0m 1s until can connect. 08-08 11:29:46.574 22174 22204 🔵 DeltaChat: src/imap.rs:333: Connecting to IMAP server 08-08 11:29:46.582 22174 22204 🔵 DeltaChat: src/net.rs:72: Resolved ha01s030.org-dns.com:993 into 62.108.32.110:993. 08-08 11:29:46.672 22174 22204 🔵 DeltaChat: src/imap.rs:412: Logging into IMAP server with LOGIN 08-08 11:29:46.725 22174 22204 🔵 DeltaChat: src/imap.rs:428: Successfully logged into IMAP server 08-08 11:29:46.796 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:97: Failed to select folder DeltaChat because it does not exist, trying to create it. 08-08 11:29:46.809 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:100: Couldn't select folder, then create() failed: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs)."). 08-08 11:29:46.833 22174 22204 🟠 DeltaChat: src/scheduler.rs:418: Failed fetch_idle: store_seen_flags_on_imap: failed to select folder: IMAP other error: failed to select or create folder DeltaChat: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs).") 08-08 11:29:46.833 22174 22204 🟠 DeltaChat: src/imap.rs:314: IMAP got rate limited, waiting for 0h 0m 48s until can connect. 08-08 11:29:54.457 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#43 08-08 11:30:00.235 22174 22204 🔵 DeltaChat: src/imap/idle.rs:76: INBOX.DeltaChat: Idle has NewData ResponseData { raw: 4096, response: Fetch(5, [ModSeq(8710), Flags(["\Seen", "NonJunk"])]) } 08-08 11:30:00.298 22174 22204 🔵 DeltaChat: src/imap.rs:748: 0 mails read from "INBOX.DeltaChat". 08-08 11:30:00.940 22174 22174 🔵 ConversationListFragment: chatlist loading debounced 08-08 11:30:00.940 22174 22508 🔵 ConversationListFragment: executing debounced chatlist loading 08-08 11:30:00.941 22174 22174 🔵 ConversationListFragment: chatlist loading debounced 08-08 11:30:00.941 22174 22174 🔵 ConversationListFragment: chatlist loading debounced 08-08 11:30:00.942 22174 22174 🔵 ConversationListFragment: chatlist loading debounced 08-08 11:30:00.942 22174 22174 🔵 ConversationListFragment: chatlist loading debounced 08-08 11:30:00.943 22174 22204 🔵 DeltaChat: src/scheduler.rs:674: IMAP session supports IDLE, using it. 08-08 11:30:01.110 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#44 08-08 11:30:01.143 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#45 08-08 11:30:01.157 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#46 08-08 11:30:01.166 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#47 08-08 11:30:01.173 22174 22204 🔵 DeltaChat: src/imap/idle.rs:64: INBOX.DeltaChat: Idle entering wait-on-remote state 08-08 11:30:01.173 22174 22204 🔵 DeltaChat: src/imap/idle.rs:76: INBOX.DeltaChat: Idle has NewData ResponseData { raw: 4096, response: Fetch(6414, [ModSeq(8718), Flags(["\Seen"])]) } 08-08 11:30:01.189 22174 22508 🔵 ConversationListFragment: executing debounced chatlist loading 08-08 11:30:01.248 22174 22204 🔵 DeltaChat: src/imap.rs:748: 0 mails read from "INBOX.DeltaChat". 08-08 11:30:02.402 22174 22508 🔵 ConversationListFragment: executing debounced chatlist loading 08-08 11:30:02.402 22174 22174 🔵 ConversationListFragment: chatlist loading debounced 08-08 11:30:02.403 22174 22174 🔵 ConversationListFragment: chatlist loading debounced 08-08 11:30:02.404 22174 22174 🔵 ConversationListFragment: chatlist loading debounced 08-08 11:30:02.404 22174 22204 🔵 DeltaChat: src/scheduler.rs:674: IMAP session supports IDLE, using it. 08-08 11:30:02.464 22174 22204 🔵 DeltaChat: src/imap/idle.rs:64: INBOX.DeltaChat: Idle entering wait-on-remote state 08-08 11:30:02.594 22174 22508 🔵 ConversationListFragment: executing debounced chatlist loading 08-08 11:30:17.670 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#48 08-08 11:30:40.105 22174 22204 🔵 DeltaChat: src/imap.rs:333: Connecting to IMAP server 08-08 11:30:40.109 22174 22204 🔵 DeltaChat: src/net.rs:72: Resolved ha01s030.org-dns.com:993 into 62.108.32.110:993. 08-08 11:30:40.193 22174 22204 🔵 DeltaChat: src/imap.rs:412: Logging into IMAP server with LOGIN 08-08 11:30:40.239 22174 22204 🔵 DeltaChat: src/imap.rs:428: Successfully logged into IMAP server 08-08 11:30:40.314 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:97: Failed to select folder DeltaChat because it does not exist, trying to create it. 08-08 11:30:40.325 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:100: Couldn't select folder, then create() failed: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs)."). 08-08 11:30:40.344 22174 22204 🟠 DeltaChat: src/scheduler.rs:418: Failed fetch_idle: store_seen_flags_on_imap: failed to select folder: IMAP other error: failed to select or create folder DeltaChat: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs).") 08-08 11:30:40.345 22174 22204 🟠 DeltaChat: src/imap.rs:314: IMAP got rate limited, waiting for 0h 0m 55s until can connect. 08-08 11:31:34.811 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#49 08-08 11:31:35.545 22174 22204 🔵 DeltaChat: src/imap.rs:333: Connecting to IMAP server 08-08 11:31:35.552 22174 22204 🔵 DeltaChat: src/net.rs:72: Resolved ha01s030.org-dns.com:993 into 62.108.32.110:993. 08-08 11:31:35.748 22174 22204 🔵 DeltaChat: src/imap.rs:412: Logging into IMAP server with LOGIN 08-08 11:31:35.795 22174 22204 🔵 DeltaChat: src/imap.rs:428: Successfully logged into IMAP server 08-08 11:31:35.848 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:97: Failed to select folder DeltaChat because it does not exist, trying to create it. 08-08 11:31:35.859 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:100: Couldn't select folder, then create() failed: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs)."). 08-08 11:31:35.879 22174 22204 🟠 DeltaChat: src/scheduler.rs:418: Failed fetch_idle: store_seen_flags_on_imap: failed to select folder: IMAP other error: failed to select or create folder DeltaChat: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs).") 08-08 11:31:35.879 22174 22204 🟠 DeltaChat: src/imap.rs:314: IMAP got rate limited, waiting for 0h 0m 59s until can connect. 08-08 11:31:37.907 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#50 08-08 11:31:56.439 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#51 08-08 11:31:59.514 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#52 08-08 11:32:35.545 22174 22204 🔵 DeltaChat: src/imap.rs:333: Connecting to IMAP server 08-08 11:32:35.550 22174 22204 🔵 DeltaChat: src/net.rs:72: Resolved ha01s030.org-dns.com:993 into 62.108.32.110:993. 08-08 11:32:35.642 22174 22204 🔵 DeltaChat: src/imap.rs:412: Logging into IMAP server with LOGIN 08-08 11:32:35.686 22174 22204 🔵 DeltaChat: src/imap.rs:428: Successfully logged into IMAP server 08-08 11:32:35.754 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:97: Failed to select folder DeltaChat because it does not exist, trying to create it. 08-08 11:32:35.769 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:100: Couldn't select folder, then create() failed: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs)."). 08-08 11:32:35.788 22174 22204 🟠 DeltaChat: src/scheduler.rs:418: Failed fetch_idle: store_seen_flags_on_imap: failed to select folder: IMAP other error: failed to select or create folder DeltaChat: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs).") 08-08 11:32:35.788 22174 22204 🟠 DeltaChat: src/imap.rs:314: IMAP got rate limited, waiting for 0h 0m 59s until can connect. 08-08 11:33:35.545 22174 22204 🔵 DeltaChat: src/imap.rs:333: Connecting to IMAP server 08-08 11:33:35.550 22174 22204 🔵 DeltaChat: src/net.rs:72: Resolved ha01s030.org-dns.com:993 into 62.108.32.110:993. 08-08 11:33:35.689 22174 22204 🔵 DeltaChat: src/imap.rs:412: Logging into IMAP server with LOGIN 08-08 11:33:35.794 22174 22204 🔵 DeltaChat: src/imap.rs:428: Successfully logged into IMAP server 08-08 11:33:35.875 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:97: Failed to select folder DeltaChat because it does not exist, trying to create it. 08-08 11:33:35.887 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:100: Couldn't select folder, then create() failed: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs)."). 08-08 11:33:35.909 22174 22204 🟠 DeltaChat: src/scheduler.rs:418: Failed fetch_idle: store_seen_flags_on_imap: failed to select folder: IMAP other error: failed to select or create folder DeltaChat: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs).") 08-08 11:33:35.909 22174 22204 🟠 DeltaChat: src/imap.rs:314: IMAP got rate limited, waiting for 0h 0m 59s until can connect. 08-08 11:34:35.545 22174 22204 🔵 DeltaChat: src/imap.rs:333: Connecting to IMAP server 08-08 11:34:35.703 22174 22204 🔵 DeltaChat: src/net.rs:72: Resolved ha01s030.org-dns.com:993 into 62.108.32.110:993. 08-08 11:34:35.824 22174 22204 🔵 DeltaChat: src/imap.rs:412: Logging into IMAP server with LOGIN 08-08 11:34:35.904 22174 22204 🔵 DeltaChat: src/imap.rs:428: Successfully logged into IMAP server 08-08 11:34:35.960 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:97: Failed to select folder DeltaChat because it does not exist, trying to create it. 08-08 11:34:35.976 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:100: Couldn't select folder, then create() failed: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs)."). 08-08 11:34:35.993 22174 22204 🟠 DeltaChat: src/scheduler.rs:418: Failed fetch_idle: store_seen_flags_on_imap: failed to select folder: IMAP other error: failed to select or create folder DeltaChat: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs).") 08-08 11:34:35.993 22174 22204 🟠 DeltaChat: src/imap.rs:314: IMAP got rate limited, waiting for 0h 0m 59s until can connect. 08-08 11:35:35.545 22174 22204 🔵 DeltaChat: src/imap.rs:333: Connecting to IMAP server 08-08 11:35:35.548 22174 22204 🔵 DeltaChat: src/net.rs:72: Resolved ha01s030.org-dns.com:993 into 62.108.32.110:993. 08-08 11:35:35.798 22174 22204 🔵 DeltaChat: src/imap.rs:412: Logging into IMAP server with LOGIN 08-08 11:35:35.929 22174 22204 🔵 DeltaChat: src/imap.rs:428: Successfully logged into IMAP server 08-08 11:35:36.001 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:97: Failed to select folder DeltaChat because it does not exist, trying to create it. 08-08 11:35:36.013 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:100: Couldn't select folder, then create() failed: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs)."). 08-08 11:35:36.035 22174 22204 🟠 DeltaChat: src/scheduler.rs:418: Failed fetch_idle: store_seen_flags_on_imap: failed to select folder: IMAP other error: failed to select or create folder DeltaChat: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs).") 08-08 11:35:36.035 22174 22204 🟠 DeltaChat: src/imap.rs:314: IMAP got rate limited, waiting for 0h 0m 59s until can connect. 08-08 11:36:24.918 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#53 08-08 11:36:31.116 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#54 08-08 11:36:35.546 22174 22204 🔵 DeltaChat: src/imap.rs:333: Connecting to IMAP server 08-08 11:36:35.550 22174 22204 🔵 DeltaChat: src/net.rs:72: Resolved ha01s030.org-dns.com:993 into 62.108.32.110:993. 08-08 11:36:35.648 22174 22204 🔵 DeltaChat: src/imap.rs:412: Logging into IMAP server with LOGIN 08-08 11:36:35.699 22174 22204 🔵 DeltaChat: src/imap.rs:428: Successfully logged into IMAP server 08-08 11:36:35.782 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:97: Failed to select folder DeltaChat because it does not exist, trying to create it. 08-08 11:36:35.800 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:100: Couldn't select folder, then create() failed: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs)."). 08-08 11:36:35.824 22174 22204 🟠 DeltaChat: src/scheduler.rs:418: Failed fetch_idle: store_seen_flags_on_imap: failed to select folder: IMAP other error: failed to select or create folder DeltaChat: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs).") 08-08 11:36:35.824 22174 22204 🟠 DeltaChat: src/imap.rs:314: IMAP got rate limited, waiting for 0h 0m 59s until can connect. 08-08 11:36:37.350 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#55 08-08 11:36:40.461 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#56 08-08 11:36:43.556 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#57 08-08 11:36:49.768 22174 22210 🔵 DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() deltachat/deltachat-android#58 08-08 11:36:59.021 22174 22174 🔵 DeltaChat: ++++++++++++++++++ first ForegroundDetector.onActivityStarted() ++++++++++++++++++ 08-08 11:36:59.023 22174 23437 🔵 DeltaChat: calling maybeNetwork() 08-08 11:36:59.023 22174 23437 🔵 DeltaChat: maybeNetwork() returned 08-08 11:36:59.023 22174 22204 🔵 DeltaChat: src/imap.rs:326: Connecting to IMAP without waiting for ratelimit due to interrupt. 08-08 11:36:59.023 22174 22204 🔵 DeltaChat: src/imap.rs:333: Connecting to IMAP server 08-08 11:36:59.024 22174 22204 🔵 DeltaChat: src/imap/idle.rs:85: INBOX.DeltaChat: Idle wait was interrupted 08-08 11:36:59.024 22174 22204 🔵 DeltaChat: src/scheduler.rs:819: SMTP fake idle interrupted. 08-08 11:36:59.025 22174 22204 🔵 DeltaChat: src/imap/idle.rs:85: INBOX.Sent: Idle wait was interrupted 08-08 11:36:59.025 22174 22204 🔵 DeltaChat: src/smtp.rs:694: Selected rows from SMTP queue: []. 08-08 11:36:59.025 22174 22204 🔵 DeltaChat: src/smtp.rs:799: Sending MDNs. 08-08 11:36:59.025 22174 22204 🔵 DeltaChat: src/scheduler.rs:787: SMTP fake idle started. 08-08 11:36:59.025 22174 22204 🔵 DeltaChat: src/scheduler.rs:815: SMTP has no messages to retry, waiting for interrupt. 08-08 11:36:59.036 22174 22204 🔵 DeltaChat: src/net.rs:72: Resolved ha01s030.org-dns.com:993 into 62.108.32.110:993. 08-08 11:36:59.040 22174 22245 🔴 OpenGLRenderer: Unable to match the desired swap behavior. 08-08 11:36:59.055 22174 22204 🔵 DeltaChat: src/imap.rs:748: 0 mails read from "INBOX.DeltaChat". 08-08 11:36:59.055 22174 22204 🔵 DeltaChat: src/imap.rs:748: 0 mails read from "INBOX.Sent". 08-08 11:36:59.098 22174 23461 🔵 DeltaChat: ++++++++++++++++++ FetchWorker.doWork() started ++++++++++++++++++ 08-08 11:36:59.104 22174 22204 🔵 DeltaChat: src/imap.rs:412: Logging into IMAP server with LOGIN 08-08 11:36:59.126 22174 22204 🔵 DeltaChat: src/scheduler.rs:674: IMAP session supports IDLE, using it. 08-08 11:36:59.139 22174 22204 🔵 DeltaChat: src/scheduler.rs:674: IMAP session supports IDLE, using it. 08-08 11:36:59.149 22174 22204 🔵 DeltaChat: src/imap/idle.rs:64: INBOX.Sent: Idle entering wait-on-remote state 08-08 11:36:59.153 22174 22204 🔵 DeltaChat: src/imap/idle.rs:64: INBOX.DeltaChat: Idle entering wait-on-remote state 08-08 11:36:59.162 22174 22204 🔵 DeltaChat: src/imap.rs:428: Successfully logged into IMAP server 08-08 11:36:59.209 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:97: Failed to select folder DeltaChat because it does not exist, trying to create it. 08-08 11:36:59.223 22174 22204 🔵 DeltaChat: src/imap/select_folder.rs:100: Couldn't select folder, then create() failed: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs)."). 08-08 11:36:59.243 22174 22204 🟠 DeltaChat: src/scheduler.rs:418: Failed fetch_idle: store_seen_flags_on_imap: failed to select folder: IMAP other error: failed to select or create folder DeltaChat: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs).") 08-08 11:36:59.243 22174 22204 🟠 DeltaChat: src/imap.rs:314: IMAP got rate limited, waiting for 0h 0m 59s until can connect. 08-08 11:37:01.866 22174 22174 🟠 OnBackInvokedCallback: OnBackInvokedCallback is not enabled for the application. 08-08 11:37:01.866 22174 22174 🟠 OnBackInvokedCallback: Set 'android:enableOnBackInvokedCallback="true"' in the application manifest. 08-08 11:37:01.886 22174 22245 🔴 OpenGLRenderer: Unable to match the desired swap behavior. 08-08 11:37:03.077 22174 22245 🟠 Parcel : Expecting binder but got null! 08-08 11:37:03.086 22174 22245 🔴 OpenGLRenderer: Unable to match the desired swap behavior.

Would be nice if we can solve the problem together. 😊 Thanks for your great work over the years so far! (I met some of you guys years ago on CCC 😎)

Kind regards Chris

iequidoo commented 2 months ago

It looks like the "DeltaChat" folder was renamed to "INBOX.DeltaChat" because you have configured_mvbox_folder=INBOX.DeltaChat, but the log tells that there are some existing messages having imap.target=DeltaChat so Delta Chat tries to create this folder in store_seen_flags_on_imap(). Then the server doesn't allow to create the "DeltaChat" folder, but that's the second problem that can be fixed by always trying to create/select a fallback folder with name "INBOX{delimiter}DeltaChat".

EDIT: Need to understand how the older version works then. Looks like a regression though the scenario looks tricky and maybe the older version worked just by chance.

EDIT: @ChrisPHL would be good if you can check if the folder indeed was renamed. Otherwise i don't understand how Delta Chat has run into this. And what is a posiible fix, fixing up imap.target if the folder doesn't exist and can't be created? Not really a question, first need to understand the scenario.

ChrisPHL commented 2 months ago

Thank you so much for your detailed answer! I'm using an email account that is dedicated to my Delta Chat communication. This account is pretty old, older than DC but when DC came up I just used this account. So you can consider me an early DC adopter. 😉 I can assure that I never renamed any folder manually. Only thing that may be interesting in this case could be a service provider change in January 2023 (the domain where my email account is located was moved to another provider). Since I also use Thunderbird on my PC to read DC messages in addition to DC-AppImage-Client I'm not sure if Thunderbird never changed anything... 🤷‍♀️ but at least I didn't... Considering your first Edit seems the best way to solve the issue permanently. 👍

Please don't hesitate on case of any further question.

Kind regards Chris

ChrisPHL commented 2 months ago

I just saw this comment mentioning your MR. Is there a download of an installable APK file from your branch that I could use for a qick test?

iequidoo commented 2 months ago

I added a second commit that should make Delta Chat working with your database, but it's still not a complete fix because messages with incorrect imap.{folder,target} column values ("DeltaChat" instead of "INBOX.DeltaChat") will remain in your db. To build Delta Chat Android APK you should follow steps in https://github.com/deltachat/deltachat-android/blob/main/README.md. Personally i was building it using Nix and Docker, but there are other ways. Maybe an easier way is to create in the https://github.com/deltachat/deltachat-android repo a draft PR using the core with the fix, then you can download the APK file from that PR

iequidoo commented 2 months ago

@ChrisPHL, the PR is merged so you can use the core from the main branch. Or i can try to build the APK a bit later. Still need to think how to fix up your db and if this should be done manually for this particular case or fixed somehow in the code.

iequidoo commented 2 months ago

@ChrisPHL, you can try an APK from this PR f.e.: https://github.com/deltachat/deltachat-android/pull/3238 (also available here: https://download.delta.chat/android/beta/deltachat-gplay-release-1.46.11.apk); it already includes necessary fixes. And #5887 should clean up the imap table in your db so that there are no errors like this anymore:

08-08 11:29:46.833 22174 22204 🟠 DeltaChat: src/scheduler.rs:418: Failed fetch_idle: store_seen_flags_on_imap: failed to select folder: IMAP other error: failed to select or create folder DeltaChat: no response: code: None, info: Some("Client tried to access nonexistent namespace. (Mailbox name should probably be prefixed with: INBOX.) (0.001 + 0.000 secs).")
ChrisPHL commented 2 months ago

I just got the possibility to test the above linked apk file. It works for me! 👍😊 Thank you so much for your effort! (I just made a donation.)

kind regards Chris

Hocuri commented 2 months ago

@iequidoo so I think this issue here can be closed since https://github.com/deltachat/deltachat-core-rust/pull/5877 is merged?

iequidoo commented 2 months ago

Ok, let's close this as the main problem is already fixed. I'm going to finish with #5887 soon