mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 18:06:35 +03:00
Skip Gmail labels
Gmail labels are not folders and should be skipped. For example, emails appear in the inbox and under "All Mail" as soon as it is received. The code used to wrongly conclude that the email had already been moved and left it in the inbox.
This commit is contained in:
committed by
link2xt
parent
c09a83df2b
commit
ee44a162b6
@@ -42,6 +42,15 @@ impl Imap {
|
||||
}
|
||||
};
|
||||
|
||||
// Gmail labels are not folders and should be skipped. For example,
|
||||
// emails appear in the inbox and under "All Mail" as soon as it is
|
||||
// received. The code used to wrongly conclude that the email had
|
||||
// already been moved and left it in the inbox.
|
||||
let folder_name = folder.name();
|
||||
if folder_name.starts_with("[Gmail]") {
|
||||
continue;
|
||||
}
|
||||
|
||||
let folder_meaning = get_folder_meaning(&folder);
|
||||
let folder_name_meaning = get_folder_meaning_by_name(folder.name());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user