aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/gnus
diff options
context:
space:
mode:
authorPaul Eggert2019-08-01 15:34:35 -0700
committerPaul Eggert2019-08-01 15:47:15 -0700
commitfbd2ea1f73f3262636efacfe77ad33dc8a4d826f (patch)
tree53387c8bf1efe425dd0a0cc90330cebed405805d /lisp/gnus
parent24b60b75ea544f0c2df740d40592c6665c123523 (diff)
downloademacs-fbd2ea1f73f3262636efacfe77ad33dc8a4d826f.tar.gz
emacs-fbd2ea1f73f3262636efacfe77ad33dc8a4d826f.zip
Fix two parse-time-months invalid assumptions
* lisp/gnus/nnimap.el: Do not require parse-time. * lisp/gnus/nnimap.el (nnimap-find-expired-articles): * lisp/net/pop3.el (pop3-make-date): Just use system-time-locale and format-time-string; no need to refer to parse-time-months. * lisp/net/pop3.el (parse-time-months): Remove defvar. * lisp/net/tramp-smb.el (tramp-smb-read-file-entry): Add FIXME comment about this.
Diffstat (limited to 'lisp/gnus')
-rw-r--r--lisp/gnus/nnimap.el9
1 files changed, 2 insertions, 7 deletions
diff --git a/lisp/gnus/nnimap.el b/lisp/gnus/nnimap.el
index c6eaa54c692..0c5aaf32d42 100644
--- a/lisp/gnus/nnimap.el
+++ b/lisp/gnus/nnimap.el
@@ -36,7 +36,6 @@
36(require 'nnoo) 36(require 'nnoo)
37(require 'netrc) 37(require 'netrc)
38(require 'utf7) 38(require 'utf7)
39(require 'parse-time)
40(require 'nnmail) 39(require 'nnmail)
41 40
42(autoload 'auth-source-forget+ "auth-source") 41(autoload 'auth-source-forget+ "auth-source")
@@ -1097,12 +1096,8 @@ textual parts.")
1097 (let ((result 1096 (let ((result
1098 (nnimap-command 1097 (nnimap-command
1099 "UID SEARCH SENTBEFORE %s" 1098 "UID SEARCH SENTBEFORE %s"
1100 (format-time-string 1099 (let ((system-time-locale "C"))
1101 (format "%%d-%s-%%Y" 1100 (upcase (format-time-string "%d-%b-%Y" cutoff))))))
1102 (upcase
1103 (car (rassoc (decoded-time-month (decode-time cutoff))
1104 parse-time-months))))
1105 cutoff))))
1106 (and (car result) 1101 (and (car result)
1107 (delete 0 (mapcar #'string-to-number 1102 (delete 0 (mapcar #'string-to-number
1108 (cdr (assoc "SEARCH" (cdr result))))))))))) 1103 (cdr (assoc "SEARCH" (cdr result)))))))))))