]> granicus.if.org Git - neomutt/commitdiff
Add error message string for imap_mailbox_rename() on root folder.
authorKevin McCarthy <kevin@8t8.us>
Sun, 10 Apr 2016 21:14:10 +0000 (14:14 -0700)
committerKevin McCarthy <kevin@8t8.us>
Sun, 10 Apr 2016 21:14:10 +0000 (14:14 -0700)
This was fixed just before 1.6.0, but due to the string freeze, could
not add an error message.

imap/browse.c

index ccbf1c6fca2e740379fc6b068a8e9efb93cc2575..04d0c0babb18cc0437708d7a01e0826a60d68605 100644 (file)
@@ -319,11 +319,9 @@ int imap_mailbox_rename(const char* mailbox)
     goto fail;
   }
 
-  /* TODO: add mutt_error call, such as
-   * "Cannot rename root folder"
-   */
   if (!mx.mbox)
   {
+    mutt_error _("Cannot rename root folder");
     goto fail;
   }