mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Filter more message flags/keywords/tags
This commit is contained in:
parent
5a47893cd2
commit
8cf8502485
2 changed files with 24 additions and 5 deletions
|
|
@ -36,23 +36,37 @@ const
|
|||
},
|
||||
|
||||
ignoredTags = [
|
||||
// rfc5788
|
||||
'$forwarded',
|
||||
'$mdnsent',
|
||||
'$readreceipt',
|
||||
'$submitpending',
|
||||
'$submitted',
|
||||
// rfc9051
|
||||
'$junk',
|
||||
'$notjunk',
|
||||
'$phishing',
|
||||
// Mailo
|
||||
'sent',
|
||||
// KMail
|
||||
'$attachment',
|
||||
'$encrypted',
|
||||
'$error',
|
||||
'$ignored',
|
||||
'$invitation',
|
||||
'$queued',
|
||||
'$replied',
|
||||
'$sent',
|
||||
'$signed',
|
||||
'$error',
|
||||
'$queued',
|
||||
'$todo',
|
||||
'$watched',
|
||||
// GMail
|
||||
'$replied',
|
||||
'$attachment',
|
||||
'$notphishing',
|
||||
'$phishing',
|
||||
'junk',
|
||||
'nonjunk'
|
||||
'nonjunk',
|
||||
// Others
|
||||
'$readreceipt'
|
||||
],
|
||||
|
||||
toggleTag = (message, keyword) => {
|
||||
|
|
|
|||
|
|
@ -199,6 +199,11 @@ trait Response
|
|||
if (false !== $key) {
|
||||
$mResult['Flags'][$key] = '$mdnsent';
|
||||
}
|
||||
// KMail
|
||||
$key = \array_search('$replied', $mResult['Flags']);
|
||||
if (false !== $key) {
|
||||
$mResult['Flags'][$key] = '\\answered';
|
||||
}
|
||||
|
||||
$mResult['Flags'] = \array_unique($mResult['Flags']);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue