Gnus development mailing list
 help / color / mirror / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: ding@gnus.org
Subject: post a message from any buffer
Date: Thu, 10 May 2018 10:36:33 +0200	[thread overview]
Message-ID: <87a7t7j4a6.fsf@mat.ucm.es> (raw)


Hi

I want to be able to send(post) a message from any buffer I am in. 
So I have set up the following

(defun my-check-gnus-start () 
  (interactive) (unless 
      (gnus-alive-p) 
    (progn 
	  (setq gnus-agent t) (gnus-unplugged) 
      (gnus nil)))) 

(defun my-gnus-summary-post-news () 
  "Start composing a message.  Post to the current group by 
  default. 
If ARG, don't do that.  If ARG is 1, prompt for a group name to 
post to.  Depending on the selected group, the message might be 
either a mail or a news." 
  (interactive) (my-check-gnus-start) ;; Bind this variable here 
  to make message mode hooks work ok.  (let ((gnus-newsgroup-name 
  "")) 
	;; make sure last viewed article doesn't affect posting 
           styles: 
    (gnus-post-news 'post gnus-newsgroup-name)))  


And I do want the following headers.

To:  Subject:  From: Uwe Brauer <oub@mat.ucm.es> Gcc: 
nnml:sent-mail --text follows this line-- 


However sometimes the Gcc keeps empty and I dont't understand why.

Any comments?

Uwe Brauer 




                 reply	other threads:[~2018-05-10  8:36 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=87a7t7j4a6.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=ding@gnus.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).