From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53083 Path: main.gmane.org!not-for-mail From: Hanak David Newsgroups: gmane.emacs.gnus.general Subject: Required mail & news headers Date: Tue, 10 Jun 2003 12:03:32 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1055239377 6385 80.91.224.249 (10 Jun 2003 10:02:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Jun 2003 10:02:57 +0000 (UTC) Original-X-From: ding-owner+M1627@lists.math.uh.edu Tue Jun 10 12:02:56 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Pfx4-0001ao-00 for ; Tue, 10 Jun 2003 12:02:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19Pfyr-000743-00; Tue, 10 Jun 2003 05:03:53 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19Pfya-00073p-00 for ding@lists.math.uh.edu; Tue, 10 Jun 2003 05:03:36 -0500 Original-Received: (qmail 67627 invoked by alias); 10 Jun 2003 10:03:36 -0000 Original-Received: (qmail 67622 invoked from network); 10 Jun 2003 10:03:36 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by sclp3.sclp.com with SMTP; 10 Jun 2003 10:03:36 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 19PgGV-0001pw-00 for ; Tue, 10 Jun 2003 12:22:07 +0200 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 44 Original-NNTP-Posting-Host: adsl244254.vnet.hu Original-X-Trace: quimby.gnus.org 1055240527 7063 62.77.244.254 (10 Jun 2003 10:22:07 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 10 Jun 2003 10:22:07 GMT Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAwBAMAAACRVSWoAAAAGFBMVEWNZFgtIyTy9fEjGhx0 UUdMNjKajYXCxsNbs5ZQAAAByElEQVR4nG3SwY7bIBAGYFqR9NqRQ8+rSI3PiBcgKuxeiwQ5p6td cl1ZqXn9/jPYiluVHGx/mpkfE6vjuk5Tv453UqvN9xzqq+DQca4qJhrITONx/OiVp2uiRM65cpmB vfL+Tryco+KnpXJEK1mudM6sKHUWOkD3HUdEWH52PMG0K+MT7q111jlLg7MXwe/Yy1I54PJV8B33 Vpjb3aEyRpIibuUJh+qAZ+Q4pMsES0ZQwpG1IAmSVGKA69vaA0fi0C64DFIJRCnHEJmE3dWhI+GQ LKVSCm55S4wmF14hroggKjmAsArZvvk0mJhjyV6HgBf5VhPwkz2E4JVSHV8Ef1NWWskKIdmb4Amo HvilI2Ky39eqS8ln09ufzhm5fq84PpqlMnolSSHFEPOCO2wmB6Wfd8j/+Vlw3Cm9vyiv1ZXHME7H cYnWXvJfga21v1BNjPN8/Q/etuhr6+11W1mr4NzelpfcYNugDmj8Abz9g/MvQZ6m++F7aeR2IAsO KTzjce4YVIlAnNbLBnEgweMXbvwMPLa3/h8Fnbl7RR0zH3EsLytO7UNhYjSlHNoWteEvJF02OCt1 hia6PXDkE8XXRUvhAzG2LIXtDwR0zVR+ZiQLAAAAAElFTkSuQmCC User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:pxtDrbdUhNGyrNBtknnVbHB8NNc= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53083 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53083 Hi, I discovered, that the contents of 'message-required-headers' are always rendered *before* composing the message, as opposed to 'message-required-news-headers' and 'message-required-mail-headers', which are affected by the value of 'message-generate-headers-first': /---- | message-generate-headers-first's value is (references) | | Documentation: | *If non-nil, generate all required headers before composing. | The variables `message-required-news-headers' and | `message-required-mail-headers' specify which headers to generate. | This can also be a list of headers that should be generated before | composing. \---- I don't want to see that X-Draft-From line, nor the From header, nor the very long Face header whilst composing my message. The latter can be hidden by adding it both to ...mail-headers and ...news-headers instead of adding it once to ...required-headers, but that doesn't seem nice. 'message-generate-headers' is readded to the headers-to-be-inserted list (after being filtered by 'message-headers-to-generate'): /---- | (defun message-generate-headers (headers) | "Prepare article HEADERS. | Headers already prepared in the buffer are not modified." | (setq headers (append headers message-required-headers)) ; <---- !!!! | (save-restriction | (message-narrow-to-headers) | (let* ((Date (message-make-date)) | (Message-ID (message-make-message-id)) \---- If I remove the line marked with !!!!, these headers are lost, because they are not added later, as opposed to ...news-headers and ...mail-headers. Unfortunately, these variables are not very well documented. :-(. So, why is this difference? Is it on purpose? David