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 13925 invoked from network); 24 Nov 2022 05:53:58 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 24 Nov 2022 05:53:58 -0000 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oy5AK-0007jE-Bg; Thu, 24 Nov 2022 00:52:52 -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 1oy5AJ-0007j3-IS for info-gnus-english@gnu.org; Thu, 24 Nov 2022 00:52:51 -0500 Received: from mail-oa1-x31.google.com ([2001:4860:4864:20::31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oy5AH-0006D1-SE for info-gnus-english@gnu.org; Thu, 24 Nov 2022 00:52:51 -0500 Received: by mail-oa1-x31.google.com with SMTP id 586e51a60fabf-1433ef3b61fso909285fac.10 for ; Wed, 23 Nov 2022 21:52:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=i/D7G/G75yEvwBzdFDu6csLY26peeNxlA1+WnMcbkAU=; b=XLDAWonmziHy3fxn0Tz9ceFu3ElLMpTLzakv1Pf/qE0ft1EXOQOC2dPrxrLODX+NKe urFDVLzrbK7iUSoDmMfpb7ImgoJp8AVxNvCD/Jo0JzDyFsHa4Ha16RbXdJfKw/a9xXb+ 4ZlJOoGNOnBecCfRYCaa1xZeHnBcsv8frpYSoDpbO3wmlNBkNR9Yly7OmyV+BjzDVtTA Jn6aQOg0eBWo4XuXIs7U5sCCC+2VhZMNbAQbCrsRaI4xTl5eXjysAK6RLqEUDqfZ58mg z4G12NztGe8Vrhf3Ypl++li1MXh8vmrOuiBZtVB01jIw5wJN0oeffuMOxl1wv+2VpfHt 6+oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=i/D7G/G75yEvwBzdFDu6csLY26peeNxlA1+WnMcbkAU=; b=LgEDeWjW/SLufZ+HO1uSxhHROpbVYkVzzgC9Z9lQgPMQ74oL6M0EAwzeMTVthhWPvp WvqGpiG/Cl5OauGTmSwJnVL3lhakUJofBuUG9FczDtvLFyOHCXmo/csD9/VX3hsu8K22 I1jt5K9vJ+VgtO70VaxJnJyk5URHuc4F0VJA993TtMf4OiWl4qwmsqwS1kD+ztZYQ7AD SUm42Tuy0L151qK+xyqHwpqp2CRkU+x5k47qGpiVGzKlfToFORBTpuCs1tXZkgovN/Pr IGeCb1aDtYoKgYbruc4/iRuMmGi+1r34+QfcPnNLy40vJ1bUbV1d2yLjeDPLxli5Ux5h wynQ== X-Gm-Message-State: ANoB5pmKXZ9BHinqIk/N1DE1+5IQGqTxGSklfgvStAKpnuLgm6Pn5LEG qomAeqGpBGWeSDJgwnom8GCBonrQfBk= X-Google-Smtp-Source: AA0mqf4UXr3HdXM+8jSVI1emwSgne2V2YGYq/JRfhDN0yh35iTOWng/OSwqduZqIc4eRlq0NCKl2gQ== X-Received: by 2002:a05:6870:b8f:b0:142:e9f7:1d05 with SMTP id lg15-20020a0568700b8f00b00142e9f71d05mr9559092oab.49.1669269168174; Wed, 23 Nov 2022 21:52:48 -0800 (PST) Received: from sekai ([2804:14c:da80:8cd9::dfc1]) by smtp.gmail.com with ESMTPSA id fq39-20020a0568710b2700b0013b92b3ac64sm199236oab.3.2022.11.23.21.52.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 21:52:47 -0800 (PST) From: Fernando de Morais To: Eric Abrahamsen Cc: info-gnus-english@gnu.org Subject: Re: Help needed: nnmaildir and create-directory parameter. References: <87r0xtohmh.fsf@sekai.mail-host-address-is-not-set> <87bkoxa6uq.fsf@ericabrahamsen.net> Date: Thu, 24 Nov 2022 02:52:43 -0300 In-Reply-To: <87bkoxa6uq.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Wed, 23 Nov 2022 10:00:45 -0800") Message-ID: <87r0xs526s.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:4860:4864:20::31; envelope-from=fernandodemorais.jf@gmail.com; helo=mail-oa1-x31.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 Eric, I've managed to figure out. The TL;DR is: simply, don't use the `create-directory' server parameter. Using only `target-prefix' is what is needed. =F0=9F=98=85 Eric Abrahamsen writes: > So maybe try taking out the (target-prefix "") server config completely? With something like this: #+begin_src emacs-lisp ... (nnmaildir "" (directory "~/Dir") ;; (target-prefix "") (get-new-mail t) (create-directory "")) ... #+end_src Gnus will create groups (and respective folders) specified in `nnmail-split-method', however it will raise an error, saying that the directories already exists (?) and we will get a crash box, again. With my testes, any other value besides `""' will result in error. But, uncommenting the `target-prefix' line and removing the `create-directory' one, we'll end with the expected behaviour, without errors. > I really don't know how this is meant to work. If you figure it out we > should update the manual. If its of any use, I'd would like to suggest: - Inform in the manual that if the user wants to configure something like `(target-prefix "maildirs/")', he will need to create the `"maildirs"' folder (in my example above, inside the `"~/Dir"'), by code or manually; and - Switch the `create-directory' to `target-prefix' in the last paragraph. But the code will still be there... I don't know if there would be any practical benefit in making changes in a way that using `create-directory' works as expected, especially when `target-prefix' already does the job. But anyway, I'm just rambling here, the question has been answered. Thank you very much for pointing the direction to address this issue, Eric. --=20 Regards, Fernando de Morais.