File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
src/Mail/Client/Imap/Util
tests/Mail/Client/Imap/Util Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ public function getFolderType(ListMailFolder $listMailFolder): string
119
119
case "DELETED MESSAGES " :
120
120
case "GELÖSCHTE ELEMENTE " :
121
121
case "GELÖSCHT " :
122
+ case "PAPIERKORB " :
122
123
case "INBOX " . $ delimiter . "TRASH " :
123
124
case "INBOX " . $ delimiter . "PAPIERKORB " :
124
125
case "INBOX " . $ delimiter . "DELETED ITEMS " :
@@ -133,6 +134,7 @@ public function getFolderType(ListMailFolder $listMailFolder): string
133
134
case "DRAFTS " :
134
135
case "DRAFT " :
135
136
case "ENTWÜRFE " :
137
+ case "ENTWURF " :
136
138
case "INBOX " . $ delimiter . "DRAFTS " :
137
139
$ type = MailFolder::TYPE_DRAFT ;
138
140
break ;
@@ -158,6 +160,7 @@ public function getFolderType(ListMailFolder $listMailFolder): string
158
160
case "[GOOGLE MAIL]/SPAM " :
159
161
case "[GMAIL]/SPAM " :
160
162
case "JUNK " :
163
+ case "SPAM " :
161
164
case "SPAMVERDACHT " :
162
165
case "INBOX " . $ delimiter . "JUNK " :
163
166
case "INBOX " . $ delimiter . "SPAM " :
Original file line number Diff line number Diff line change @@ -219,6 +219,29 @@ public function testGetFolderType()
219
219
$ mapper ->getFolderType ($ this ->createListMailFolder ("[ $ label]/Papierkorb " , ". " ))
220
220
);
221
221
}
222
+
223
+
224
+ $ this ->assertSame (
225
+ MailFolder::TYPE_TRASH ,
226
+ $ mapper ->getFolderType (
227
+ $ this ->createListMailFolder ("PapIerKorb " , ". " )
228
+ )
229
+ );
230
+
231
+ $ this ->assertSame (
232
+ MailFolder::TYPE_DRAFT ,
233
+ $ mapper ->getFolderType (
234
+ $ this ->createListMailFolder ("Entwurf " , "/ " )
235
+ )
236
+ );
237
+
238
+ $ this ->assertSame (
239
+ MailFolder::TYPE_JUNK ,
240
+ $ mapper ->getFolderType (
241
+ $ this ->createListMailFolder ("Spam " , "- " )
242
+ )
243
+ );
244
+
222
245
}
223
246
224
247
You can’t perform that action at this time.
0 commit comments