unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#41102: When messages have no Date:
@ 2020-05-05 23:23 積丹尼 Dan Jacobson
  2020-05-06 11:36 ` bug#41102: just like totally-fudged-out-message-id 積丹尼 Dan Jacobson
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-05-05 23:23 UTC (permalink / raw)
  To: 41102

Got an idea: if a mail arrives without a Date: header, gnus should add a
X-Gnus-Artificial-Date: <now> header.

And when opening such messages, if no Date: is found, use the
X-Gnus-Artificial-Date: header when making dates for the *Summary*
buffer.

That way instead of 1970 dates, you'll have dates certainly just a day
or two from the real date (when they sent the mail, that we don't know.)

-AND/OR-

Dig the earliest date out of all the Received headers.

My idea increases the accuracy of the date thousands of times over
"1970" (which of course could still be an option for folks who like it.)

Gnus v5.13
GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11)
 of 2019-09-23, modified by Debian





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

* bug#41102: just like totally-fudged-out-message-id
  2020-05-05 23:23 bug#41102: When messages have no Date: 積丹尼 Dan Jacobson
@ 2020-05-06 11:36 ` 積丹尼 Dan Jacobson
  2020-05-06 11:43 ` bug#41102: Add a X-Gnus-Note 積丹尼 Dan Jacobson
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-05-06 11:36 UTC (permalink / raw)
  To: 41102

Just like
nnmail.el:  (concat "<" (message-unique-id) "@totally-fudged-out-message-id>")
Make a X-Gnus-Totally-Fudged-Out-Date header.





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

* bug#41102: Add a X-Gnus-Note
  2020-05-05 23:23 bug#41102: When messages have no Date: 積丹尼 Dan Jacobson
  2020-05-06 11:36 ` bug#41102: just like totally-fudged-out-message-id 積丹尼 Dan Jacobson
@ 2020-05-06 11:43 ` 積丹尼 Dan Jacobson
  2020-05-06 12:03 ` bug#41102: Mutt 積丹尼 Dan Jacobson
  2020-08-05 11:16 ` bug#41102: When messages have no Date: Lars Ingebrigtsen
  3 siblings, 0 replies; 5+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-05-06 11:43 UTC (permalink / raw)
  To: 41102

Or make a standard
Date: <now>
but also add a
X-Gnus-Note: Date header added by Gnus





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

* bug#41102: Mutt
  2020-05-05 23:23 bug#41102: When messages have no Date: 積丹尼 Dan Jacobson
  2020-05-06 11:36 ` bug#41102: just like totally-fudged-out-message-id 積丹尼 Dan Jacobson
  2020-05-06 11:43 ` bug#41102: Add a X-Gnus-Note 積丹尼 Dan Jacobson
@ 2020-05-06 12:03 ` 積丹尼 Dan Jacobson
  2020-08-05 11:16 ` bug#41102: When messages have no Date: Lars Ingebrigtsen
  3 siblings, 0 replies; 5+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-05-06 12:03 UTC (permalink / raw)
  To: 41102

Let's have a look at what mutt does,

q:Quit  d:Del  u:Undel  s:Save  m:Mail  r:Reply  g:Group  ?:Help
        1   +  5月 06 國有財產署      (0.4K) 請回填信件驗證碼
        2 N F  5月 06 To jidanni@jida (0.1K) test

Well the first message is the one with no date.
As we can see mutt doesn't say 1970.





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

* bug#41102: When messages have no Date:
  2020-05-05 23:23 bug#41102: When messages have no Date: 積丹尼 Dan Jacobson
                   ` (2 preceding siblings ...)
  2020-05-06 12:03 ` bug#41102: Mutt 積丹尼 Dan Jacobson
@ 2020-08-05 11:16 ` Lars Ingebrigtsen
  3 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-05 11:16 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 41102

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> Got an idea: if a mail arrives without a Date: header, gnus should add a
> X-Gnus-Artificial-Date: <now> header.
>
> And when opening such messages, if no Date: is found, use the
> X-Gnus-Artificial-Date: header when making dates for the *Summary*
> buffer.
>
> That way instead of 1970 dates, you'll have dates certainly just a day
> or two from the real date (when they sent the mail, that we don't know.)

I don't think we should pretend -- when we don't know what the sent date
is, then giving an errorish date (1970, aka year zero) is the best, I
think.

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2020-08-05 11:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05 23:23 bug#41102: When messages have no Date: 積丹尼 Dan Jacobson
2020-05-06 11:36 ` bug#41102: just like totally-fudged-out-message-id 積丹尼 Dan Jacobson
2020-05-06 11:43 ` bug#41102: Add a X-Gnus-Note 積丹尼 Dan Jacobson
2020-05-06 12:03 ` bug#41102: Mutt 積丹尼 Dan Jacobson
2020-08-05 11:16 ` bug#41102: When messages have no Date: Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).