From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Hofert Newsgroups: gmane.emacs.help Subject: Re: Gnus: How to get/force specific header entries in a new message? Date: Thu, 24 Nov 2011 10:11:51 +0100 Message-ID: References: <403CE419-DD6D-4622-9322-D80D8D04F6B9@math.ethz.ch> <8762ia4roq.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1322125927 2958 80.91.229.12 (24 Nov 2011 09:12:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Nov 2011 09:12:07 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 24 10:12:01 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RTVLc-0000po-SH for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Nov 2011 10:12:00 +0100 Original-Received: from localhost ([::1]:33341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTVLb-0001F5-VP for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Nov 2011 04:11:59 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46140) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTVLW-0001En-6A for help-gnu-emacs@gnu.org; Thu, 24 Nov 2011 04:11:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RTVLU-0005vy-K8 for help-gnu-emacs@gnu.org; Thu, 24 Nov 2011 04:11:54 -0500 Original-Received: from edge20.ethz.ch ([82.130.99.26]:58613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RTVLU-0005vb-9N for help-gnu-emacs@gnu.org; Thu, 24 Nov 2011 04:11:52 -0500 Original-Received: from CAS22.d.ethz.ch (172.31.51.112) by edge20.ethz.ch (82.130.99.26) with Microsoft SMTP Server (TLS) id 14.1.339.1; Thu, 24 Nov 2011 10:11:46 +0100 Original-Received: from [192.168.1.221] (129.132.146.66) by CAS22.d.ethz.ch (172.31.51.112) with Microsoft SMTP Server (TLS) id 14.1.339.1; Thu, 24 Nov 2011 10:11:49 +0100 In-Reply-To: <8762ia4roq.fsf@thinkpad.tsdh.de> X-Mailer: Apple Mail (2.1251.1) X-Originating-IP: [129.132.146.66] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.130.99.26 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83035 Archived-At: Hi Tassilo, I played around with message-generate-headers-first, = message-required-mail-headers, and message-required-mail-headers as = follows: 1) (setq message-generate-headers-first t); generate all required = headers 2) (setq message-required-mail-headers '(To Cc Bcc Subject =46rom (optional . In-Reply-To) Date Message-ID = (optional . User-Agent)) message-required-headers '((optional . References))) 3) (setq gnus-sorted-header-list '("^To:" "^Cc:" "^Bcc:" "^Subject:" = "^From:" "^Date:" "^Message-ID")); sort the headers With only 2) I get=20 To: Subject: Gcc: From: =3D> Where are Cc, Bcc,=85? With 2) and 3) the same happens (well, no surprise).=20 With 1) and 2), I am asked for To, Cc, and Bcc and the header looks like = this: To: foo@bar.com Subject:=20 Cc: foo Bcc: bar Date: Thu, 24 Nov 2011 09:46:51 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (darwin) Gcc: nnfolder+archive:sent.2011-11 From: My Name Is there a way of _not_ being asked and just show empty entries (as for = Subject above)? Furthermore, with 1) and 3), I'm not asked anymore, but = I obtain: To:=20 Subject:=20 Date: Thu, 24 Nov 2011 09:51:43 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (darwin) Gcc: nnfolder+archive:sent.2011-11 From: My Name The same happens with just 1) [without 3)]. Why is the sorting not = correct? Cheers, Marius PS: Adjusting gnus-extra-headers [suggested by Sivaram] did not work (in = the sense that it didn't change anything). As far as I understood this = variable, it specifies *extra* headers, not the default ones I would = like to adjust. On 2011-11-23, at 19:30 , Tassilo Horn wrote: > Marius Hofert writes: >=20 > Hi Marius, >=20 >> I saw on >> = http://www.gnu.org/software/emacs/manual/html_node/gnus/Hiding-Headers.htm= l >> that I can specify which headers are visible via something like: >>=20 >> (setq gnus-visible-headers >> ...) >>=20 >> That's the default of gnus-visible-headers. However, comparing with >> the above, one sees that not all of these headers/entries are = actually >> displayed=85 How can I specify that the following headers are always >> shown in a new message? >=20 > `gnus-visible-headers' controls the visible headers in an article = buffer > (gnus-article-mode). That's something different than the message-mode > that you have when writing new messages. >=20 > For the headers you get in message-mode, have a look at this variable > and the referenced ones. >=20 > ,----[ C-h v message-generate-headers-first RET ] > | message-generate-headers-first is a variable defined in = `message.el'. > | Its value is nil > |=20 > | Documentation: > | Which headers should be generated before starting to compose a = message. > | If t, generate all required headers. This can also be a list of = headers to > | generate. The variables `message-required-news-headers' and > | `message-required-mail-headers' specify which headers to generate. > |=20 > | Note that the variable `message-deletable-headers' specifies headers = which > | are to be deleted and then re-generated before sending, so this = variable > | will not have a visible effect for those headers. > |=20 > | You can customize this variable. > `---- >=20 >> PS: Most likely the last Gnus question for today :-) >=20 > I wouldn't bet any money on that. ;-) >=20 > Bye, > Tassilo > --=20 > (What the world needs (I think) is not > (a Lisp (with fewer parentheses)) > but (an English (with more.))) > Brian Hayes, http://tinyurl.com/3y9l2kf >=20 >=20