Gnus development mailing list
 help / color / mirror / Atom feed
From: Didier Verna <verna@inf.enst.fr>
Subject: [PATCH] allow message-mail to use posting styles
Date: 31 Aug 1998 12:46:20 +0200	[thread overview]
Message-ID: <qyjk93pwhs3.fsf@metheny.enst.fr> (raw)



	Sometimes, I want to send a personnal mail while using a particular
posting style. This patch allows you to do this from the group buffer. It
basically let gnus-group-mail behave like gnus-group-post-news.

- `C-u' uses the newsgroup under the point
- `C-u 1' prompts for a newsgroup whose style to use.



1998-08-31  Didier Verna  <verna@inf.enst.fr>

	* gnus-msg.el (gnus-group-mail): make it behave like
	gnus-group-post-news with regards to the prefix (this enables the
	use of posting styles).


--- gnus-msg.el.orig	Fri Aug 28 11:51:17 1998
+++ gnus-msg.el	Mon Aug 31 12:41:02 1998
@@ -223,11 +223,20 @@
 
 ;;; Post news commands of Gnus group mode and summary mode
 
-(defun gnus-group-mail ()
-  "Start composing a mail."
-  (interactive)
-  (gnus-setup-message 'message
-    (message-mail)))
+(defun gnus-group-mail (&optional arg)
+  "Start composing a mail.
+If ARG, use the group under the point to find a posting style.
+If ARG is 1, prompt for a group name to find the posting style."
+  (interactive "P")
+  (let ((gnus-newsgroup-name
+	 (if arg
+	     (if (= 1 (prefix-numeric-value arg))
+		 (completing-read "Use style of group: " gnus-active-hashtb nil
+				  (gnus-read-active-file-p))
+	       (gnus-group-group-name))
+	   "")))
+    (gnus-setup-message 'message (message-mail))
+    ))
 
 (defun gnus-group-post-news (&optional arg)
   "Start composing a news message.


                 reply	other threads:[~1998-08-31 10:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=qyjk93pwhs3.fsf@metheny.enst.fr \
    --to=verna@inf.enst.fr \
    /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).