Skip to content

Commit c600b3d

Browse files
committed
imap: allow %*? in folder names
With "q*uotes" or {8}l*iteral, the use of atom-special characters [RFC 9051 §5.1/§9] in folder names is allowed. Since icp_create() only gets already-processed input and does not know if an argument was quoted or not, just allow these special characters. (Dovecot also does not care.) References: GXL-599, DESK-3418 Fixes: gromox-0~666
1 parent c9f0f22 commit c600b3d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mra/imap/cmd.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,8 +1581,6 @@ int icp_create(int argc, char **argv, imap_context &ctx)
15811581
return 1804;
15821582
if (argc < 3 || strlen(argv[2]) == 0)
15831583
return 1800;
1584-
if (strpbrk(argv[2], "%*?") != nullptr)
1585-
return 1910;
15861584
std::vector<enum_folder_t> folder_list;
15871585
auto ssr = midb_agent::enum_folders(pcontext->maildir, folder_list, &errnum);
15881586
auto ret = m2icode(ssr, errnum);

0 commit comments

Comments
 (0)