From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60864 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: How to change the default gnus-message-archive-method? Date: Fri, 02 Sep 2005 15:23:14 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1125642659 18166 80.91.229.2 (2 Sep 2005 06:30:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Sep 2005 06:30:59 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+m9396=ding+2daccount=gmane.org@lists.math.uh.edu Fri Sep 02 08:30:56 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EB53S-0007x2-QF for ding-account@gmane.org; Fri, 02 Sep 2005 08:29:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EB53R-0003m5-01 for ding-account@gmane.org; Fri, 02 Sep 2005 01:29:37 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EB4xZ-0003l4-00 for ding@lists.math.uh.edu; Fri, 02 Sep 2005 01:23:33 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EB4xV-0004qN-AH for ding@lists.math.uh.edu; Fri, 02 Sep 2005 01:23:33 -0500 Original-Received: from washington.hostforweb.net ([66.225.201.13]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EB4xU-0000Dw-00 for ; Fri, 02 Sep 2005 08:23:28 +0200 Original-Received: from localhost ([127.0.0.1]) by washington.hostforweb.net with esmtpa (Exim 4.50) id 1EB4xh-0007Gi-EW; Fri, 02 Sep 2005 01:23:41 -0500 Original-To: Rodolfo Medina X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:rayOn8JdOfQWt0V/clzDJtS0OaA= X-Hashcash: 1:20:050902:romeomedina@libero.it::jiMu7hqArK1yBQ5d:00000000000000000000000000000000000000007NuK X-Hashcash: 1:20:050902:ding@gnus.org::tkKMtgJXdzaM8ukj:00000035 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60864 Archived-At: >>>>> In >>>>> "romeomedina\@libero\.it" wrote: > Katsumi Yamaoka wrote: >> How doesn't it work? What is the value you've set to the >> `gnus-message-archive-group' variable? What is the Gnus version >> you are using? > It doesn't work in the sense that gnus is going on storing the mail > I send in its default `~/Mail/archive' directory. > I've set the `gnus-message-archive-group' variable to the value 'all'. > I'm using the Gnus version 5.11, included in Emacs CVS 21.3.50.1 of 2005-03-13. I guess you have the default archive method in your ~/.newsrc.eld file. To examine it, type C-h v gnus-server-alist RET after starting up Gnus. Isn't there an item like the following? ("archive" nnfolder "archive" (nnfolder-directory "~/Mail/archive") (nnfolder-active-file "~/Mail/archive/active") (nnfolder-get-new-mail nil) (nnfolder-inhibit-expiry t)) If it exists, it may have been made when the value of the `gnus-message-archive-method' variable was "archive" (which is the default). Probably, the following header will appear in your message buffers. Gcc: nnfolder+archive:all When sending a message, Gnus parses the value of that header and determine the method to archive the sent message. At that time, if the `gnus-server-alist' variable holds the "archive" method, Gnus uses it rather than the one defined in `gnus-message-archive-method'. Furthermore, there's no opportunity to update the "archive" method held in `gnus-server-alist'. We may say it is a bug. I don't have an idea to fix it, though. If your case comes under this, it will be solvable by the following ways. 1. Start Emacs; start Gnus; quit Gnus, but don't quit Emacs. 2. Make a backup of the ~/.newsrc.eld file. 3. Copy the following Lisp form into the *scratch* buffer, and evaluate it (type `C-j' at the end of the last line). (let ((file "~/.newsrc.eld") (coding-system-for-read gnus-ding-file-coding-system) (coding-system-for-write gnus-ding-file-coding-system) (default-enable-multibyte-characters t) (print-quoted t) (print-readably t) (print-escape-multibyte nil) (print-escape-nonascii t) (print-length nil) (print-level nil) (print-escape-newlines t) start alist arc) (with-temp-buffer (insert-file-contents file) (goto-char (point-min)) (when (re-search-forward "([\t\n ]*setq[\t\n ]+gnus-server-alist[\t\n ]" nil t) (goto-char (setq start (match-beginning 0))) (setq alist (car (cdr (car (cdr (cdr (read (current-buffer)))))))) (skip-chars-forward "\t\n ") (delete-region start (point)) (while (setq arc (assoc "archive" alist)) (setq alist (delq arc alist))) (insert "(setq gnus-server-alist '" (prin1-to-string alist) ")\n") (write-region (point-min) (point-max) file)))) 4. Start Gnus.