X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fimap%2Fserv_imap.c;h=d931ca144920ec7cbb1d248a3e26145e4a0d6bad;hb=df5a2fc29b002c29981d98e483c51658e3b6ad45;hp=4f63c04e39c6d53e53c1defa5948444dace97559;hpb=435faa62a4b8f943a48cfe05593b379399e4a073;p=citadel.git diff --git a/citadel/modules/imap/serv_imap.c b/citadel/modules/imap/serv_imap.c index 4f63c04e3..d931ca144 100644 --- a/citadel/modules/imap/serv_imap.c +++ b/citadel/modules/imap/serv_imap.c @@ -1234,6 +1234,7 @@ void imap_rename(int num_parms, char *parms[]) struct irl *irl = NULL; /* the list */ struct irl *irlp = NULL; /* scratch pointer */ struct irlparms irlparms; + char buf[1024]; if (strchr(parms[3], '\\') != NULL) { cprintf("%s NO Invalid character in folder name\r\n", @@ -1275,7 +1276,6 @@ void imap_rename(int num_parms, char *parms[]) return; } - /* If this is the INBOX, then RFC2060 says we have to just move the * contents. In a Citadel environment it's easier to rename the room * (already did that) and create a new inbox. @@ -1306,6 +1306,13 @@ void imap_rename(int num_parms, char *parms[]) } } + snprintf(buf, sizeof buf, "IMAP folder \"%s\" renamed to \"%s\" by %s\n", + parms[2], + parms[3], + CC->curr_user + ); + aide_message(buf, "IMAP folder rename"); + cprintf("%s OK RENAME completed\r\n", parms[0]); }