diff --git a/CHANGELOG.md b/CHANGELOG.md index 29bd7b02a..959cc456c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Cache DNS results for SMTP connections #3985 - Prefer TLS over STARTTLS during autoconfiguration #4021 - Use SOCKS5 configuration for HTTP requests #4017 +- Show non-deltachat emails by default for new installations #4019 ## Fixes - Fix Securejoin for multiple devices on a joining side #3982 diff --git a/src/chat.rs b/src/chat.rs index 0f5c1553e..788e15f26 100644 --- a/src/chat.rs +++ b/src/chat.rs @@ -5133,9 +5133,6 @@ mod tests { let alice = TestContext::new_alice().await; let bob = TestContext::new_bob().await; - alice.set_config(Config::ShowEmails, Some("2")).await?; - bob.set_config(Config::ShowEmails, Some("2")).await?; - let alice_bob_contact = alice.add_or_lookup_contact(&bob).await; let contact_id = alice_bob_contact.id; let alice_chat_id = create_group_chat(&alice, ProtectionStatus::Unprotected, "grp").await?; @@ -5320,12 +5317,6 @@ mod tests { async fn test_classic_email_chat() -> Result<()> { let alice = TestContext::new_alice().await; - // Alice enables receiving classic emails. - alice - .set_config(Config::ShowEmails, Some("2")) - .await - .unwrap(); - // Alice receives a classic (non-chat) message from Bob. receive_imf( &alice, diff --git a/src/config.rs b/src/config.rs index 52a25a05b..9d3354908 100644 --- a/src/config.rs +++ b/src/config.rs @@ -134,7 +134,7 @@ pub enum Config { OnlyFetchMvbox, /// Whether to show classic emails or only chat messages. - #[strum(props(default = "0"))] // also change ShowEmails.default() on changes + #[strum(props(default = "2"))] // also change ShowEmails.default() on changes ShowEmails, /// Quality of the media files to send. diff --git a/src/constants.rs b/src/constants.rs index 8f76c68ac..7c5b2a95c 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -49,7 +49,7 @@ pub enum ShowEmails { impl Default for ShowEmails { fn default() -> Self { - ShowEmails::Off // also change Config.ShowEmails props(default) on changes + ShowEmails::All // also change Config.ShowEmails props(default) on changes } } @@ -244,7 +244,7 @@ mod tests { #[test] fn test_showemails_values() { // values may be written to disk and must not change - assert_eq!(ShowEmails::Off, ShowEmails::default()); + assert_eq!(ShowEmails::All, ShowEmails::default()); assert_eq!(ShowEmails::Off, ShowEmails::from_i32(0).unwrap()); assert_eq!( ShowEmails::AcceptedContacts, diff --git a/src/html.rs b/src/html.rs index 87b27acb3..d74a5bbac 100644 --- a/src/html.rs +++ b/src/html.rs @@ -435,7 +435,6 @@ test some special html-characters as < > and & but also " and &#x async fn test_html_forwarding() { // alice receives a non-delta html-message let alice = TestContext::new_alice().await; - alice.set_config(Config::ShowEmails, Some("2")).await.ok(); let chat = alice .create_chat_with_contact("", "sender@testrun.org") .await; @@ -481,10 +480,13 @@ test some special html-characters as < > and & but also " and &#x #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_html_forwarding_encrypted() { // Alice receives a non-delta html-message - // (`ShowEmails=1` lets Alice actually receive non-delta messages for known contacts, - // the contact is marked as known by creating a chat using `chat_with_contact()`) + // (`ShowEmails=AcceptedContacts` lets Alice actually receive non-delta messages for known + // contacts, the contact is marked as known by creating a chat using `chat_with_contact()`) let alice = TestContext::new_alice().await; - alice.set_config(Config::ShowEmails, Some("1")).await.ok(); + alice + .set_config(Config::ShowEmails, Some("1")) + .await + .unwrap(); let chat = alice .create_chat_with_contact("", "sender@testrun.org") .await; @@ -502,7 +504,10 @@ test some special html-characters as < > and & but also " and &#x // receive the message on another device let alice = TestContext::new_alice().await; - assert_eq!(alice.get_config_int(Config::ShowEmails).await.unwrap(), 0); // set to "1" above, make sure it is another db + alice + .set_config(Config::ShowEmails, Some("0")) + .await + .unwrap(); let msg = alice.recv_msg(&msg).await; assert_eq!(msg.chat_id, alice.get_self_chat().await.id); assert_eq!(msg.get_from_id(), ContactId::SELF); @@ -550,7 +555,6 @@ test some special html-characters as < > and & but also " and &#x #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_cp1252_html() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await?; receive_imf( &t, include_bytes!("../test-data/message/cp1252-html.eml"), diff --git a/src/imap.rs b/src/imap.rs index 7d4e722c4..56a2cc6e6 100644 --- a/src/imap.rs +++ b/src/imap.rs @@ -2534,7 +2534,6 @@ mod tests { t.ctx .set_config(Config::MvboxMove, Some(if mvbox_move { "1" } else { "0" })) .await?; - t.ctx.set_config(Config::ShowEmails, Some("2")).await?; if accepted_chat { let contact_id = Contact::create(&t.ctx, "", "bob@example.net").await?; diff --git a/src/mimeparser.rs b/src/mimeparser.rs index 3728a44d5..904dfb8a0 100644 --- a/src/mimeparser.rs +++ b/src/mimeparser.rs @@ -1993,7 +1993,6 @@ mod tests { use super::*; use crate::{ chatlist::Chatlist, - config::Config, constants::{Blocked, DC_DESIRED_TEXT_LEN, DC_ELLIPSIS}, message::{Message, MessageState, MessengerMessage}, receive_imf::receive_imf, @@ -3162,7 +3161,6 @@ On 2020-10-25, Bob wrote: #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_add_subj_to_multimedia_msg() { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); receive_imf( &t.ctx, include_bytes!("../test-data/message/subj_with_multimedia_msg.eml"), @@ -3446,7 +3444,6 @@ Message. #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_ms_exchange_mdn() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await?; let original = include_bytes!("../test-data/message/ms_exchange_report_original_message.eml"); diff --git a/src/reaction.rs b/src/reaction.rs index bd1a98c10..d6f2cb6f1 100644 --- a/src/reaction.rs +++ b/src/reaction.rs @@ -287,7 +287,6 @@ pub async fn get_msg_reactions(context: &Context, msg_id: MsgId) -> Result Result<()> { let alice = TestContext::new_alice().await; - alice.set_config(Config::ShowEmails, Some("2")).await?; // Alice receives BCC-self copy of a message sent to Bob. receive_imf( diff --git a/src/receive_imf/tests.rs b/src/receive_imf/tests.rs index 342b2fe36..4438cc7e6 100644 --- a/src/receive_imf/tests.rs +++ b/src/receive_imf/tests.rs @@ -5,7 +5,7 @@ use crate::aheader::EncryptPreference; use crate::chat::get_chat_contacts; use crate::chat::{get_chat_msgs, ChatItem, ChatVisibility}; use crate::chatlist::Chatlist; -use crate::constants::DC_GCL_NO_SPECIALS; +use crate::constants::{ShowEmails, DC_GCL_NO_SPECIALS}; use crate::imap::prefetch_should_download; use crate::message::Message; use crate::test_utils::{get_chat_msg, TestContext, TestContextManager}; @@ -94,7 +94,7 @@ static GRP_MAIL: &[u8] = #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_adhoc_group_show_chats_only() { let t = TestContext::new_alice().await; - assert_eq!(t.get_config_int(Config::ShowEmails).await.unwrap(), 0); + t.set_config(Config::ShowEmails, Some("0")).await.unwrap(); let chats = Chatlist::try_load(&t, 0, None, None).await.unwrap(); assert_eq!(chats.len(), 0); @@ -175,7 +175,7 @@ async fn test_adhoc_group_show_accepted_contact_accepted() { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_adhoc_group_show_all() { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); + assert_eq!(t.get_config_int(Config::ShowEmails).await.unwrap(), 2); receive_imf(&t, GRP_MAIL, false).await.unwrap(); // adhoc-group with unknown contacts with show_emails=all will show up in a single chat @@ -768,7 +768,6 @@ static GH_MAILINGLIST2: &str = #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_github_mailing_list() -> Result<()> { let t = TestContext::new_alice().await; - t.ctx.set_config(Config::ShowEmails, Some("2")).await?; receive_imf(&t.ctx, GH_MAILINGLIST, false).await?; @@ -840,10 +839,6 @@ static DC_MAILINGLIST2: &[u8] = b"Received: (Postfix, from userid 1000); Mon, 4 #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_classic_mailing_list() -> Result<()> { let t = TestContext::new_alice().await; - t.ctx - .set_config(Config::ShowEmails, Some("2")) - .await - .unwrap(); receive_imf(&t.ctx, DC_MAILINGLIST, false).await.unwrap(); let chats = Chatlist::try_load(&t.ctx, 0, None, None).await.unwrap(); let chat_id = chats.get_chat_id(0).unwrap(); @@ -885,7 +880,6 @@ Hello mailinglist!\r\n" #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_other_device_writes_to_mailinglist() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await?; receive_imf(&t, DC_MAILINGLIST, false).await.unwrap(); let first_msg = t.get_last_msg().await; let first_chat = Chat::load_from_db(&t, first_msg.chat_id).await?; @@ -935,10 +929,6 @@ async fn test_other_device_writes_to_mailinglist() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_block_mailing_list() { let t = TestContext::new_alice().await; - t.ctx - .set_config(Config::ShowEmails, Some("2")) - .await - .unwrap(); receive_imf(&t.ctx, DC_MAILINGLIST, false).await.unwrap(); t.evtracker.wait_next_incoming_message().await; @@ -973,7 +963,6 @@ async fn test_block_mailing_list() { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_mailing_list_decide_block_then_unblock() { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); receive_imf(&t, DC_MAILINGLIST, false).await.unwrap(); let blocked = Contact::get_all_blocked(&t).await.unwrap(); @@ -1004,10 +993,6 @@ async fn test_mailing_list_decide_block_then_unblock() { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_mailing_list_decide_not_now() { let t = TestContext::new_alice().await; - t.ctx - .set_config(Config::ShowEmails, Some("2")) - .await - .unwrap(); receive_imf(&t.ctx, DC_MAILINGLIST, false).await.unwrap(); @@ -1035,10 +1020,6 @@ async fn test_mailing_list_decide_not_now() { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_mailing_list_decide_accept() { let t = TestContext::new_alice().await; - t.ctx - .set_config(Config::ShowEmails, Some("2")) - .await - .unwrap(); receive_imf(&t.ctx, DC_MAILINGLIST, false).await.unwrap(); @@ -1061,7 +1042,6 @@ async fn test_mailing_list_decide_accept() { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_mailing_list_multiple_names_in_subject() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await?; receive_imf( &t, b"From: Foo Bar \n\ @@ -1086,7 +1066,6 @@ async fn test_mailing_list_multiple_names_in_subject() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_majordomo_mailing_list() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); // test mailing lists not having a `ListId:`-header receive_imf( @@ -1139,7 +1118,6 @@ async fn test_majordomo_mailing_list() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_mailchimp_mailing_list() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); receive_imf( &t, @@ -1173,7 +1151,6 @@ async fn test_mailchimp_mailing_list() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_dhl_mailing_list() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); receive_imf( &t, @@ -1202,7 +1179,6 @@ async fn test_dhl_mailing_list() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_dpd_mailing_list() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); receive_imf( &t, @@ -1231,7 +1207,6 @@ async fn test_dpd_mailing_list() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_xt_local_mailing_list() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await?; receive_imf( &t, @@ -1265,7 +1240,6 @@ async fn test_xt_local_mailing_list() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_xing_mailing_list() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await?; receive_imf( &t, @@ -1288,7 +1262,6 @@ async fn test_xing_mailing_list() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_ttline_mailing_list() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await?; receive_imf( &t, @@ -1309,7 +1282,6 @@ async fn test_ttline_mailing_list() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_mailing_list_with_mimepart_footer() { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); // the mailing list message contains two top-level texts. // the second text is a footer that is added by some mailing list software @@ -1340,7 +1312,6 @@ async fn test_mailing_list_with_mimepart_footer() { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_mailing_list_with_mimepart_footer_signed() { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); receive_imf( &t, @@ -1365,7 +1336,6 @@ async fn test_mailing_list_with_mimepart_footer_signed() { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_apply_mailinglist_changes_assigned_by_reply() { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); receive_imf(&t, GH_MAILINGLIST, false).await.unwrap(); @@ -1461,10 +1431,6 @@ async fn test_dont_show_noreply_in_contacts_list() { async fn check_dont_show_in_contacts_list(addr: &str) { let t = TestContext::new_alice().await; - t.ctx - .set_config(Config::ShowEmails, Some("2")) - .await - .unwrap(); receive_imf( &t, format!( @@ -1534,7 +1500,6 @@ async fn test_pdf_filename_continuation() { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_many_images() { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); receive_imf( &t, @@ -1811,10 +1776,6 @@ async fn create_test_alias(chat_request: bool, group_request: bool) -> (TestCont }; let alice = TestContext::new_alice().await; - alice - .set_config(Config::ShowEmails, Some("2")) - .await - .unwrap(); receive_imf(&alice, claire_request.as_bytes(), false) .await .unwrap(); @@ -1834,10 +1795,6 @@ async fn create_test_alias(chat_request: bool, group_request: bool) -> (TestCont let claire = TestContext::new().await; claire.configure_addr("claire@example.org").await; - claire - .set_config(Config::ShowEmails, Some("2")) - .await - .unwrap(); receive_imf(&claire, claire_request.as_bytes(), false) .await .unwrap(); @@ -1949,7 +1906,6 @@ async fn test_alias_answer_from_dc() { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_dont_assign_to_trash_by_parent() { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); println!("\n========= Receive a message =========="); receive_imf( &t, @@ -2025,12 +1981,6 @@ Message content", async fn test_outgoing_classic_mail_creates_chat() { let alice = TestContext::new_alice().await; - // Alice enables classic emails. - alice - .set_config(Config::ShowEmails, Some("2")) - .await - .unwrap(); - // Alice downloads outgoing classic email. receive_imf( &alice, @@ -2113,7 +2063,6 @@ Second signature"; #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_ignore_footer_status_from_mailinglist() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await?; let bob_id = Contact::add_or_lookup( &t, "", @@ -2192,7 +2141,6 @@ Original signature updated", async fn test_chat_assignment_private_classical_reply() { for outgoing_is_classical in &[true, false] { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); receive_imf( &t, @@ -2278,7 +2226,6 @@ async fn test_chat_assignment_private_chat_reply() { &[(true, true), (false, true), (false, false)] { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); receive_imf( &t, @@ -2372,7 +2319,6 @@ Sent with my Delta Chat Messenger: https://delta.chat async fn test_chat_assignment_nonprivate_classical_reply() { for outgoing_is_classical in &[true, false] { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); receive_imf( &t, @@ -2481,8 +2427,6 @@ Reply to all"#, async fn test_chat_assignment_adhoc() -> Result<()> { let alice = TestContext::new_alice().await; let bob = TestContext::new_bob().await; - alice.set_config(Config::ShowEmails, Some("2")).await?; - bob.set_config(Config::ShowEmails, Some("2")).await?; let first_thread_mime = br#"Subject: First thread Message-ID: first@example.org @@ -2588,7 +2532,6 @@ async fn test_read_receipts_dont_create_chats() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_gmx_forwarded_msg() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await?; receive_imf( &t, @@ -2633,7 +2576,6 @@ async fn test_incoming_contact_request() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_get_parent_message() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await?; let mime = br#"Subject: First Message-ID: first@example.net @@ -2707,8 +2649,6 @@ async fn test_rfc1847_encapsulation() -> Result<()> { bob.recv_msg(&first_msg).await; message::delete_msgs(&bob, &[bob.get_last_msg().await.id]).await?; - bob.set_config(Config::ShowEmails, Some("2")).await?; - // Alice sends a message to Bob using Thunderbird. let raw = include_bytes!("../../test-data/message/rfc1847_encapsulation.eml"); receive_imf(&bob, raw, false).await?; @@ -2734,7 +2674,6 @@ async fn test_invalid_to_address() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_reply_from_different_addr() -> Result<()> { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await?; // Alice creates a 2-person-group with Bob receive_imf( @@ -3042,7 +2981,6 @@ async fn test_no_private_reply_to_blocked_account() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_thunderbird_autocrypt() -> Result<()> { let t = TestContext::new_bob().await; - t.set_config(Config::ShowEmails, Some("2")).await?; let raw = include_bytes!("../../test-data/message/thunderbird_with_autocrypt.eml"); receive_imf(&t, raw, false).await?; @@ -3058,7 +2996,6 @@ async fn test_thunderbird_autocrypt() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_thunderbird_autocrypt_unencrypted() -> Result<()> { let t = TestContext::new_bob().await; - t.set_config(Config::ShowEmails, Some("2")).await?; let raw = include_bytes!("../../test-data/message/thunderbird_with_autocrypt_unencrypted.eml"); receive_imf(&t, raw, false).await?; @@ -3084,7 +3021,6 @@ async fn test_thunderbird_autocrypt_unencrypted() -> Result<()> { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_thunderbird_unsigned() -> Result<()> { let alice = TestContext::new_alice().await; - alice.set_config(Config::ShowEmails, Some("2")).await?; // Alice receives an unsigned message from Bob. let raw = include_bytes!("../../test-data/message/thunderbird_encrypted_unsigned.eml"); diff --git a/src/securejoin.rs b/src/securejoin.rs index de9edcf21..f854b7d98 100644 --- a/src/securejoin.rs +++ b/src/securejoin.rs @@ -1386,7 +1386,6 @@ mod tests { #[tokio::test(flavor = "multi_thread", worker_threads = 2)] async fn test_adhoc_group_no_qr() -> Result<()> { let alice = TestContext::new_alice().await; - alice.set_config(Config::ShowEmails, Some("2")).await?; let mime = br#"Subject: First thread Message-ID: first@example.org diff --git a/src/sql/migrations.rs b/src/sql/migrations.rs index a88596b8f..92f1c9551 100644 --- a/src/sql/migrations.rs +++ b/src/sql/migrations.rs @@ -683,6 +683,13 @@ CREATE INDEX smtp_messageid ON imap(rfc724_mid); ) .await?; } + if dbversion < 98 { + if exists_before_update && sql.get_raw_config_int("show_emails").await?.is_none() { + sql.set_raw_config_int("show_emails", ShowEmails::Off as i32) + .await?; + } + sql.set_db_version(98).await?; + } let new_version = sql .get_raw_config_int(VERSION_CFG) diff --git a/src/tools.rs b/src/tools.rs index b21665dc7..f62e4df67 100644 --- a/src/tools.rs +++ b/src/tools.rs @@ -689,9 +689,7 @@ mod tests { #![allow(clippy::indexing_slicing)] use super::*; - use crate::{ - config::Config, message::get_msg_info, receive_imf::receive_imf, test_utils::TestContext, - }; + use crate::{message::get_msg_info, receive_imf::receive_imf, test_utils::TestContext}; #[test] fn test_parse_receive_headers() { @@ -762,7 +760,6 @@ DKIM Results: Passed=true, Works=true, Allow_Keychange=true"; async fn check_parse_receive_headers_integration(raw: &[u8], expected: &str) { let t = TestContext::new_alice().await; - t.set_config(Config::ShowEmails, Some("2")).await.unwrap(); receive_imf(&t, raw, false).await.unwrap(); let msg = t.get_last_msg().await; let msg_info = get_msg_info(&t, msg.id).await.unwrap();