Adding a message syntax check? (was: drafts and group parameters)

Tim Landscheidt <[email protected]> Sun, 06 Jul 2025 15:12:32 +0000
Newsgroups gmane.emacs.gnus.general
Organization https://www.tim-landscheidt.de/
Message-ID <[email protected]>
Adam Sj=C3=B8gren <[email protected]> wrote:

>>> Is there a way to have the parameters applied?

>> I don't know (and don't think so), but:

>> - Do the checks really depend on the group parameters, or
>>   can they be derived from the recipient, etc. in the mes-
>>   sage?

> Well, they depend on the group - specifically I am setting:

>     (message-syntax-checks
>       '((sender . disabled) (from . disabled) (subject-cmsg . disabled)
>         (long-lines . disabled) (quoting-style . disabled)
>         (subject . disabled)))

> as I am using Gnus as a fediverse client against my ActivityPub-server
> with nntp interface=C2=B9.

> In the ActivityPub world Subject is interpreted as "Content warning",
> so having eg an empty Subject is fine.

> [=E2=80=A6]

BTW, which message hook (or other mechanism) should be used
for a (potentially interactive) check and how?

(I'd like to check that outgoing messages do not contain
trailing whitespace except for in forwarded messages,
attached files (come to think of it=E2=80=93which are both MML
thingies), and a "-- " signature delimiter, and prompt for
each occurence if it should be removed.  If someone has
already written something like that, please share.)

(And while we are at the wishing well: I would love a
"proofreading" mechanism where new messages are blocked from
sending by default.  Only after I mark a message as
proofread, sending should be allowed.  Interactive changes
to a message should reset the proofread status.  This should
not be just a simple "Have you proofread this?" prompt where
hitting "y" might become a reflex, but something
"different".)

Tim