help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to not get the Cc header in Gnus, on reply to mail


From: Emanuel Berg
Subject: How to not get the Cc header in Gnus, on reply to mail
Date: Wed, 02 Oct 2013 21:47:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]