From: Julien Cubizolles <j.cubizolles@free.fr>
To: info-gnus-english@gnu.org
Subject: Re: gnus-search since: not working for nnimap
Date: Mon, 30 Jan 2023 11:36:03 +0100 [thread overview]
Message-ID: <87357s48do.fsf@free.fr> (raw)
In-Reply-To: <87a6201i7a.fsf@free.fr>
[-- Attachment #1: Type: text/plain, Size: 372 bytes --]
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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gnus-search.patch --]
[-- Type: text/x-diff, Size: 587 bytes --]
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))
[-- Attachment #3: Type: text/plain, Size: 24 bytes --]
--
Julien Cubizolles
next prev parent reply other threads:[~2023-01-30 10:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-29 17:33 Eric Abrahamsen
2023-01-30 7:18 ` Julien Cubizolles
2023-01-30 9:32 ` Julien Cubizolles
2023-01-30 10:36 ` Julien Cubizolles [this message]
2023-01-30 17:41 ` Eric Abrahamsen
2023-02-01 23:05 ` Björn Bidar
-- strict thread matches above, loose matches on Subject: below --
2023-01-28 12:22 Julien Cubizolles
2023-01-28 18:20 ` Eric Abrahamsen
2023-01-29 8:59 ` Julien Cubizolles
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=87357s48do.fsf@free.fr \
--to=j.cubizolles@free.fr \
--cc=info-gnus-english@gnu.org \
/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).