Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: Prevent B c/B m from createing dups in target group
Date: Fri, 17 Aug 2001 21:40:11 +0200	[thread overview]
Message-ID: <m3n14ytqzo.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <m1hev64hok.fsf@reader.newsguy.com>

Harry Putnam <reader@newsguy.com> 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


  reply	other threads:[~2001-08-17 19:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-17 15:40 Harry Putnam
2001-08-17 17:28 ` Kai Großjohann
2001-08-17 18:20   ` Harry Putnam
2001-08-17 18:52     ` Lars Magne Ingebrigtsen
2001-08-17 18:58       ` Paul Jarc
2001-08-17 19:01         ` Lars Magne Ingebrigtsen
2001-08-17 19:08       ` Kai Großjohann
2001-08-17 19:21         ` Lars Magne Ingebrigtsen
2001-08-17 19:45         ` Harry Putnam
2001-08-17 19:25       ` Harry Putnam
2001-08-17 19:40         ` Lars Magne Ingebrigtsen [this message]
2001-08-17 19:47           ` Paul Jarc
2001-08-17 20:24             ` Lars Magne Ingebrigtsen
2001-08-17 20:35           ` Harry Putnam
2001-08-17 19:09 ` Kai Großjohann
2001-08-17 19:55   ` Harry Putnam
2001-08-17 20:50     ` Kai Großjohann
2001-08-19 15:57   ` Nuutti Kotivuori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3n14ytqzo.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).