Gnus development mailing list
 help / color / mirror / Atom feed
From: Karl Chen <quarl@cs.berkeley.edu>
Subject: gnus-treat-date-lapsed + gnus-treat-date-user-defined
Date: Fri, 19 Aug 2005 02:08:24 -0700	[thread overview]
Message-ID: <quack.20050819T0208.lthk6iiwayf@roar.cs.berkeley.edu> (raw)


I use both `gnus-treat-date-user-defined' and
`gnus-treat-date-lapsed', with `(setq
gnus-article-date-lapsed-new-header t)'.  This combination used to
work, but recently something changed (I couldn't find anything
relevant in cvs diffs or ChangeLog).

The problem is `gnus-article-date-lapsed' is run after
`gnus-treat-date-user', and `gnus-treat-date-user' deletes both
the Date: and X-Sent: headers when writing the new Date: header.
I imagine the date-{original,iso8601} have the same problem.  The
below patch fixes it by simply reordering them.

In the long term, a better solution would be:
- `gnus-treat-date-lapsed' only adds X-Sent:; never deletes Date:
- A new `gnus-treat-delete-date' deletes Date:
- Un-combine the X-Sent: and Date: reformatting functions


diff -u /usr/local/stow/emacs-cvs-20050817/share/emacs/22.0.50/lisp/gnus/.backup/gnus-art.el.\~1\~ /usr/local/stow/emacs-cvs-20050817/share/emacs/22.0.50/lisp/gnus/gnus-art.el
--- /usr/local/stow/emacs-cvs-20050817/share/emacs/22.0.50/lisp/gnus/.backup/gnus-art.el.~1~	2005-08-06 12:51:41.000000000 -0700
+++ /usr/local/stow/emacs-cvs-20050817/share/emacs/22.0.50/lisp/gnus/gnus-art.el	2005-08-19 01:57:12.000000000 -0700
@@ -1481,10 +1481,10 @@
     (gnus-treat-date-ut gnus-article-date-ut)
     (gnus-treat-date-local gnus-article-date-local)
     (gnus-treat-date-english gnus-article-date-english)
-    (gnus-treat-date-lapsed gnus-article-date-lapsed)
     (gnus-treat-date-original gnus-article-date-original)
     (gnus-treat-date-user-defined gnus-article-date-user)
     (gnus-treat-date-iso8601 gnus-article-date-iso8601)
+    (gnus-treat-date-lapsed gnus-article-date-lapsed)
     (gnus-treat-display-x-face gnus-article-display-x-face)
     (gnus-treat-display-face gnus-article-display-face)
     (gnus-treat-hide-headers gnus-article-maybe-hide-headers)


-- 
Karl 2005-08-19 02:00



             reply	other threads:[~2005-08-19  9:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-19  9:08 Karl Chen [this message]
2005-08-22 12:46 ` Katsumi Yamaoka

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=quack.20050819T0208.lthk6iiwayf@roar.cs.berkeley.edu \
    --to=quarl@cs.berkeley.edu \
    /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).