Messages received hours/days later

Delta Chat version

1.38.2

Expected behavior

When a contact sends me a message, I get it within a few seconds.

Actual behavior

All messages arrive hours/days later.

Critically, DeltaChat seems to be stuck try to connect to the INBOX mailbox (connects fine on the Deltachat one)

Debug logs

Logs
<!--
If applicable, debug logs can be copied from within the Delta Chat app: 

Open the _Settings_ menu -> _About_ -> _version number|Info_.

Alternatively from the Android system log:

` adb logcat -v time -s DeltaChat `

This log contains private data (e.g. mail address, provider information) which shall be removed or anonymised prior to posting.
-->
**This log may contain sensitive information. If you want to post it publicly you may examine and edit it beforehand.**

device=Google Pixel 4 (flame)
android=11 (10039322, lineage_flame-userdebug 11 RQ3A.211001.001 10039322)
sdk=30
memory=28M (66.62% free, 512M max)
memoryClass=256
host=lineage-buildkite
applicationId=chat.delta
app=Delta Chat 1.38.2-gplay
versionCode=658
installer=com.android.vending
ignoreBatteryOptimizations=true
notifications=true
reliableService=false
lang=es_ES
rtl=false

arch=64
authserv_id_candidates=
bcc_self=1
blobdir=/data/user/0/chat.delta/files/accounts/5a85e335-a856-4843-87b5-5dafa9fb304f/dc.db-blobs
bot=0
configured_inbox_folder=INBOX
configured_mvbox_folder=DeltaChat
configured_sentbox_folder=INBOX.Sent
configured_trash_folder=INBOX.Trash
database_dir=/data/user/0/chat.delta/files/accounts/5a85e335-a856-4843-87b5-5dafa9fb304f/dc.db
database_encrypted=false
database_version=101
debug_logging=0
delete_device_after=0
delete_server_after=0
delete_to_trash=<unset>
deltachat_core_version=v1.117.0
display_name=Séverin
download_limit=0
e2ee_enabled=1
entered_account_settings=severin@guakamole.org imap:skadge@guakamole.org:***:mail.guakamole.org:993:Automatic:cert_automatic:AUTH_NORMAL smtp:skadge@guakamole.org:***:smtp.guakamole.org:465:Automatic:cert_automatic:AUTH_NORMAL
fetch_existing_msgs=0
fetched_existing_msgs=true
fingerprint=40A2856EDC96DA5FFDC518F3E0BBC520E7DE8AF9
folders_configured=4
imap_server_id={"name": "Dovecot"}
is_configured=1
journal_mode=wal
key_gen_type=0
last_housekeeping=1688753416
last_msg_id=89
level=awesome
mdns_enabled=1
media_quality=0
messages_in_contact_requests=0
mvbox_move=1
num_cpus=8
number_of_chat_messages=29
number_of_chats=3
number_of_contacts=453
only_fetch_mvbox=0
private_key_count=1
public_key_count=2
quota_exceeding=0
scan_all_folders_debounce_secs=60
secondary_addrs=
selfavatar=/data/user/0/chat.delta/files/accounts/5a85e335-a856-4843-87b5-5dafa9fb304f/dc.db-blobs/selfavatar5007645625618641208.jpg
send_sync_msgs=0
sentbox_watch=0
show_emails=0
sign_unencrypted=0
socks5_enabled=0
sqlite_version=3.39.4
uptime=1h 27m 40s
used_account_settings=severin@guakamole.org imap:skadge@guakamole.org:***:mail.guakamole.org:993:Ssl:cert_automatic:AUTH_NORMAL smtp:skadge@guakamole.org:***:smtp.guakamole.org:465:Ssl:cert_automatic:AUTH_NORMAL
webrtc_instance=<unset>

--------- beginning of main
07-08 10:40:03.910 12528 14732 I chatty  : uid=10377(chat.delta) expire 2 lines
07-08 10:40:03.920 12528 14733 I chatty  : uid=10377(chat.delta) expire 1 line
07-08 10:40:03.923 12528 14734 I chatty  : uid=10377(chat.delta) AsyncTask #2 expire 2 lines
07-08 10:40:03.943 12528 14727 I chatty  : uid=10377(chat.delta) RenderThread expire 7 lines
07-08 10:40:03.966 12528 14735 I chatty  : uid=10377(chat.delta) expire 3 lines
07-08 10:40:07.197 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 13 lines
07-08 10:40:15.774 12528 12568 I chatty  : uid=10377(chat.delta) ConnectivityThr expire 10 lines
07-08 10:40:17.929 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 13 lines
07-08 10:40:28.469 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 27 lines
07-08 10:40:49.691 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 26 lines
07-08 10:41:10.289 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 13 lines
07-08 10:41:20.496 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 25 lines
07-08 10:41:40.248 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 38 lines
07-08 10:42:09.976 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 40 lines
07-08 10:42:10.855 12528 12528 I chatty  : uid=10377(chat.delta) expire 3 lines
07-08 10:42:10.856 12528 15006 I chatty  : uid=10377(chat.delta) expire 2 lines
07-08 10:42:12.474 12528 14734 I chatty  : uid=10377(chat.delta) AsyncTask #2 expire 1 line
07-08 10:42:13.372 12528 12568 I chatty  : uid=10377(chat.delta) ConnectivityThr expire 2 lines
07-08 10:42:14.753 12528 14727 I chatty  : uid=10377(chat.delta) RenderThread expire 1 line
07-08 10:42:22.753 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 14 lines
07-08 10:42:34.038 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 13 lines
07-08 10:42:34.523 12528 12568 I chatty  : uid=10377(chat.delta) ConnectivityThr expire 4 lines
07-08 10:42:44.190 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 42 lines
07-08 10:42:49.611 12528 12568 I chatty  : uid=10377(chat.delta) ConnectivityThr expire 8 lines
07-08 10:43:16.933 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 27 lines
07-08 10:43:38.153 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 14 lines
07-08 10:43:49.116 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 14 lines
07-08 10:44:00.074 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 15 lines
07-08 10:44:11.797 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 14 lines
07-08 10:44:22.582 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 14 lines
07-08 10:44:33.301 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 14 lines
07-08 10:44:44.088 12528 12562 I chatty  : uid=10377(chat.delta) eventThread expire 1 line
07-08 10:44:44.864 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032 in folder DeltaChat as seen.
07-08 10:44:45.618 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032 in folder DeltaChat as seen.
07-08 10:44:46.394 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032 in folder DeltaChat as seen.
07-08 10:44:47.155 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032,411032:411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033 in folder DeltaChat as seen.
07-08 10:44:48.053 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033 in folder DeltaChat as seen.
07-08 10:44:48.777 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033 in folder DeltaChat as seen.
07-08 10:44:49.551 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033 in folder DeltaChat as seen.
07-08 10:44:50.406 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033,411033:411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034 in folder DeltaChat as seen.
07-08 10:44:50.644 12528 12528 I DeltaChat: ++++++++++++++++++ first ForegroundDetector.onActivityStarted() ++++++++++++++++++
07-08 10:44:50.644 12528 15383 I DeltaChat: calling maybeNetwork()
07-08 10:44:50.644 12528 15383 I DeltaChat: maybeNetwork() returned
07-08 10:44:50.645 12528 12562 I DeltaChat: src/scheduler.rs:714: smtp fake idle - interrupted
07-08 10:44:50.645 12528 12562 I DeltaChat: src/imap/idle.rs:89: DeltaChat: Idle wait was interrupted: InterruptInfo { probe_network: true }
07-08 10:44:50.744 12528 12562 I DeltaChat: src/imap.rs:845: 0 mails read from "DeltaChat".
07-08 10:44:50.791 12528 12562 I DeltaChat: src/smtp.rs:655: Selected rows from SMTP queue: [].
07-08 10:44:50.791 12528 12562 I DeltaChat: src/smtp.rs:758: Sending MDNs
07-08 10:44:50.791 12528 12562 I DeltaChat: src/scheduler.rs:688: smtp fake idle - started
07-08 10:44:50.791 12528 12562 I DeltaChat: src/scheduler.rs:710: smtp has no messages to retry, waiting for interrupt
07-08 10:44:50.813 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034 in folder DeltaChat as seen.
07-08 10:44:51.041 12528 12562 I DeltaChat: src/scheduler.rs:577: IMAP session supports IDLE, using it.
07-08 10:44:51.041 12528 12562 I DeltaChat: src/imap.rs:1772: got unsolicited response Other(ResponseData { raw: 4096, response: Data { status: Ok, code: Some(HighestModSeq(261376)), information: Some("Highest") } })
07-08 10:44:51.060 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034 in folder DeltaChat as seen.
07-08 10:44:51.069 12528 12562 I DeltaChat: src/imap/idle.rs:59: DeltaChat: Idle entering wait-on-remote state
07-08 10:44:51.311 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034,411034 in folder DeltaChat as seen.
07-08 10:44:51.555 12528 12562 I DeltaChat: 411039,411039,411039 in folder D


[.......]

eltaChat as seen.
07-08 10:44:56.328 12528 12568 I DeltaChat: ++++++++++++++++++ NetworkCallback.onCapabilitiesChanged() #37
07-08 10:44:56.607 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039 in folder DeltaChat as seen.
07-08 10:44:56.841 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039 in folder DeltaChat as seen.
07-08 10:44:57.105 12528 12562 I chatty  : uid=10377(chat.delta) eventThread identical 1 line
07-08 10:44:57.347 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039 in folder DeltaChat as seen.
07-08 10:44:57.620 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039,411039:411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040 in folder DeltaChat as seen.
07-08 10:44:57.891 12528 12562 I DeltaChat: src/imap.rs:1130: Marked messages 411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040,411040 in folder DeltaChat as seen.


