Gnus development mailing list
 help / color / mirror / Atom feed
From: David S Goldberg <david.goldberg6@verizon.net>
Subject: Re: gnus-summary-copy-article: choose group based on sender?
Date: Thu, 20 Feb 2003 13:26:04 -0500	[thread overview]
Message-ID: <u8zy94azu4j.fsf@blackbird-2k.MITRE.ORG> (raw)
In-Reply-To: <20030220165141.93024.qmail@web10308.mail.yahoo.com> (Graham Guttocks's message of "Fri, 21 Feb 2003 05:51:41 +1300 (NZDT)")

I have gnus-move-split-methods set to this:

(((lambda (arg)
    (let ((grp (dsg-get-appropriate-group arg)))
      (cond ((stringp grp)
             (list grp))
            ((listp grp)
             grp)
            t "nnimap+linus:INBOX.in-box")))))

Where arg is the name of the group (I think that's in the info since
it's not in the documentation string).  dsg-get-appropriate-group is
an overly complicated function.  It relies on the fact that the
function is run with current-buffer set to the article (or maybe
original article; I forget).  You don't want my definition of it,
which has a lot of my work stuff hard coded.  It's easy enough to
search for a given header and dynamically return a group name based on
it.  If the group doesn't exist, you will be prompted to create it
when you confirm the copy/move.

-- 
Dave Goldberg
david.goldberg6@verizon.net





  reply	other threads:[~2003-02-20 18:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-20  4:47 Graham Guttocks
2003-02-20 10:22 ` Kai Großjohann
2003-02-20 16:51   ` Graham Guttocks
2003-02-20 18:26     ` David S Goldberg [this message]
2003-02-20 19:19       ` Graham Guttocks
2003-02-20 20:04         ` David S Goldberg
2003-02-20 21:39           ` Graham Guttocks
2003-02-21 15:39             ` Kai Großjohann
2003-02-25  2:10               ` Graham Guttocks
2003-02-25  6:51                 ` Kai Großjohann
2003-02-25 18:15                   ` Graham Guttocks
2003-02-25 20:25                     ` Kai Großjohann
2003-02-20 20:24         ` Kai Großjohann
2003-02-20 20:25       ` Kai Großjohann

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=u8zy94azu4j.fsf@blackbird-2k.MITRE.ORG \
    --to=david.goldberg6@verizon.net \
    /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).