Commit 0c74b838 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen Committed by Katsumi Yamaoka
Browse files

gnus-art.el (article-date-ut): Replace infinitely many Date headers with a...

gnus-art.el (article-date-ut): Replace infinitely many Date headers with a single one when called interactively.
parent 5b9b62f1
......@@ -3,6 +3,8 @@
* gnus-art.el (article-transform-date): Rewrite to still work when
there are several rfc2822 parts.
(article-transform-date): Fix infinite recursion.
(article-date-ut): Replace infinitely many Date headers with a single
one when called interactively.
 
* nnimap.el (nnimap-wait-for-response): Wait for results in a more
secure manner.
......
......@@ -1018,6 +1018,8 @@ on parts -- for instance, adding Vcard info to a database."
(let ((types '(ut local english lapsed combined-lapsed
iso8601 original user-defined))
default)
;; Try to respect the legacy `gnus-treat-date-*' variables, if
;; they're set.
(dolist (type types)
(let ((variable (intern (format "gnus-treat-date-%s" type))))
(when (and (boundp variable)
......@@ -1028,6 +1030,7 @@ on parts -- for instance, adding Vcard info to a database."
(memq 'lapsed default))
(setq default (delq 'lapsed default)))
(or default
;; If they weren't set, we default to `combined-lapsed'.
'(combined-lapsed)))
"A list of Date header formats to display.
Valid formats are `ut' (universal time), `local' (local time
......@@ -3439,8 +3442,8 @@ possible values."
(setq date (get-text-property (match-beginning 0) 'original-date))
(delete-region (point-at-bol) (progn
(gnus-article-forward-header)
(point)))
(article-transform-date date type bface eface)))))))
(point))))
(article-transform-date date type bface eface))))))
(defun article-transform-date (date type bface eface)
(dolist (this-type (cond
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment