Skip to content

Commit

Permalink
Merge pull request #4923 from cyrusimap/fix_imap_move_logging
Browse files Browse the repository at this point in the history
imapd.c: properly log and count [X]MOVE commands
  • Loading branch information
ksmurchison committed May 21, 2024
2 parents 9244022 + 8f90d0b commit a8637b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imap/imapd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2079,11 +2079,11 @@ static void cmdloop(void)
cmd_copy(tag.s, arg1.s, arg2.s, usinguid, /*ismove*/1);

if (cmdname[0] == 'x')
client_behavior.did_move = 1;
else
client_behavior.did_xmove = 1;
else
client_behavior.did_move = 1;

prometheus_increment(CYRUS_IMAP_COPY_TOTAL);
prometheus_increment(CYRUS_IMAP_MOVE_TOTAL);
} else goto badcmd;
break;

Expand Down
1 change: 1 addition & 0 deletions imap/promdata.p
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ metric counter cyrus_imap_logout_total The total number of IMAP
metric counter cyrus_imap_list_total The total number of IMAP LISTs
metric counter cyrus_imap_lsub_total The total number of IMAP LSUBs
metric counter cyrus_imap_listrights_total The total number of IMAP LISTRIGHTSs
metric counter cyrus_imap_move_total The total number of IMAP MOVEs
metric counter cyrus_imap_myrights_total The total number of IMAP MYRIGHTSs
metric counter cyrus_imap_mupdatepush_total The total number of IMAP MUPDATEPUSHs
metric counter cyrus_imap_replace_total The total number of IMAP REPLACEs
Expand Down

0 comments on commit a8637b1

Please sign in to comment.