Support quoted printable and filter out some auto-generated Gmail labels

This commit is contained in:
Michal Horejsek
2020-10-15 13:53:48 +02:00
parent 64fbcdc1ca
commit 79cafee2eb
2 changed files with 32 additions and 2 deletions

View File

@ -114,6 +114,8 @@ func TestGetGmailLabelsFromValue(t *testing.T) {
{" , ", toSet()},
{" ", toSet()},
{"", toSet()},
{"=?UTF-8?Q?Archived,Category_personal,test_=F0=9F=98=80=F0=9F=99=83?=", toSet("Archived", "Category personal", "test 😀🙃")},
{"IMAP_NotJunk,Foo,Opened,bar,Unread", toSet("Foo", "bar")},
}
for _, tc := range tests {
tc := tc