diff --git a/src/scheduler/connectivity.rs b/src/scheduler/connectivity.rs
index 8b534215d..50938ab40 100644
--- a/src/scheduler/connectivity.rs
+++ b/src/scheduler/connectivity.rs
@@ -346,6 +346,10 @@ impl Context {
"#
.to_string();
+ // =============================================================================================
+ // Get the states from the RwLock
+ // =============================================================================================
+
let lock = self.scheduler.read().await;
let (folders_states, smtp) = match &*lock {
Scheduler::Running {
@@ -380,6 +384,13 @@ impl Context {
};
drop(lock);
+ // =============================================================================================
+ // Add e.g.
+ // Incoming messages
+ // - "Inbox": Connected
+ // - "Sent": Connected
+ // =============================================================================================
+
ret += &format!("{}
", stock_str::incoming_messages(self).await);
for (folder, watch, state) in &folders_states {
let w = self.get_config(*watch).await.ok_or_log(self);
@@ -417,6 +428,12 @@ impl Context {
}
ret += "
";
+ // =============================================================================================
+ // Add e.g.
+ // Outgoing messages
+ // Your last message was sent successfully
+ // =============================================================================================
+
ret += &format!(
"{}
- ",
stock_str::outgoing_messages(self).await
@@ -427,6 +444,13 @@ impl Context {
ret += &*escaper::encode_minimal(&detailed.to_string_smtp(self).await);
ret += "
";
+ // =============================================================================================
+ // Add e.g.
+ // Storage on testrun.org
+ // 1.34 GiB of 2 GiB used
+ // [======67%===== ]
+ // =============================================================================================
+
let domain = dc_tools::EmailAddress::new(
&self
.get_config(Config::ConfiguredAddr)
@@ -527,6 +551,8 @@ impl Context {
}
ret += "";
+ // =============================================================================================
+
ret += "