nmh-workers
[Top][All Lists]
Advanced

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

Re: [Nmh-workers] draft validation, error checking


From: Ralph Corderoy
Subject: Re: [Nmh-workers] draft validation, error checking
Date: Sat, 28 Apr 2012 16:54:32 +0100

Hi Paul,

> i'd like to elevate at least some of those warnings to fatal errors --
> i'd like to not be able to send the message until i fix the problem.
> how might i do that?

How about altering the draft so MH dislikes it too and won't do anything
with it?

    sed -i '1s/^/errors please fix\n/' ...

For bonus points the errors could be spelt out.

Or, alter your editor wrapper so on detecting errors it loops back into
the editor, again having annotated the draft with the errors, since
that's where you probably want to go next anyway.  IOW, editing can't
end until it's error free.  I can see this being an issue though if you
just want to `quit' and pick up editing another day.

Cheers, Ralph.



reply via email to

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