From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84588 Path: news.gmane.org!not-for-mail From: Vincent Bernat Newsgroups: gmane.emacs.gnus.general Subject: Re: nndraft directory Date: Sat, 31 May 2014 00:46:56 +0200 Message-ID: <87r43arijj.fsf@guybrush.luffy.cx> References: <87r43bdtbi.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1401490089 16557 80.91.229.3 (30 May 2014 22:48:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 May 2014 22:48:09 +0000 (UTC) Cc: ding@gnus.org To: jorge.a.alfaro@gmail.com (Jorge A. Alfaro-Murillo) Original-X-From: ding-owner+M32833@lists.math.uh.edu Sat May 31 00:48:03 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WqVaj-00071S-MT for ding-account@gmane.org; Sat, 31 May 2014 00:48:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1WqVZz-0003FJ-CN; Fri, 30 May 2014 17:47:15 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1WqVZw-0003F4-Go for ding@lists.math.uh.edu; Fri, 30 May 2014 17:47:12 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WqVZl-0000tu-MP for ding@lists.math.uh.edu; Fri, 30 May 2014 17:47:12 -0500 Original-Received: from bart.luffy.cx ([78.47.78.131]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WqVZj-0007dD-E2 for ding@gnus.org; Sat, 31 May 2014 00:46:59 +0200 Original-Received: from bart.luffy.cx (localhost [127.0.0.1]) by bart.luffy.cx (Postfix) with ESMTP id 947D114219; Sat, 31 May 2014 00:46:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=postfix; bh=aEyMwnEtT 1ZLZ2ImCVe259uhXWU=; b=ujURogeENe/sU+Q55pHaC3RwnosXaA/OhMXeQhKv4 Se2aFJ+sFw3rV3EGcfzoaKCFo4hl08Z4hFh+mmYP+uAW0aUhis7p9hY3xjK9ONJ8 A0MYBN1CZ0HAHRyLwaVh0YFkDYZ2u/xOCdh4gJ24Dv8IUXnhkH4iKymDzOAP7lX1 Zk= DomainKey-Signature: a=rsa-sha1; c=simple; d=luffy.cx; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=postfix; b=AY9 4glbx4pp2RErOEWzIGHJW07w5/gzw7hJnEiXbpYW4rAYmYPA4kkkIQEwiQHthO/p 4puk7fyuUV39PeRMEyemJpYiKK6YprNhWDr8KsUX1W607oF9eyMP1Nb2L6h3SX8w lthntAMDAr/7Qk444RhQdFc8U3k5tWhGm9xVIt2U= Original-Received: from guybrush.luffy.cx (unknown [IPv6:2a01:e34:ec6d:710:8ea9:82ff:fe6d:94c8]) by bart.luffy.cx (Postfix) with ESMTPS id 4F5981410D; Sat, 31 May 2014 00:46:58 +0200 (CEST) Original-Received: by guybrush.luffy.cx (Postfix, from userid 1000) id 181E82D4; Sat, 31 May 2014 00:46:56 +0200 (CEST) In-Reply-To: <87r43bdtbi.fsf@gmail.com> (Jorge A. Alfaro-Murillo's message of "Fri, 30 May 2014 14:17:53 -0400") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (gnu/linux) X-Spam-Score: -2.7 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84588 Archived-At: =E2=9D=A6 30 mai 2014 14:17 -0400, jorge.a.alfaro@gmail.com (Jorge A. Alfa= ro-Murillo)=C2=A0: > I had a similar issue recently. I wanted to move the Mail and News > directories to another location. I did not have your problem exactly, > probably because I use nntp as my gnus-select-method and the nnimap's as > gnus-secondary-select-methods. But ~/Mail/archive kept being created > even after changing nnfolder-active-file and it was driving me crazy. > The documentation of the variable that you mention and of > nnfolder-active-file mention that they are "Gnus server variables". I > understood after reading (info "(gnus) Server Variables") that for my > case I could not set it simply with a setq, this was needed: > > #+BEGIN_SRC emacs-lisp > (setq message-directory "~/path_that_I_wanted/Mail/") > (setq gnus-message-archive-method > '(nnfolder "archive" > (nnfolder-directory=20 > "~/path_that_I_wanted/Mail/archive/") > (nnfolder-active-file=20 > "~/path_that_I_wanted/Mail/archive/active") > (nnfolder-inhibit-expiry t))) > (setq gnus-update-message-archive-method t) > #+END_SRC Good catch. For the archive, I have the path to ~/Mail/archive in my .newsrc.eld. So the directory is created when Gnus started. I edited the backend in the *Server* buffer and I think the problem is gone. Now, I need to do the same thing for the nndraft backend. Unfortunately, this backend is not editable. I suppose I can customize it as a secondary method? I have tried something like this: #+begin_src emacs-lisp (setq gnus-secondary-select-methods '((nndraft "" (nndraft-directory (nnheader-concat message-directory "dra= fts"))))) #+end_src Unfortunately, as soon as I replay to a message, the initial directory is created... What's odd is that saving my reply (C-x C-s) results in writing to the specified location... --=20 /* After several hours of tedious analysis, the following hash * function won. Do not mess with it... -DaveM */ 2.2.16 /usr/src/linux/fs/buffer.c