From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/37915 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Prevent B c/B m from createing dups in target group Date: Fri, 17 Aug 2001 21:40:11 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035173584 18069 80.91.224.250 (21 Oct 2002 04:13:04 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:13:04 +0000 (UTC) Return-Path: Return-Path: Original-Received: (qmail 6051 invoked from network); 17 Aug 2001 19:40:35 -0000 Original-Received: from quimby.gnus.org (195.204.10.139) by gnus.org with SMTP; 17 Aug 2001 19:40:35 -0000 Original-Received: (from news@localhost) by quimby.gnus.org (8.9.3/8.9.3) id VAA24894 for ding@gnus.org; Fri, 17 Aug 2001 21:40:22 +0200 (CEST) Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-NNTP-Posting-Host: quimbies.gnus.org Original-X-Trace: quimby.gnus.org 998077221 7989 195.204.10.148 (17 Aug 2001 19:40:21 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 17 Aug 2001 19:40:21 GMT Mail-Copies-To: never X-Now-Playing: David Grubbs's _Aux Noctambules_: "Aux Noctambules" User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 X-Face: &w!^oO~dS|}-P0~ge{$c!h\ writes: > My OP was asking for an outline of how to go about starting to create > that functionality in gnus. Once finished it could hopefully be > submitted for consideration as an inclusion. Oh, right. In that case, here's how I would do it. I'd make an option to have mail backends cache the group/message-id pair somewhere. Take the nnmail.*cache.* functions as a starting point. (They only cache on a message-id basis.) Then have an option to refuse entry into the mail backends when you find a group/message-id pair that matches. The problem with this approach is that if you move a message out of a group, you have to remove it from the cache as well. And what happens if you delete it outside of Gnus? You wouldn't then be able to copy a new copy into the group. Scratch that. Perhaps the nn.*-request-accept-article function could have an option to go through all the messages in the group and see whether the message is already there. But that would take a looong time. > 3) Suppression seems very much like taking pain pills to mask an > injury while continuing to grind your body to dust... On the other hand, if you have a slight headache, a pain killer makes it all go away and makes you happy and shiny again. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen