[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] Request for new command: addresses

From: norm
Subject: Re: [Nmh-workers] Request for new command: addresses
Date: Tue, 27 May 2014 07:55:39 -0700

Paul Fox <address@hidden> writes:

>does this do what you want?

Very nearly. Thank you muchly. It didn't address (pun unintended) some error
issues with pick, so I added two sets. Also, I made the sort case insensitive
and made some stylistic changes for clarity. Here is what I have now:


set -eu
if [ $# = 0 ]
    args=$(pick -nosequence $*)

set +e
for m in $args
    yes no | repl -cc all -query -editor false $m 2>/dev/null
done |
    sed --regexp-extended 's/\<Reply to ([^?]+)\? /\1\n/g' |
    sort --unique --ignore-case

There are still a couple of minor problems:

        As I commented earlier, in this thread, there is nothing to prevent
        some future version of repl using a different prompt. One way
        to prevent that would be to put "Reply to:" in the man page.
        I herewith request that.

        repl returns a non-zero exit code because of the the "-editor false"
        arguments , as well as to actual errors, such as an
        unreadable message. The script blissfully ignores the latter.
        I don't think that problem is worth pursuing.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]