]> granicus.if.org Git - neomutt/commitdiff
rename MENU_POST to MENU_POSTPONE
authorRichard Russon <rich@flatcap.org>
Tue, 20 Aug 2019 17:26:59 +0000 (18:26 +0100)
committerRichard Russon <rich@flatcap.org>
Wed, 21 Aug 2019 13:12:06 +0000 (14:12 +0100)
'POST' implies sending an email, but the menu deals with postponed
emails.

keymap.c
keymap.h
postpone.c

index 9c9c513b5212f64950635d330f97c01944e45c0d..b88b9b62a081e3c464a95ce408063c0ebeec72c9 100644 (file)
--- a/keymap.c
+++ b/keymap.c
@@ -65,7 +65,7 @@ const struct Mapping Menus[] = {
   { "editor", MENU_EDITOR },
   { "index", MENU_MAIN },
   { "pager", MENU_PAGER },
-  { "postpone", MENU_POST },
+  { "postpone", MENU_POSTPONE },
   { "pgp", MENU_PGP },
   { "smime", MENU_SMIME },
 #ifdef CRYPT_BACKEND_GPGME
@@ -929,7 +929,7 @@ void km_init(void)
   create_bindings(OpCompose, MENU_COMPOSE);
   create_bindings(OpMain, MENU_MAIN);
   create_bindings(OpPager, MENU_PAGER);
-  create_bindings(OpPost, MENU_POST);
+  create_bindings(OpPost, MENU_POSTPONE);
   create_bindings(OpQuery, MENU_QUERY);
   create_bindings(OpAlias, MENU_ALIAS);
 
@@ -1251,7 +1251,7 @@ const struct Binding *km_get_table(int menu)
       return OpPager;
     case MENU_PGP:
       return (WithCrypto & APPLICATION_PGP) ? OpPgp : NULL;
-    case MENU_POST:
+    case MENU_POSTPONE:
       return OpPost;
     case MENU_QUERY:
       return OpQuery;
index 8d3fc2031c274496ab145eb708827fff24568ea9..9e06cb2e71fd3d242a8e820969863cb832e23909 100644 (file)
--- a/keymap.h
+++ b/keymap.h
@@ -76,7 +76,7 @@ enum MenuType
   MENU_GENERIC,          ///< Generic selection list
   MENU_MAIN,             ///< Index panel (list of emails)
   MENU_PAGER,            ///< Pager pager (email viewer)
-  MENU_POST,             ///< Select a postponed email
+  MENU_POSTPONE,         ///< Select a postponed email
   MENU_QUERY,            ///< Select from results of external query
   MENU_PGP,              ///< PGP encryption menu
   MENU_SMIME,            ///< SMIME encryption menu
index 0bc70347963632ba5c954269cef4863faf9e3403..25901f41d3fd51477d73346f8102b9f9de07bc5d 100644 (file)
@@ -218,12 +218,12 @@ static struct Email *select_msg(struct Context *ctx)
   bool done = false;
   char helpstr[1024];
 
-  struct Menu *menu = mutt_menu_new(MENU_POST);
+  struct Menu *menu = mutt_menu_new(MENU_POSTPONE);
   menu->menu_make_entry = post_make_entry;
   menu->max = ctx->mailbox->msg_count;
   menu->title = _("Postponed Messages");
   menu->data = ctx;
-  menu->help = mutt_compile_help(helpstr, sizeof(helpstr), MENU_POST, PostponeHelp);
+  menu->help = mutt_compile_help(helpstr, sizeof(helpstr), MENU_POSTPONE, PostponeHelp);
   mutt_menu_push_current(menu);
 
   /* The postponed mailbox is setup to have sorting disabled, but the global