[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnus-search since: not working for nnimap
From: |
Julien Cubizolles |
Subject: |
Re: gnus-search since: not working for nnimap |
Date: |
Mon, 30 Jan 2023 11:36:03 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Julien Cubizolles <j.cubizolles@free.fr> writes:
> 'gnus-search-transform seems to be at fault here. It uses
> '(format-time-string "%e-%b-%Y") where %b returns the "locale’s
> abbreviated month name" when imap commands expects the english abbreviated
> month name.
It's working with the attached patch. I'm not sure this is the best way
to go but I'm happy with it.
diff --git a/lisp/gnus/gnus-search.el b/lisp/gnus/gnus-search.el
index 27c71fa6c6..0d9a62f911 100644
--- a/lisp/gnus/gnus-search.el
+++ b/lisp/gnus/gnus-search.el
@@ -1330,9 +1330,10 @@ elements are present."
(1- nyear)
nyear))
(setq dmonth 1))))
- (format-time-string
- "%e-%b-%Y"
- (encode-time 0 0 0 dday dmonth dyear))))
+ (with-locale-environment "C"
+ (format-time-string
+ "%e-%b-%Y"
+ (encode-time 0 0 0 dday dmonth dyear)))))
(cl-defmethod gnus-search-imap-handle-string ((engine gnus-search-imap)
(str string))
--
Julien Cubizolles