Gnus development mailing list
 help / color / mirror / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE
Subject: Split replies to go with originals
Date: 28 Jan 1999 19:35:53 +0100	[thread overview]
Message-ID: <vafemofxn1y.fsf@ramses.cs.uni-dortmund.de> (raw)

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

For a long time, I have wanted the following feature: after I have
manually moved a certain article to a certain group, I want all
followups (or replies) to that article to go to that same group
automatically.

Back in the sixties, I created the following patch which will enable
Gnus to do that.  I'm interested in you folks trying it out to see if
it works.  Lars has said that he's willing to add this feature to Gnus
but that he's going to rewrite the mail splitting thing.  Now that
he's rewritten mail fetching, I think this is a good time to once
again check whether this feature works, before actually integrating it
into the Gnus core.

What does the patch do?

Well, Gnus keeps a log of recently seen mail in ~/.nnmail-cache.  This
patch just adds the group name along with the message id, and then
there's a splitting function for nnmail-split-fancy which looks up
message ids in the In-Reply-To and References headers in that file to
find out the right group name.  The file format is
backward-compatible, i.e. you can continue to use your existing file;
the group name will be added to newly encountered messages.  And the
patch is smart enough to only put the group name in if it's a group in
the mail backend where mail is split to.  (This is also the part that
will need to be changed when mail splitting is improved.)

The patch is for pgnus 0.63 but still applies cleanly to 0.73, except
for an offset of some lines.

How do you use it?

You need not do anything for this to store the message ids in
~/.nnmail-cache.  The patch defines a function
nnmail-split-fancy-with-parent which can be invoked from
nnmail-split-fancy like so:

  (setq nnmail-split-fancy
        '(| (: nnmail-split-fancy-with-parent)
            ;; other splits go here
         ))

Modify as appropriate.

I'm interested in all kinds of feedback.

kai
-- 
Abort this operation?   [Abort]  [Cancel]


[-- Attachment #2: mail split patch --]
[-- Type: application/x-patch, Size: 3389 bytes --]

             reply	other threads:[~1999-01-28 18:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-28 18:35 Kai.Grossjohann [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-11-11 19:59 Kai.Grossjohann
1998-11-12 11:02 ` Terje Sannum
1998-11-12 11:14   ` Kai.Grossjohann
1998-11-12 22:42     ` Terje Sannum
1998-11-13 17:14 ` Wes Hardaker
1998-11-13 22:20   ` Kai.Grossjohann
1998-11-13 22:39 ` Kai.Grossjohann

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=vafemofxn1y.fsf@ramses.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.de \
    /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).