From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13333 invoked from network); 30 Jan 2023 07:19:08 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 30 Jan 2023 07:19:08 -0000 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMORN-0002ia-OP; Mon, 30 Jan 2023 02:18:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMORL-0002ei-96 for info-gnus-english@gnu.org; Mon, 30 Jan 2023 02:18:55 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMORJ-0001mu-Fz for info-gnus-english@gnu.org; Mon, 30 Jan 2023 02:18:55 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pMORH-0002eS-60 for info-gnus-english@gnu.org; Mon, 30 Jan 2023 08:18:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: info-gnus-english@gnu.org From: Julien Cubizolles Subject: Re: gnus-search since: not working for nnimap Date: Mon, 30 Jan 2023 08:18:40 +0100 Message-ID: <87ilgo1odr.fsf@free.fr> References: <87a621w8hu.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:12Ec9bhrYOway7HKckciaBtlL+c= Received-SPF: pass client-ip=116.202.254.214; envelope-from=gegu-info-gnus-english@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Eric Abrahamsen writes: > We'll have to get closer to the IMAP server, then. If you don't have TLS > enabled on your local dovecot you can probably log in and test with: > > telnet localhost 143 > > Then: > > a login > b select "INBOX" > c UID SEARCH SINCE 28-Jan-2022 > > To confirm that messages are found. --8<---------------cut here---------------start------------->8--- /usr/lib/dovecot/imap -o mail_location=maildir:$HOME/email/Maildir/Free:LAYOUT=fs then a SELECT "General" b UID SEARCH SINCE 28-Jan-2022 --8<---------------cut here---------------end--------------->8--- It found many messages: --8<---------------cut here---------------start------------->8--- b UID SEARCH SINCE 28-Jan-2022 * SEARCH 2870 2874 2977 2987 2988 2997 3069 3312 3347 3390 3455 3645 3651 3656 3677 3691 3707 3729 3730 3748 3749 3750 3767 3871 3954 3985 4038 4041 4045 4046 4048 4053 4054 4056 4058 4060 4065 4073 4074 4082 4085 4094 4108 4125 4134 4286 4294 4324 4326 4335 4337 4342 4371 4413 4414 4433 4455 4458 4473 4483 4521 4522 4560 4562 4593 4603 4611 4615 4617 4630 4633 4636 4638 4639 4651 4676 4678 4679 4681 4682 4685 4688 4691 4694 4695 4696 4709 4712 4713 4715 4716 4717 4718 4723 4737 4747 4765 4766 4772 4782 4790 4793 4806 4808 4810 4813 4814 4815 4818 4820 4821 4822 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4838 4839 4840 4841 4842 4843 4844 4846 4849 4850 b OK Search completed (0.002 + 0.000 + 0.001 secs) --8<---------------cut here---------------end--------------->8--- > Then it's a matter of seeing that same conversation between Gnus and > Dovecot, to find where things are going wrong. You can set > `nnimap-record-commands' to t, then conduct a search, I found a "*imap log*" buffer. When conducting the "since:1y" search, the only log is: --8<---------------cut here---------------start------------->8--- 07:56:57 [FreeOffline] 10993 SELECT "General" 07:56:57 [FreeOffline] 10994 UID SEARCH SINCE 30-janv.-2022 --8<---------------cut here---------------end--------------->8--- > and also find which of your " *nnimap localhost nil *nntpd**-373470" > buffers corresponds to this server. there isn't any buffer with this name, only the *imap log* > That should allow you to reconstruct the conversation. > > Another option would be to edebug the `gnus-search-imap-search-command' > function, and see what we're getting back from Dovecot. > > Hopefully something in there will be revealing. Indeed: the nnimap-command used is: --8<---------------cut here---------------start------------->8--- nnimap-send-command("UID SEARCH %s" "SINCE 30-janv.-2022") --8<---------------cut here---------------end--------------->8--- which seems to be invalid: + because of the french localized version of the date (janv instead of jan) + because of the dot --8<---------------cut here---------------start------------->8--- UID SEARCH SINCE 28-Janv-2022 UID SEARCH SINCE 28-Jan.-2022 --8<---------------cut here---------------end--------------->8--- both return: --8<---------------cut here---------------start------------->8--- UID BAD Error in IMAP command SEARCH: Invalid search date parameter (0.001 + 0.000 secs). --8<---------------cut here---------------end--------------->8--- in a direct session with dovecot. -- Julien Cubizolles