mirror of
https://github.com/chatmail/core.git
synced 2026-05-14 20:36:30 +03:00
Linters
This commit is contained in:
@@ -17,7 +17,6 @@ def test_moved_markseen(acfactory, direct_imap, log):
|
|||||||
log.section("ac2: creating DeltaChat folder")
|
log.section("ac2: creating DeltaChat folder")
|
||||||
ac2_direct_imap = direct_imap(ac2)
|
ac2_direct_imap = direct_imap(ac2)
|
||||||
ac2_direct_imap.create_folder("DeltaChat")
|
ac2_direct_imap.create_folder("DeltaChat")
|
||||||
# ac2.set_config("delete_server_after", "0") # TODO check if this causes a test failure
|
|
||||||
ac2.set_config("sync_msgs", "0") # Do not send a sync message when accepting a contact request.
|
ac2.set_config("sync_msgs", "0") # Do not send a sync message when accepting a contact request.
|
||||||
|
|
||||||
ac2.add_or_update_transport({"addr": addr, "password": password, "imapFolder": "DeltaChat"})
|
ac2.add_or_update_transport({"addr": addr, "password": password, "imapFolder": "DeltaChat"})
|
||||||
@@ -57,11 +56,6 @@ def test_moved_markseen(acfactory, direct_imap, log):
|
|||||||
def test_markseen_message_and_mdn(acfactory, direct_imap):
|
def test_markseen_message_and_mdn(acfactory, direct_imap):
|
||||||
ac1, ac2 = acfactory.get_online_accounts(2)
|
ac1, ac2 = acfactory.get_online_accounts(2)
|
||||||
|
|
||||||
for ac in ac1, ac2:
|
|
||||||
# TODO check if this causes a test failure
|
|
||||||
# ac.set_config("delete_server_after", "0")
|
|
||||||
pass
|
|
||||||
|
|
||||||
# Do not send BCC to self, we only want to test MDN on ac1.
|
# Do not send BCC to self, we only want to test MDN on ac1.
|
||||||
ac1.set_config("bcc_self", "0")
|
ac1.set_config("bcc_self", "0")
|
||||||
|
|
||||||
|
|||||||
@@ -648,7 +648,6 @@ pub(crate) async fn ephemeral_loop(context: &Context, interrupt_receiver: Receiv
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Schedules expired IMAP messages for deletion.
|
/// Schedules expired IMAP messages for deletion.
|
||||||
#[expect(clippy::arithmetic_side_effects)]
|
|
||||||
pub(crate) async fn delete_expired_imap_messages(context: &Context) -> Result<()> {
|
pub(crate) async fn delete_expired_imap_messages(context: &Context) -> Result<()> {
|
||||||
let now = time();
|
let now = time();
|
||||||
context
|
context
|
||||||
|
|||||||
@@ -1395,7 +1395,7 @@ impl Session {
|
|||||||
context
|
context
|
||||||
.sql
|
.sql
|
||||||
.execute(
|
.execute(
|
||||||
&format!("UPDATE imap SET target='' WHERE rfc724_mid=?"),
|
"UPDATE imap SET target='' WHERE rfc724_mid=?",
|
||||||
(rfc724_mid,),
|
(rfc724_mid,),
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user