Gnus development mailing list
 help / color / mirror / Atom feed
* [PROPOSAL]: Date header and Queued messages
@ 2004-01-16  4:17 Xavier Maillard
  2004-01-16  5:43 ` Simon Josefsson
  2004-01-16 13:12 ` : " Adam Sjøgren
  0 siblings, 2 replies; 15+ messages in thread
From: Xavier Maillard @ 2004-01-16  4:17 UTC (permalink / 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 --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2004-05-16 19:01 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-16  4:17 [PROPOSAL]: Date header and Queued messages Xavier Maillard
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

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).