From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 40151@debbugs.gnu.org
Subject: bug#40151: 28.0.50; Remove Date header from message-draft-headers
Date: Fri, 20 Mar 2020 10:55:28 -0700 [thread overview]
Message-ID: <875zeyzzan.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <875zeydipa.fsf@gnus.org> (Lars Ingebrigtsen's message of "Fri, 20 Mar 2020 18:44:49 +0100")
[-- Attachment #1: Type: text/plain, Size: 310 bytes --]
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> You mean in the `gnus-delay-article' docstring? I didn't see anything
>> apropos of "postpone".
>
> No, but it should perhaps say something. Or at least point to
> message-draft-headers...
How's this look?
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Remove-the-Date-header-from-message-draft-headers.patch --]
[-- Type: text/x-patch, Size: 1822 bytes --]
From 951338269aa6b866b06ab59a2f10cb09f41f390a Mon Sep 17 00:00:00 2001
From: Eric Abrahamsen <eric@ericabrahamsen.net>
Date: Fri, 20 Mar 2020 10:53:49 -0700
Subject: [PATCH] Remove the Date header from message-draft-headers
* lisp/gnus/message.el (message-draft-headers): The Date header should
reflect when the message is sent, not when it was saved or delayed.
---
lisp/gnus/gnus-delay.el | 6 +++++-
lisp/gnus/message.el | 4 ++--
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/lisp/gnus/gnus-delay.el b/lisp/gnus/gnus-delay.el
index 8dae4ef5c1..589ec6f807 100644
--- a/lisp/gnus/gnus-delay.el
+++ b/lisp/gnus/gnus-delay.el
@@ -75,7 +75,11 @@ gnus-delay-article
variable `gnus-delay-default-hour', minute and second are zero.
* hh:mm for a specific time. Use 24h format. If it is later than this
- time, then the deadline is tomorrow, else today."
+ time, then the deadline is tomorrow, else today.
+
+The value of `message-draft-headers' determines which headers are
+generate when the article is delayed. Remaining headers are
+generate when the article is sent."
(interactive
(list (read-string
"Target date (YYYY-MM-DD), time (hh:mm), or length of delay (units in [mhdwMY]): "
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index f1ace0eeb2..eb9c79d66c 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -215,9 +215,9 @@ message-required-headers
:link '(custom-manual "(message)Message Headers")
:type '(repeat sexp))
-(defcustom message-draft-headers '(References From Date)
+(defcustom message-draft-headers '(References From)
"Headers to be generated when saving a draft message."
- :version "22.1"
+ :version "28.1"
:group 'message-news
:group 'message-headers
:link '(custom-manual "(message)Message Headers")
--
2.25.2
next prev parent reply other threads:[~2020-03-20 17:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-20 17:11 bug#40151: 28.0.50; Remove Date header from message-draft-headers Eric Abrahamsen
2020-03-20 17:23 ` Lars Ingebrigtsen
2020-03-20 17:31 ` Eric Abrahamsen
2020-03-20 17:44 ` Lars Ingebrigtsen
2020-03-20 17:55 ` Eric Abrahamsen [this message]
2020-03-20 18:20 ` Lars Ingebrigtsen
2020-03-20 18:41 ` Eric Abrahamsen
2020-03-23 8:09 ` Peter Münster
2020-03-23 8:35 ` Robert Pluim
2020-03-20 19:40 ` James Cloos
2020-03-20 20:57 ` Eric Abrahamsen
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=875zeyzzan.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=40151@debbugs.gnu.org \
--cc=larsi@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.