mirror of
https://github.com/chatmail/core.git
synced 2026-04-22 16:06:30 +03:00
Ignore messages from all spam folders if there are many
For example, if there is both a Spam and Junk folder, both of them should be ignored, even though only one of them can be a ConfiguredSpamFolder.
This commit is contained in:
@@ -608,11 +608,6 @@ impl Context {
|
||||
Ok(mvbox.as_deref() == Some(folder_name))
|
||||
}
|
||||
|
||||
pub async fn is_spam_folder(&self, folder_name: &str) -> Result<bool> {
|
||||
let spam = self.get_config(Config::ConfiguredSpamFolder).await?;
|
||||
Ok(spam.as_deref() == Some(folder_name))
|
||||
}
|
||||
|
||||
pub(crate) fn derive_blobdir(dbfile: &PathBuf) -> PathBuf {
|
||||
let mut blob_fname = OsString::new();
|
||||
blob_fname.push(dbfile.file_name().unwrap_or_default());
|
||||
|
||||
Reference in New Issue
Block a user