From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/57000 Path: main.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: nnmail-cache-ignore-groups question Date: Tue, 13 Apr 2004 20:26:43 +0900 Organization: Emacsen advocacy group Sender: ding-owner@lists.math.uh.edu Message-ID: References: <7cfzb8qkqn.fsf@nature.tsukuba.ac.jp> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1081855766 19176 80.91.224.253 (13 Apr 2004 11:29:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Apr 2004 11:29:26 +0000 (UTC) Original-X-From: ding-owner+M5540@lists.math.uh.edu Tue Apr 13 13:29:18 2004 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 1BDM6P-0003yt-00 for ; Tue, 13 Apr 2004 13:29:18 +0200 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 1BDM4H-0002Hm-00; Tue, 13 Apr 2004 06:27:05 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BDM49-0002Hg-00 for ding@lists.math.uh.edu; Tue, 13 Apr 2004 06:26:57 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BDM45-0002X1-PR for ding@lists.math.uh.edu; Tue, 13 Apr 2004 06:26:53 -0500 Original-Received: from washington.hostforweb.net (washington.hostforweb.net [69.61.11.2]) by justine.libertine.org (Postfix) with ESMTP id A85B63A0037 for ; Tue, 13 Apr 2004 06:26:52 -0500 (CDT) Original-Received: from yamaoka by washington.hostforweb.net with local (Exim 4.24) id 1BDM43-0000rN-Pa for ding@gnus.org; Tue, 13 Apr 2004 07:26:52 -0400 Original-To: ding@gnus.org 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.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:9gbfkG2Gvr4ApcaLpLq1I5WwAdo= X-Hashcash: 0:040413:ding@gnus.org:13d5f0f9450effd3 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 - [32041 32041] / [47 12] X-AntiAbuse: Sender Address Domain - washington.hostforweb.net Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:57000 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:57000 --=-=-= >>>>> In <7cfzb8qkqn.fsf@nature.tsukuba.ac.jp> Hiroshi Fujishima wrote: > Hi, > I am using Gnus with follwing setting. > gnus-select-method's value is (nnml "") > gnus-message-archive-method's value is "archive" <- which is default value > gnus-message-archive-group's value is "backup" > If I post a message to mailing list, the message which is delivered > grom mailing list server has Gnus-Warning: field as below. Because, > the posted message Gcc-ed in nnfolder+archive:backup. > Gnus-Warning: This is a duplicate of message <7cptad9pid.fsf@nature.tsukuba.ac.jp> It is because those message-ids have been stored in the nnmail-message-id-cache-file. I think it is useless to cache ids for archive articles. If it is true, the problem will be able to be solved by some way (currently I don't have a concrete idea). > Since I don't like Gnus records Gcc-ed message in > nnfolder+archive:backup, I refer info as below. > (info "(gnus)Fancy Mail Splitting") >| Also see the variable `nnmail-cache-ignore-groups' if you don't want >| certain groups to be recorded in the cache. For example, if all >| outgoing messages are written to an "outgoing" group, you could set >| `nnmail-cache-ignore-groups' to match that group name. Otherwise, >| answers to all your messages would end up in the "outgoing" group. > So I add next configuration, but Gnus still recording message in > nnfolder+archive:backup. why? > (setq nnmail-cache-ignore-groups "^nnfolder\\+archive:backup$") Because nnfolder is not your primary mail back end which is not examined by nnmail-cache-ignore-groups. See nnmail-cache-insert. Isn't it a bug? I don't understand why it puts non-primary mail back ends out. Although I have no confidence, I made a patch for it. I appreciate someone examining it closely. --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- nnmail.el~ 2004-03-05 10:50:21 +0000 +++ nnmail.el 2004-04-13 11:25:16 +0000 @@ -1570,15 +1570,16 @@ (save-excursion (set-buffer nnmail-cache-buffer) (goto-char (point-max)) - (if (and grp (not (string= "" grp)) - (gnus-methods-equal-p gnus-command-method - (nnmail-cache-primary-mail-backend))) + (if (and grp (not (string= "" grp))) (let ((regexp (if (consp nnmail-cache-ignore-groups) (mapconcat 'identity nnmail-cache-ignore-groups "\\|") nnmail-cache-ignore-groups))) (unless (and regexp (string-match regexp grp)) - (insert id "\t" grp "\n"))) + (if (gnus-methods-equal-p gnus-command-method + (nnmail-cache-primary-mail-backend)) + (insert id "\t" grp "\n") + (insert id "\n")))) (insert id "\n")))))) (defun nnmail-cache-primary-mail-backend () --=-=-=--