Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Richard G Riley <rileyrgdev@googlemail.com>
To: info-gnus-english@gnu.org
Subject: Prompt to confirm post.
Date: Fri, 07 Sep 2007 12:46:44 +0200	[thread overview]
Message-ID: <7py7fiiwh7.fsf@homelinux.net> (raw)


Hi,

I found this function using google to prompt for posting confirmation
while displaying all headers:

(defun message-check-news-syntax ()
  "Check the syntax of the message."
  (and
   (save-excursion
     (save-restriction
       (widen)
       (and
	;; We narrow to the headers and check them first.
	(save-excursion
	  (save-restriction
	    (message-narrow-to-headers)
	    (message-check-news-header-syntax)))
	;; Check the body.
	(message-check-news-body-syntax))))
					; sm: this last line is my addition
   (y-or-n-p "Post the message? ")
   ))


Is there now a better way to do this? Maybe something which does the
same for sending mail too?

             reply	other threads:[~2007-09-07 10:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-07 10:46 Richard G Riley [this message]
2007-09-26 20:57 ` Reiner Steib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7py7fiiwh7.fsf@homelinux.net \
    --to=rileyrgdev@googlemail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).