From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/55315 Path: main.gmane.org!not-for-mail From: Martin Thornquist Newsgroups: gmane.emacs.gnus.general Subject: Changing message-directory Date: Sun, 28 Dec 2003 17:04:24 +0100 Sender: ding-owner@lists.math.uh.edu Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1072631520 20997 80.91.224.253 (28 Dec 2003 17:12:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Dec 2003 17:12:00 +0000 (UTC) Original-X-From: ding-owner+M3855@lists.math.uh.edu Sun Dec 28 18:11:54 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AaeSI-0003Yy-00 for ; Sun, 28 Dec 2003 18:11:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1AaeRg-0006e4-00; Sun, 28 Dec 2003 11:11:16 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1AadP2-0006bC-00 for ding@lists.math.uh.edu; Sun, 28 Dec 2003 10:04:28 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 434953A0046 for ; Sun, 28 Dec 2003 10:04:27 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AadP0-0004l5-00 for ; Sun, 28 Dec 2003 17:04:26 +0100 Mail-Followup-To: ding@gnus.org X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AadOz-0004kx-00 for ; Sun, 28 Dec 2003 17:04:25 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AadOy-00042Y-00 for ; Sun, 28 Dec 2003 17:04:24 +0100 Original-Lines: 110 Original-X-Complaints-To: usenet@sea.gmane.org X-Face: *F7Hd7p3}A$V&*+$yikQb~';$]%NCmb'VY Mail-Copies-To: nobody User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:EbwpY+nEyOBTqVjudIA86mmVTA0= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:55315 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:55315 --=-=-= I want to keep my mail in a remote (home) directory which I Samba-mount, but don't want as local home directory (partly because Samba doesn't do file permissions). So I need to use something other than ~/Mail and ~/News for message-directory and gnus-directory (or maybe set gnus-home-directory). I haven't decided yet if I want to keep .gnus etc. on the local or remote home directory, and hence if I can set gnus-home-directory or not. To do some preemptive breakage handling I did a couple of greps in the sources: Grep for '~/Mail/' in CVS sources: message.el:113:(defcustom message-directory "~/Mail/" smime.el:157:(defcustom smime-certificate-directory "~/Mail/certs/" spam-stat.el:79:;; Learn spam: (spam-stat-process-spam-directory "~/Mail/mail/spam") spam-stat.el:80:;; Learn non-spam: (spam-stat-process-non-spam-directory "~/Mail/mail/misc") spam-stat.el:84:;; Test spam: (spam-stat-test-directory "~/Mail/mail/spam") spam-stat.el:85:;; Test non-spam: (spam-stat-test-directory "~/Mail/mail/misc") spam-stat.el:90:;; Test spam: (spam-stat-test-directory "~/Mail/mail/spam") spam-stat.el:91:;; Test non-spam: (spam-stat-test-directory "~/Mail/mail/misc") spam-stat.el:100:;; Learn spam: (spam-stat-process-spam-directory "~/Mail/mail/spam") spam-stat.el:101:;; Learn non-spam: (spam-stat-process-non-spam-directory "~/Mail/mail/misc") Grep for '~/News/': gnus-art.el:3313:If variable `gnus-use-long-file-name' is non-nil, it is ~/News/News.group/num. gnus-art.el:3314:Otherwise, it is like ~/News/news/group/num." gnus-art.el:3332:~/News/news.group/num. Otherwise, it is like ~/News/news/group/num." gnus-art.el:3350:~/News/news.group. Otherwise, it is like ~/News/news/group/news." gnus-score.el:2576:The score files are those files in the ~/News/ directory which matches nnimap.el:299:~/News/overview/nnimap.pdc.INBOX.ding.nov, or nnimap.el:300:~/News/overview/nnimap/pdc/INBOX/ding/nov if spam.el:78:(defcustom spam-directory "~/News/spam/" So it seems smime.el and spam.el are prone candidates for breakage, while the rest just have more or less broken comments. In message.el, message-directory should probably be set relative to gnus-home-directory like gnus-directory is in gnus.el. Patches for message.el and spam.el attached. I don't know how to patch smime.el. It seems to be a standalone package (I don't (think I) use it), so it cannot use message-directory or anything else from Gnus, I guess. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=message.el-diff *** message.el.~6.386.~ Thu Dec 11 05:30:04 2003 --- message.el Thu Dec 11 14:10:51 2003 *************** *** 110,116 **** :group 'message :group 'faces) ! (defcustom message-directory "~/Mail/" "*Directory from which all other mail file variables are derived." :group 'message-various :type 'directory) --- 110,117 ---- :group 'message :group 'faces) ! (defcustom message-directory (nnheader-concat gnus-home-directory "Mail/") ! ;; "~/Mail/" "*Directory from which all other mail file variables are derived." :group 'message-various :type 'directory) --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=spam.el-diff *** spam.el.~6.141.~ Thu Dec 11 05:30:05 2003 --- spam.el Thu Dec 11 14:18:31 2003 *************** *** 75,81 **** (defgroup spam nil "Spam configuration.") ! (defcustom spam-directory "~/News/spam/" "Directory for spam whitelists and blacklists." :type 'directory :group 'spam) --- 75,81 ---- (defgroup spam nil "Spam configuration.") ! (defcustom spam-directory (nnheader-concat gnus-directory "spam/") "Directory for spam whitelists and blacklists." :type 'directory :group 'spam) --=-=-= If there's any other gotchas in using ~/foo/Mail/ etc. I'd be grateful to have them pointed out. Martin -- "An ideal world is left as an exercise to the reader." -Paul Graham, On Lisp --=-=-=--