From 6feafafbe06895f6fddd71adb39bbcfb34a1d644 Mon Sep 17 00:00:00 2001 From: "Steffen (Daode) Nurpmeso" Date: Fri, 16 Oct 2015 16:46:19 +0200 Subject: [PATCH] Add `search' alias for `from' (Predrag Punosevac) --- cmd_tab.h | 2 ++ nail.1 | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/cmd_tab.h b/cmd_tab.h index ca17fbee..28941109 100644 --- a/cmd_tab.h +++ b/cmd_tab.h @@ -138,6 +138,8 @@ DS(N_("Write (append) to ")) }, { "from", &c_from, (A | MSGLIST), 0, MMNORM DS(N_("Show message headers of ")) }, + { "search", &c_from, (A | MSGLIST), 0, MMNORM + DS(N_("\"Search\" for , print matching headers")) }, { "file", &c_file, (T | M | RAWLIST), 0, 1 DS(N_("Open a new or show the current one")) }, { "followup", &c_followup, (A | R | I | MSGLIST), 0, MMNDEL diff --git a/nail.1 b/nail.1 index 67606191..fd368770 100644 --- a/nail.1 +++ b/nail.1 @@ -918,7 +918,9 @@ and .Ql t+ will display the last and the next message, respectively. The command -.Ic from +.Ic search +(a more substantial alias of the standard command +.Ic from ) will display a header summary of the given message specification list instead of their content, e.g., the following will search for subjects: . @@ -2998,6 +3000,8 @@ Alias for (f) Takes a list of message specifications and displays a summary of their message headers, as via .Ic headers . +An alias of this command is +.Ic search . Also see .Sx "Specifying messages" . . @@ -3783,6 +3787,16 @@ The use of this command is strongly discouraged since it may strip header fields that are needed to decode the message correctly. . .Mx +.It Ic search +Takes a message specification (list) and displays a header summary of +all matching messages, as via +.Ic headers . +This command is an alias of +.Ic from . +Also see +.Sx "Specifying messages" . +. +.Mx .It Ic seen Takes a message list and marks all messages as having been read. . -- 2.11.4.GIT