Skip to content

Commit 0b8f118

Browse files
committed
pop3: fix argument mismatch for list_mail/delete_mail
References: DESK-2835, DESK-2843, DESK-2884, GXL-553 Fixes: gromox-2.37-21-g9ee74a412
1 parent 6c54bfb commit 0b8f118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mra/pop3/pop3_cmd_handler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ int cmdh_quit(std::vector<std::string> &&argv, pop3_context *pcontext)
400400
if (argv.size() != 1)
401401
return 1704;
402402
if (pcontext->is_login && pcontext->delmsg_list.size() > 0) {
403-
switch (midb_agent::delete_mail(pcontext->maildir, "inbox",
403+
switch (midb_agent::delete_mail(pcontext->maildir, base64_encode("INBOX"),
404404
pcontext->delmsg_list)) {
405405
case MIDB_RESULT_OK:
406406
break;
@@ -410,7 +410,7 @@ int cmdh_quit(std::vector<std::string> &&argv, pop3_context *pcontext)
410410
pop3_parser_log_info(pcontext, LV_WARN, "failed RW I/O with midb server");
411411
return 1721 | DISPATCH_SHOULD_CLOSE;
412412
case MIDB_RESULT_ERROR:
413-
pop3_parser_log_info(pcontext, LV_WARN, "failed to execute delete command on midb server!");
413+
pop3_parser_log_info(pcontext, LV_WARN, "failed to execute delete command on midb server");
414414
return 1722 | DISPATCH_SHOULD_CLOSE;
415415
case MIDB_LOCAL_ENOMEM:
416416
return 1728 | DISPATCH_SHOULD_CLOSE;

0 commit comments

Comments
 (0)