Gnus development mailing list
 help / color / mirror / Atom feed
* nnmail-cache-ignore-groups question
@ 2004-04-13  9:40 Hiroshi Fujishima
  2004-04-13 11:26 ` Katsumi Yamaoka
  0 siblings, 1 reply; 6+ messages in thread
From: Hiroshi Fujishima @ 2004-04-13  9:40 UTC (permalink / raw)


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
from 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>

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$")

-- 
/\ /\
(^.^)
(")")
*This is the cute kitty virus, please copy this into your sig so it can spread.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnmail-cache-ignore-groups question
  2004-04-13  9:40 nnmail-cache-ignore-groups question Hiroshi Fujishima
@ 2004-04-13 11:26 ` Katsumi Yamaoka
  2004-04-14  6:59   ` Kai Grossjohann
  0 siblings, 1 reply; 6+ messages in thread
From: Katsumi Yamaoka @ 2004-04-13 11:26 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1802 bytes --]

>>>>> 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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 844 bytes --]

--- 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 ()

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnmail-cache-ignore-groups question
  2004-04-13 11:26 ` Katsumi Yamaoka
@ 2004-04-14  6:59   ` Kai Grossjohann
  2004-04-14  7:25     ` Katsumi Yamaoka
  0 siblings, 1 reply; 6+ messages in thread
From: Kai Grossjohann @ 2004-04-14  6:59 UTC (permalink / raw)


Katsumi Yamaoka <yamaoka@jpl.org> writes:

> 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.

Looking good, IMHO.

Kai



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnmail-cache-ignore-groups question
  2004-04-14  6:59   ` Kai Grossjohann
@ 2004-04-14  7:25     ` Katsumi Yamaoka
  2004-04-15  4:35       ` Hiroshi Fujishima
  0 siblings, 1 reply; 6+ messages in thread
From: Katsumi Yamaoka @ 2004-04-14  7:25 UTC (permalink / raw)


>>>>> In <87r7ur9ha5.fsf@emptyhost.emptydomain.de>
>>>>>	Kai Grossjohann <kai@emptyhost.emptydomain.de> wrote:

> Katsumi Yamaoka <yamaoka@jpl.org> writes:

>> 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.

> Looking good, IMHO.

> Kai

Thanks!  I also got to have confidence that it should be fixed.
Fujishima-san, how about the Gnus CVS head?
-- 
Katsumi Yamaoka <yamaoka@jpl.org>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnmail-cache-ignore-groups question
  2004-04-14  7:25     ` Katsumi Yamaoka
@ 2004-04-15  4:35       ` Hiroshi Fujishima
  2004-04-15  6:43         ` Katsumi Yamaoka
  0 siblings, 1 reply; 6+ messages in thread
From: Hiroshi Fujishima @ 2004-04-15  4:35 UTC (permalink / raw)


>>>>> In <b9ysmf7c972.fsf@jpl.org> 
>>>>>	Katsumi Yamaoka <yamaoka@jpl.org> wrote:
> >> 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.

> > Looking good, IMHO.

> Thanks!  I also got to have confidence that it should be fixed.
> Fujishima-san, how about the Gnus CVS head?

Thanks!  I tried the Gnus CVS head.  But it still exists Gnus-Warning
field.  I watched ~/.nnmail-cache file and I notice if recoreded
message is Gcc-ed, the 2nd field does not exist.  Is this bug?

% tail ~/.nnmail-cache
<7cu0zlykdo.fsf@totally-fudged-out-message-id>	drafts
<NIRPYULEPSQLKRYLPNLDQ@hotmail.com>	spam
<20040415.125042.260843572.y-koga@mms.mt.nec.co.jp>	list.installer
<407E06F4.6010301@acm.org>	list.zsh-users
<XLLSYKVGQPKFLDDBCCFWY@iprolink.ch>	spam
<7c4qrlg9o7.fsf@totally-fudged-out-message-id>	spam
<407E0A1B.2060703@acm.org>	list.zsh-users
<20040415125601.8C91.KAZUHO_HARUKA@yahoo.co.jp>	list.antispam-j
<7c3c75g9c0.fsf@totally-fudged-out-message-id>	drafts
<7czn9deurf.fsf@nature.tsukuba.ac.jp>

<7czn9deurf.fsf@nature.tsukuba.ac.jp> is a Gcc-ed message.

-- 
Hiroshi Fujishima



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: nnmail-cache-ignore-groups question
  2004-04-15  4:35       ` Hiroshi Fujishima
@ 2004-04-15  6:43         ` Katsumi Yamaoka
  0 siblings, 0 replies; 6+ messages in thread
From: Katsumi Yamaoka @ 2004-04-15  6:43 UTC (permalink / raw)


>>>>> In <7csmf5c0yj.fsf@nature.tsukuba.ac.jp> Hiroshi Fujishima wrote:

>> I also got to have confidence that it should be fixed.
>> Fujishima-san, how about the Gnus CVS head?

> Thanks!  I tried the Gnus CVS head.  But it still exists Gnus-Warning
> field.  I watched ~/.nnmail-cache file and I notice if recoreded
> message is Gcc-ed, the 2nd field does not exist.  Is this bug?

Oops!  I completely misunderstood.  I've reverted that bogus
change.  The problem occurs only by setting
nnmail-cache-accepted-message-ids as non-nil (see the "Fancy
Mail Splitting" info node), and isn't related to the kind of
mail back end.

>>>>> In <7cfzb8qkqn.fsf@nature.tsukuba.ac.jp> Hiroshi Fujishima wrote:

> (setq nnmail-cache-ignore-groups "^nnfolder\\+archive:backup$")

You need to exclude the method name in the regexp as:

(setq nnmail-cache-ignore-groups "^backup$")

The value can be replaced with "\\`backup\\'".

However, users who have set the gcc-self group parameter as t
cannot use such a way in order to avoid Gnus-Warnings, because
the archive group name will change variously.

In addition, I noticed there is another problem.  If
nnmail-cache-accepted-message-ids is non-nil, a strange
Message-ID is stored in the nnmail-message-id-cache-file
whenever I begin to write a mail.  It is produced when the
nndraft back end makes a draft file for the nndraft:drafts
group.  I'm not actually in trouble since I haven't set
nnmail-cache-accepted-message-ids as non-nil, though.
-- 
Katsumi Yamaoka <yamaoka@jpl.org>



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-04-15  6:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-13  9:40 nnmail-cache-ignore-groups question Hiroshi Fujishima
2004-04-13 11:26 ` Katsumi Yamaoka
2004-04-14  6:59   ` Kai Grossjohann
2004-04-14  7:25     ` Katsumi Yamaoka
2004-04-15  4:35       ` Hiroshi Fujishima
2004-04-15  6:43         ` Katsumi Yamaoka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).