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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8188 invoked from network); 2 Feb 2023 03:17:39 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 2 Feb 2023 03:17:39 -0000 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNQ62-0002rN-Eh; Wed, 01 Feb 2023 22:17:10 -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 1pNQ5v-0002r1-7Z for info-gnus-english@gnu.org; Wed, 01 Feb 2023 22:17:09 -0500 Received: from mail-oo1-xc36.google.com ([2607:f8b0:4864:20::c36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pNQ5t-0000x0-4U for info-gnus-english@gnu.org; Wed, 01 Feb 2023 22:17:02 -0500 Received: by mail-oo1-xc36.google.com with SMTP id k15-20020a4adfaf000000b00517450f9bd7so80411ook.8 for ; Wed, 01 Feb 2023 19:17:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:references:message-id:date:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=DgaNowThJcRLhU6pxlfyKnxwUqqB7hXVKXl4Rq3EVO0=; b=aik0bV660zboK5YJ2LZpjDVlosdnhngkxu6G0AiPUUPz95WrQvNjs5amf+mrixeur4 d00t7yYS/xcdsaDXDfjRhhpefmOjBSdHs8DklC1ZMOIR+2LTJ2EINJOjGrf89MMyarlK kjHtxXaJq539t0RhlUhO67UOd/qtpLZzebLAa+UiJWYpZDtJaIGzVnV9h41CrPgp26H5 vn1Q+xTH/OsU0pvb+1RPrEdnHSylpqXmKRTJ9xyrWJzOKGZkjHVKf//8Ho1j/A3lwdLQ ZFWzkxccsdy/K9KtXWd6fUKSo/vfIHYH3ES/mo1Lmvm0c1rFcsLN3PfVn5w8Fkk9DtZC WSSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:references:message-id:date:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DgaNowThJcRLhU6pxlfyKnxwUqqB7hXVKXl4Rq3EVO0=; b=s6ITaGeDEREvWhoea1V+2ynTHtz0E+Gijo96eYIHP+kv1wI0IuW7ucGHNZyJTPcJ1v kCUtf4hQrTMF4TnRW8hzKbXpzkFOL9kX9m0FWVLIQMbdu43n9GDYQpxaDO2UOoIsIBsV DtnReHMG60iiy3D5rGskIMJi0kJ3zDK3zAMNIq5QJGbqHNUFlxSEc1dk7MytaGYiqjq1 ge1VOTYFlRO4lQScXk+Kk11kldRYTUZysxuVqY248z10DbG+XpwKZ0zaAPNytGTIc1tJ 5NYAbz74/nkfVM4S82DgAwCKRid8jyGIJynVmligIoMigEfxSmGrlDvhF9hprnrFM8H4 AITw== X-Gm-Message-State: AO0yUKW7EzBkUjXu0W9kKIyVNIcGGXmYM8jvGGRBB33rKb0Ax70knjfI 5TcCeVXMzJD5Y0Vg/3lG4eQ= X-Google-Smtp-Source: AK7set8iJ3hkQ4qFoblyoxWbIkAgmfbgDDAW4INaU6jEJXj95RnoTlGmcfvAm7ue++zYJQMy0PDm7A== X-Received: by 2002:a4a:9109:0:b0:517:4020:60b6 with SMTP id k9-20020a4a9109000000b00517402060b6mr2349795oog.8.1675307819587; Wed, 01 Feb 2023 19:16:59 -0800 (PST) Received: from sekai ([2804:14c:da80:82e2::26e8]) by smtp.gmail.com with ESMTPSA id bq10-20020a0568201a0a00b004f8cf5f45e9sm8043128oob.22.2023.02.01.19.16.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 19:16:59 -0800 (PST) From: Fernando de Morais To: Angel de Vicente Cc: info-gnus-english@gnu.org, eric@ericabrahamsen.net Subject: Re: wrong gnus-search in nnml folder In-Reply-To: <87edrb1uch.fsf@gmail.com> (Angel de Vicente's message of "Mon, 30 Jan 2023 23:22:06 +0000") Date: Thu, 02 Feb 2023 00:15:15 -0300 Message-ID: <87h6w44v24.fsf@gmail.com> References: <877cx46yr2.fsf@gmail.com> <871qnbx6eu.fsf@ericabrahamsen.net> <87sffr6g9o.fsf@gmail.com> <87o7qf6fp6.fsf@gmail.com> <87k013oo64.fsf@ericabrahamsen.net> <87zg9zspz4.fsf@gmail.com> <87leljsovo.fsf@gmail.com> <87ilgn7iu5.fsf@ericabrahamsen.net> <87edrb1uch.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::c36; envelope-from=fernandodemorais.jf@gmail.com; helo=mail-oo1-xc36.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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 Hello Angel and Eric, Angel de Vicente writes: > What I don't get to work is compound queries like since:3d from:alex > (they work separetely, but nothing gets returned if I try to combine > two queries... I use mairix as my search engine on nnmaildir servers and this behavior has always annoyed me, although I wasn't able to figure out why it cannot perform this kind of search, until Eric pointed out the possibility of debugging `gnus-search-run-search'. The mairix command interprets each query as an individual argument. When we pass a query like: #+begin_example Query: from:alex since:3d #+end_example In `gnus-search-run-search' it will become a sole string ("f:alex d:20230129-"), and mairix will return nothing. Just for a simple experiment, I reevaluated the `gnus-search-run-search' with the following lines changed: --- # +++ # @@ -1332,7 +1332,8 @@ (message "Doing %s query on %s..." program groups) (message "Doing %s query..." program)) (setq proc (apply #'start-process (format "search-%s" server) - buffer program cp-list)) + buffer program (flatten-list (mapcar #'split-string + cp-list)))) (while (process-live-p proc) (accept-process-output proc)) (setq exitstatus (process-exit-status proc)) And the result of a search like the give example above was the same given by mairix via terminal. P.S.: To clarify, I'm using Emacs 28.2. -- Regards, Fernando de Morais.