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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30109 invoked from network); 25 Nov 2022 19:22:12 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 25 Nov 2022 19:22:12 -0000 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyeGn-0002TH-65; Fri, 25 Nov 2022 14:21:53 -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 1oyeGj-0002Sp-9L for info-gnus-english@gnu.org; Fri, 25 Nov 2022 14:21:49 -0500 Received: from mail.ericabrahamsen.net ([52.70.2.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyeGh-0004Ld-IA for info-gnus-english@gnu.org; Fri, 25 Nov 2022 14:21:49 -0500 Received: from localhost (c-71-197-232-41.hsd1.wa.comcast.net [71.197.232.41]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id B1BABFA08D; Fri, 25 Nov 2022 19:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1669404105; bh=dfClqcgfo+hGnlGEfrJ20bKdZ6Ffs/JjRuEG/WfvSHk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=vDb+F98rvzNIdjmpw6Gr+kOC1LN4maMe9ix2GH6CeHjjD4WMeChOWFeiqFPbGGJuo BD0ftPGP9THYZ0nVMH4CDKgXa2rc1hY2sNSzBQ8Xz0thND1uG2wGm67ysBZEP2oSEl SIP9MVNoyRguDNQhRfbY8zruAVZW1wtYmPDkKBig= From: Eric Abrahamsen To: Fernando de Morais Cc: info-gnus-english@gnu.org, Andrew Cohen Subject: Re: Help needed: nnmaildir and create-directory parameter. In-Reply-To: <87r0xs526s.fsf@gmail.com> (Fernando de Morais's message of "Thu, 24 Nov 2022 02:52:43 -0300") References: <87r0xtohmh.fsf@sekai.mail-host-address-is-not-set> <87bkoxa6uq.fsf@ericabrahamsen.net> <87r0xs526s.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Fri, 25 Nov 2022 11:21:43 -0800 Message-ID: <87sfi6lu0o.fsf@ericabrahamsen.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=52.70.2.18; envelope-from=eric@ericabrahamsen.net; helo=mail.ericabrahamsen.net X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, 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 Fernando de Morais writes: > 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'm guessing this is because, if you use create-directory instead of target-prefix, the empty string additionally gets run through `file-name-as-directory', which converts the "" to "./" and sets that as the value of target-prefix, and lord knows what that ends up doing. I just don't understand how any of this is supposed to work -- I don't even know why you'd use symlinks in your maildirs to begin with. This part of the manual was written by Andy Cohen and I'm cc'ing him here, though he doesn't have a lot of time for Emacs these days and we might not get him. Andy, you wrote this section of the manual 10+ years ago, do you still remember how it's supposed to work? What is the intended relationship between 'remove-prefix and 'create-directory, when the latter simply gets copied to the former if the former is nil? (I suspect the end result of all this will be the removal of 'create-directory altogether.) Thanks, Eric