On 24Nov2021 20:21, Jean Louis <bugs@gnu.support> wrote:
>When using grep, I think `grep -m1' should be used to find the first
>match, as I wonder what would be the result if words like "From:" or
>"Date: " are found in the body of the email, not only in the header.

I tend to use sed for this. A simple:

    /^$/q

prevents falling through to the message body.

Cheers,
Cameron Simpson <c...@cskk.id.au>

Reply via email to