nmh-workers
[Top] [All Lists]

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

2012-04-28 10:54:46
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.

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>