If this is your own server, could you setup a test account and send me credentials so I can debug it?

Repeated “Marked messages … in folder DeltaChat as seen.” messages look very strange as well, this should not happen.

(Sorry for the slow response, the notification of your answer never arrived)

Thanks!
The mail server is histed by ovh (via amen.fr). You can test with the account elouan@guakamole.org. I’ll send the password as a private message.

1 Like

I have configured elouan@guakamole.org and it worked flawlessly.

Then I noticed that in your logfile in the first post you have the email address set to severin@guakamole.org, but IMAP and SMTP login is skadge@guakamole.org. So I tried to do the same, changed the address to foobar@guakamole.org like this:
1

I have all the advanced settings entered like this:

Now I have the same problem as you reported, Inbox is constantly in the “Connecting” state:
1

Will debug now.

It’s strange though that you have different address and login name set, is it expected?

Ok, the address is not actually a problem. I configured it back to elouan@guakamole.org and the problem continues.

I do this:

$ openssl s_client -connect mail.guakamole.org:993
...
* OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN] Dovecot ready.
A100 LOGIN elouan@guakamole.org Passw0rd
A100 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY STATUS=SIZE SAVEDATE LITERAL+ NOTIFY SPECIAL-USE QUOTA] Logged in
A100 SELECT DeltaChat
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
* 3 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1689171256] UIDs valid
* OK [UIDNEXT 2776] Predicted next UID
* OK [HIGHESTMODSEQ 1855] Highest
A100 OK [READ-WRITE] Select completed (0.002 + 0.000 + 0.001 secs).
A100 SELECT Inbox.DeltaChat
* OK [CLOSED] Previous mailbox closed.
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
* 3 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1689171256] UIDs valid
* OK [UIDNEXT 2776] Predicted next UID
* OK [HIGHESTMODSEQ 1855] Highest
A100 OK [READ-WRITE] Select completed (0.003 + 0.000 + 0.002 secs).
A100 LIST "" "*"
* LIST (\HasChildren) "." INBOX
* LIST (\HasNoChildren \Trash) "." INBOX.Trash
* LIST (\HasNoChildren \UnMarked \Sent) "." INBOX.Sent
* LIST (\HasNoChildren \Junk) "." INBOX.Spam
* LIST (\HasNoChildren \UnMarked \Drafts) "." INBOX.Drafts
* LIST (\HasNoChildren \UnMarked) "." INBOX.DeltaChat
A100 OK List completed (0.008 + 0.000 + 0.007 secs).

So the problem is that the server makes DeltaChat folder selectable under the name DeltaChat, but also visible under the name INBOX.DeltaChat. DeltaChat then constantly detects “new” mails in the INBOX.DeltaChat folder during all folder scan and moves them to the DeltaChat folder. Actually the messages are just moved to the same folder, but get new UIDs. Then Delta chat again detects them as new in the INBOX.DeltaChat folder. This happens on the INBOX connection, this is why it looks constantly busy.

With this server configuration all folders are selected both under the INBOX prefix and without it, e.g. both SELECT Trash and SELECT Inbox.Trash lead to the same result.

1 Like

severin@guakamole.org is an alias of skadge@guakamole.org, and the one that I publicly share. So yes, both emails are expected.

Great! Thanks for much for the investigation! I don’t think I’ve changed any default parameter, so I guess that issue could occur with other customers of this email provider. Is this aliasing between DeltaChat and INBOX.DeltaChat an IMAP feature? If so, I guess DeltaChat would need to learn how to deal with it. If it isn’t, then we need to figure out why/how they do that…

I have made a fix:

1 Like

Yes, it is one of the many ways to configure Dovecot, ideally Delta Chat should deal with any of them.

Mailcow and other servers I used before are not configured like this though, first time I see such server, otherwise the bug would have already been fixed.

1 Like

brilliant! thanks a lot! looking forward the next release!

FWIW I had similar problems because of a wrong configuration of namespaces in dovecot.

Since I’m not an IMAP expert and since it looked like I got it wrong, I simply fixed the server configuration and kept on, without reporting anything. However, seeing this similar error, I wonder if there could be a better way to diagnose these problems, because it took me around two weeks of trial and errors to pinpoint the real problem :-(.

If users are expected to configure their own server and DC is so sensitive to the server configuration it would be great to be able to signal the users about misconfigurations or suspectful things.

I don’t know how much effort that would take, though, so it’s more a wish than something I think that can and should be done.

Also note that, in my case, Thunderbird was handling the “server misconfiguration” right, which led to more confusion when trying to make DC work…

Latest Android nightly includes the fix.

I recommend that you create an account in Delta Chat app from scratch with a new version, this infinite loop makes some database tables really huge by adding the same message lots of times into it.

2 Likes

I confirm the problem is solved! Many thanks and amazing support @link2txt!

2 Likes

There is now a beta release 1.40.0 with this fix and it should soon go into all stores: Index of /android/beta/