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 23447 invoked from network); 23 Nov 2022 18:01:12 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 23 Nov 2022 18:01:12 -0000 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxu3U-0002d1-Rg; Wed, 23 Nov 2022 13:01:04 -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 1oxu3M-0002cF-T5 for info-gnus-english@gnu.org; Wed, 23 Nov 2022 13:01:00 -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 1oxu3L-0000AE-DU for info-gnus-english@gnu.org; Wed, 23 Nov 2022 13:00:56 -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 6195FFA08F; Wed, 23 Nov 2022 18:00:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1669226447; bh=Fs7ewi4/b7oH2ugmDBi4IaZPvZHDRRmxwDBRSAR1g7w=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=x/gtHK8295Ml6IXaDVogWx5T2K+1nu20nB+74BS7/D1w+D45jH4pkCEqZmuc01zq4 aG7PHmL5n4FT8SOVpBFVPht5AlFMNtuoFZt/WfKxRj/XsmhGn9sYq4jHAzsw35FqM5 mFs3BuqE9goFxyKQZN1BNNqo4eMeGgbOOJX3xUMI= From: Eric Abrahamsen To: Fernando de Morais Cc: info-gnus-english@gnu.org Subject: Re: Help needed: nnmaildir and create-directory parameter. In-Reply-To: <87r0xtohmh.fsf@sekai.mail-host-address-is-not-set> (Fernando de Morais's message of "Wed, 23 Nov 2022 11:44:22 -0300") References: <87r0xtohmh.fsf@sekai.mail-host-address-is-not-set> Date: Wed, 23 Nov 2022 10:00:45 -0800 Message-ID: <87bkoxa6uq.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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 everyone, > > According to the manual, for a `nnmaildir' server, if my split rules > create new groups, I need to supply a `create-directory' server > parameter[1]. Ok, so considering the following example snippet: > > #+begin_src emacs-lisp > (customize-set-variable 'gnus-select-method '(nnnil "")) > (customize-set-variable 'gnus-secondary-select-methods > '((nntp "news.gwene.org") > (nnmaildir "" > (directory "~/Mail/maildirs") > (target-prefix "") > (get-new-mail t) > (create-directory ...)))) ; <-- Here > (customize-set-variable 'mail-sources '((file :path "~/Mail/emaple_mbox"))) > (customize-set-variable 'nnmail-split-methods '(("inbox" ""))) > #+end_src > > Following the example snippet above, what is the expected value for the > parameter `create-directory'? Unfortunately the manual brings no > details about it. I won't claim to understand how this is supposed to work, but in `nnmaildir-open-server' we've got the following chunk of lisp-as-imperative-code: (setq x (assq 'target-prefix defs)) (if x (progn (setq x (cadr x) x (eval x t)) ;FIXME: Why `eval'? (setf (nnmaildir--srv-target-prefix server) x)) (setq x (assq 'create-directory defs)) (if x (progn (setq x (cadr x) x (eval x t) ;FIXME: Why `eval'? x (file-name-as-directory x)) (setf (nnmaildir--srv-target-prefix server) x)) (setf (nnmaildir--srv-target-prefix server) ""))) This makes it look to me like, if you've got a 'target-prefix set (even if it's the empty string), then 'create-directory never comes into play at all. So maybe try taking out the (target-prefix "") server config completely? I really don't know how this is meant to work. If you figure it out we should update the manual. Thanks, Eric