diff --git a/man/mu-cfind.1.org b/man/mu-cfind.1.org index d355d721..61c0e58a 100644 --- a/man/mu-cfind.1.org +++ b/man/mu-cfind.1.org @@ -70,15 +70,15 @@ should only apply to name fields. addresses was seen in one of the address fields; this is to exclude addresses only seen in mailing-list messages. See the ~--my-address~ parameter to *mu init*. -# ** --after= only show addresses last seen after -# ==. == is a UNIX *time_t* value, the number of -# seconds since 1970-01-01 (in UTC). +** --after= only show addresses last seen after +==. == is a UNIX *time_t* value, the number of +seconds since 1970-01-01 (in UTC). -# From the command line, you can use the *date* command to get this value. For -# example, only consider addresses last seen after 2009-06-01, you could specify -# #+begin_example -# --after=`date +%s --date='2009-06-01'` -# #+end_example +From the command line, you can use the *date* command to get this value. For +example, only consider addresses last seen after 2020-06-01, you could specify +#+begin_example + --after=`date +%s --date='2020-06-01'` +#+end_example #+include: "muhome.inc" :minlevel 2 diff --git a/mu/mu-options.cc b/mu/mu-options.cc index a96f868e..b9637b38 100644 --- a/mu/mu-options.cc +++ b/mu/mu-options.cc @@ -191,6 +191,10 @@ sub_cfind(CLI::App& sub, Options& opts) "Regular expression pattern to match"); sub.add_flag("--personal,-p", opts.cfind.personal, "Only show 'personal' contacts"); + sub.add_option("--after", opts.cfind.after, + "Only show results after some timestamps") + ->type_name("") + ->check(CLI::PositiveNumber); sub.add_option("--maxnum,-n", opts.cfind.maxnum, "Maximum number of results") ->type_name("")