Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: info-gnus-english@gnu.org
Subject: How to not get the Cc header in Gnus, on reply to mail
Date: Wed, 02 Oct 2013 21:47:41 +0200	[thread overview]
Message-ID: <87ob77xxmx.fsf@nl106-137-194.student.uu.se> (raw)

When I answer a mail in Gnus (with
`gnus-article-followup-with-original') I get an
undesired Cc header (with my own mail address). I
suppose this is some hack to get a "sent messages"
archive (?), but I already have that as

(setq gnus-message-archive-group '("archived-news-and-mail") )

and

(defun save-sent-mail ()
  "Save sent messages."
  (write-file
   (format-time-string "~/Mail/sent/%Y-%m-%d_%T.m")
   nil) ) ; no confirm
(add-hook 'message-sent-hook 'save-sent-mail)

so I don't want it. I wrote this

(defun remove-cc ()
  (interactive)
  (save-excursion
    (message-goto-cc)
    (beginning-of-line)
    (kill-line) )
  (set-buffer-modified-p nil) )

which works (if invoked), but I couldn't automatize it
because I didn't manage to get it to be carried out in
the message buffer - instead it was executed in the
article mode buffer, where it made no sense.

-- 
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573

             reply	other threads:[~2013-10-02 19:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-02 19:47 Emanuel Berg [this message]
2013-10-02 21:09 ` Dmitrii Kashin
     [not found] ` <mailman.3273.1380748202.10748.info-gnus-english@gnu.org>
2013-10-02 21:40   ` Emanuel Berg
2013-10-02 22:18 ` Adam Sjøgren
     [not found] ` <mailman.3275.1380752323.10748.info-gnus-english@gnu.org>
2013-10-02 22:37   ` Emanuel Berg
2013-10-03 15:15     ` Teemu Likonen
     [not found]     ` <mailman.3311.1380813356.10748.info-gnus-english@gnu.org>
2013-10-03 19:20       ` Emanuel Berg
2013-10-03 21:26       ` Emanuel Berg
2013-10-03 22:05         ` Adam Sjøgren
     [not found]         ` <mailman.3353.1380837955.10748.info-gnus-english@gnu.org>
2013-10-03 22:22           ` Emanuel Berg
2013-10-03 22:35             ` Adam Sjøgren
     [not found]             ` <mailman.3356.1380839774.10748.info-gnus-english@gnu.org>
2013-10-03 23:26               ` Emanuel Berg

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=87ob77xxmx.fsf@nl106-137-194.student.uu.se \
    --to=embe8573@student.uu.se \
    --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).