mirror of
https://github.com/chatmail/core.git
synced 2026-10-01 18:50:39 +03:00
refactor: Remove FolderMeaning and target_folder (#8456)
The `FolderMeaning` and the `target_folder()` function and related code were needed for the message moving logic. The message moving logic isn't needed anymore, so, this PR is a first step to remove it. We only ever look at one folder by now (usually the Inbox folder), so, any message moving logic isn't needed anymore because we will never notice a message that is supposed to be moved. The `target` column of the `imap` table is mostly the same as the `folder` column now. Except when the message is supposed to be deleted, then it's an empty string.
This commit is contained in:
@@ -11,6 +11,7 @@ use crate::chat::{
|
||||
use crate::chatlist::Chatlist;
|
||||
use crate::constants::DC_GCL_FOR_FORWARDING;
|
||||
use crate::contact;
|
||||
use crate::headerdef::HeaderDefMap as _;
|
||||
use crate::imap::prefetch_should_download;
|
||||
use crate::imex::{ImexMode, imex};
|
||||
use crate::key;
|
||||
|
||||
Reference in New Issue
Block a user