mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 22:36:30 +03:00
Disable moving to Sentbox for now
fix https://github.com/deltachat/deltachat-core-rust/issues/2176 we can re-enable it when DC determines automatically which folders to watch and this is deployed for at least 1 release.
This commit is contained in:
@@ -2251,8 +2251,9 @@ class TestOnlineAccount:
|
|||||||
|
|
||||||
Also, the newest existing emails from each folder are fetched during onboarding.
|
Also, the newest existing emails from each folder are fetched during onboarding.
|
||||||
|
|
||||||
Additionally tests that bcc_self messages moved to the mvbox are marked as read."""
|
Additionally tests that bcc_self messages moved to the mvbox/sentbox are marked as read."""
|
||||||
ac1 = acfactory.get_online_configuring_account(mvbox=mvbox_move, move=mvbox_move)
|
ac1 = acfactory.get_online_configuring_account(mvbox=mvbox_move, move=mvbox_move)
|
||||||
|
ac1.set_config("sentbox_move", "1")
|
||||||
ac2 = acfactory.get_online_configuring_account()
|
ac2 = acfactory.get_online_configuring_account()
|
||||||
|
|
||||||
acfactory.wait_configure(ac1)
|
acfactory.wait_configure(ac1)
|
||||||
|
|||||||
@@ -63,6 +63,9 @@ pub enum Config {
|
|||||||
#[strum(props(default = "1"))]
|
#[strum(props(default = "1"))]
|
||||||
MvboxMove,
|
MvboxMove,
|
||||||
|
|
||||||
|
#[strum(props(default = "0"))]
|
||||||
|
SentboxMove, // If `MvboxMove` is true, this config is ignored. Currently only used in tests.
|
||||||
|
|
||||||
#[strum(props(default = "0"))] // also change ShowEmails.default() on changes
|
#[strum(props(default = "0"))] // also change ShowEmails.default() on changes
|
||||||
ShowEmails,
|
ShowEmails,
|
||||||
|
|
||||||
|
|||||||
@@ -119,6 +119,7 @@ impl MsgId {
|
|||||||
&& !msg.is_setupmessage()
|
&& !msg.is_setupmessage()
|
||||||
&& msg.to_id != DC_CONTACT_ID_SELF // Leave self-chat-messages in the inbox, not sure about this
|
&& msg.to_id != DC_CONTACT_ID_SELF // Leave self-chat-messages in the inbox, not sure about this
|
||||||
&& context.is_inbox(folder).await
|
&& context.is_inbox(folder).await
|
||||||
|
&& context.get_config_bool(SentboxMove).await
|
||||||
&& context.get_config(ConfiguredSentboxFolder).await.is_some()
|
&& context.get_config(ConfiguredSentboxFolder).await.is_some()
|
||||||
{
|
{
|
||||||
Ok(Some(ConfiguredSentboxFolder))
|
Ok(Some(ConfiguredSentboxFolder))
|
||||||
|
|||||||
Reference in New Issue
Block a user