From: Xavier Maillard <zedek@gnu-rox.org>
Subject: [PROPOSAL]: Date header and Queued messages
Date: Fri, 16 Jan 2004 05:17:41 +0100 [thread overview]
Message-ID: <plop87d69l4ror.fsf@gnu-rox.org> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1410 bytes --]
Hi,
Why do we put the 'Date' header even if the message is pushed into the
queued group ?
For my case it result to something quite annoying since I write my
mails when I am in the train and can't send them before the evening so
it generally result in something with 14/15h late !
Can't we just set this header when the mail is really sent (ie:
dequeued and sent) or at least remove the header when sending it.
I have personally thought to this a long time ago and I am currently
thinking it would be better to do this way.
My current proposal is to remove the header in `gnus-draft-send`
function if we can ensure we can regenerate the Date header after
otherwise just pass through ;)
So I did something quite simple and it works perfectly for me (I have
been using it since a week now). So in case it is of interest by one of
you, I have enclosed a very small patch that just does the trick.
Any opinion ?
I know I can remove the "date" header just by editing the queued
message again but it is obvious for me to edit all of the queued
messages just to send them with a correct date header.
Regards,
zeDek
P.S: since the patch is really small and given the fact I still do not
have sent my FSF copyrights assignment papers, I hope you will able to
add this upstream otherwise be sure I will send them (the papers) on
Saturday.
-----%<---------%<---------%<---------%<---------%<---------%<----
[-- Attachment #1.2: draft_date_is_good.diff --]
[-- Type: text/plain, Size: 632 bytes --]
--- gnus-draft.el 2004-01-05 23:37:34.000000000 +0100
+++ /tmp/gnus-draft.el 2004-01-15 09:10:17.000000000 +0100
@@ -154,6 +154,13 @@
(skip-syntax-forward "-")
(setq move-to (buffer-substring (point) (point-at-eol)))
(message-remove-header gnus-agent-target-move-group-header))
+
+ ;; Force Gnus to delete Date to have a newer one
+ ;; First ensure Date is to be regenerated :)
+ (when (memq 'Date message-required-mail-headers)
+ (message-remove-header "Date" t))
+
(goto-char (point-min))
(when (re-search-forward
(concat "^" (regexp-quote gnus-agent-meta-information-header) ":")
[-- Attachment #1.3: Type: text/plain, Size: 204 bytes --]
-----%<---------%<---------%<---------%<---------%<---------%<----
--
Xavier Maillard
7 rue Jeanne Jugan, 51100 Reims, France
phone: +33 3 26 77 02 21, mobile: +33 6 68 04 64 37
email: zedek@gnu-rox.org
[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]
next reply other threads:[~2004-01-16 4:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-16 4:17 Xavier Maillard [this message]
2004-01-16 5:43 ` Simon Josefsson
2004-01-16 7:33 ` Steve Youngs
2004-01-16 9:47 ` Katsumi Yamaoka
2004-01-16 14:26 ` Reiner Steib
2004-01-16 20:56 ` Xavier Maillard
2004-01-16 21:12 ` Reiner Steib
2004-01-16 20:56 ` Xavier Maillard
2004-01-16 21:30 ` Steve Youngs
2004-01-16 23:35 ` Karl Pflästerer
[not found] ` <ilu65fca1o7.fsf-Hx3HMpEclzRikQyLtWShHUB+6BGkLq7r@public.gmane.org>
2004-01-16 23:10 ` Jochen Küpper
2004-01-22 21:59 ` Xavier Maillard
2004-05-16 19:01 ` Lars Magne Ingebrigtsen
2004-01-16 13:12 ` : " Adam Sjøgren
2004-01-16 20:56 ` Xavier Maillard
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=plop87d69l4ror.fsf@gnu-rox.org \
--to=zedek@gnu-rox.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).