@@ -2064,16 +2064,16 @@ int icp_append(int argc, char **argv, imap_context &ctx) try
20642064 return 1918 ;
20652065}
20662066
2067- static inline bool is_flag_name (const char *flag)
2067+ static inline bool append_allowed_flag_name (const char *flag)
20682068{
2069- static constexpr const char *names[] = {" \\ Answered" , " \\ Flagged" , " \\ Seen" , " \\ Draft" };
2069+ static constexpr const char *names[] = {" \\ Answered" , " \\ Flagged" , " \\ Seen" , " \\ Draft" , " \\ Deleted " };
20702070 for (auto s : names)
20712071 if (strcasecmp (flag, s) == 0 )
20722072 return true ;
20732073 return false ;
20742074}
20752075
2076- static int icp_append_begin2 (int argc, char **argv, imap_context &ctx) try
2076+ static int icp_long_append_begin2 (int argc, char **argv, imap_context &ctx) try
20772077{
20782078 if (!ctx.is_authed ())
20792079 return 1804 | DISPATCH_BREAK;
@@ -2105,7 +2105,7 @@ static int icp_append_begin2(int argc, char **argv, imap_context &ctx) try
21052105 if (temp_argc == -1 )
21062106 return 1800 | DISPATCH_BREAK;
21072107 for (int i = 0 ; i < temp_argc; ++i)
2108- if (!is_flag_name (temp_argv[i]))
2108+ if (!append_allowed_flag_name (temp_argv[i]))
21092109 return 1800 | DISPATCH_BREAK;
21102110 }
21112111 auto pcontext = &ctx;
@@ -2130,12 +2130,12 @@ static int icp_append_begin2(int argc, char **argv, imap_context &ctx) try
21302130 return 1918 | DISPATCH_BREAK;
21312131}
21322132
2133- int icp_append_begin (int argc, char **argv, imap_context &ctx)
2133+ int icp_long_append_begin (int argc, char **argv, imap_context &ctx)
21342134{
2135- return icp_dval (argc, argv, ctx, icp_append_begin2 (argc, argv, ctx));
2135+ return icp_dval (argc, argv, ctx, icp_long_append_begin2 (argc, argv, ctx));
21362136}
21372137
2138- static int icp_append_end2 (int argc, char **argv, imap_context &ctx) try
2138+ static int icp_long_append_end2 (int argc, char **argv, imap_context &ctx) try
21392139{
21402140 auto pcontext = &ctx;
21412141 std::string content;
@@ -2199,9 +2199,9 @@ static int icp_append_end2(int argc, char **argv, imap_context &ctx) try
21992199 return 1918 ;
22002200}
22012201
2202- int icp_append_end (int argc, char **argv, imap_context &ctx)
2202+ int icp_long_append_end (int argc, char **argv, imap_context &ctx)
22032203{
2204- return icp_dval (argc, argv, ctx, icp_append_end2 (argc, argv, ctx));
2204+ return icp_dval (argc, argv, ctx, icp_long_append_end2 (argc, argv, ctx));
22052205}
22062206
22072207int icp_check (int argc, char **argv, imap_context &ctx)
0 commit comments