From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50210 Path: main.gmane.org!not-for-mail From: David S Goldberg Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-summary-copy-article: choose group based on sender? Date: Thu, 20 Feb 2003 13:26:04 -0500 Organization: I Yam What I Yam Sender: owner-ding@hpc.uh.edu Message-ID: References: <20030220165141.93024.qmail@web10308.mail.yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045765731 32574 80.91.224.249 (20 Feb 2003 18:28:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2003 18:28:51 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18lvPv-0008LB-00 for ; Thu, 20 Feb 2003 19:27:31 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18lvP7-00031V-00; Thu, 20 Feb 2003 12:26:41 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 20 Feb 2003 12:27:40 -0600 (CST) Original-Received: from sclp3.sclp.com (sclp3.sclp.com [66.230.238.2]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id MAA23798 for ; Thu, 20 Feb 2003 12:27:28 -0600 (CST) Original-Received: (qmail 11004 invoked by alias); 20 Feb 2003 18:26:25 -0000 Original-Received: (qmail 10999 invoked from network); 20 Feb 2003 18:26:25 -0000 Original-Received: from smtpproxy2.mitre.org (192.80.55.70) by 66.230.238.6 with SMTP; 20 Feb 2003 18:26:25 -0000 Original-Received: from avsrv2.mitre.org (avsrv2.mitre.org [128.29.154.4]) by smtpproxy2.mitre.org (8.11.3/8.11.3) with ESMTP id h1KIQIc05020 for ; Thu, 20 Feb 2003 13:26:18 -0500 (EST) Original-Received: from MAILHUB1 (mailhub1.mitre.org [129.83.20.31]) by smtpsrv2.mitre.org (8.11.3/8.11.3) with ESMTP id h1KIQFo15334 for ; Thu, 20 Feb 2003 13:26:15 -0500 (EST) Original-Received: from blackbird-2k.mitre.org (129.83.3.45) by mailhub1.mitre.org with SMTP id 1227922; Thu, 20 Feb 2003 13:26:09 -0500 Original-To: The Gnus Mailing List X-Face: GUaHTH@nS>[7,ME@-gYZ4#Wl{z"99k@[[Y8AcP0x1paqu.,z9,XSV1WI>{q3f6^e5(zrit <4fV&VHhmE`uidRqtmG27;si9&r;#KSF~E#$%W8w(xdp)H4tW=\2XOk~3=@oGqqpj;m4xf Ow;y26396&,34@9#~4;@*S;E0cq"LM9N(us4P%F(Nxis'Vvfm9?KufH;:Q$dMa-QWGLR&K d0`LJZE8xb*>^yN>b]_NcU:E=Zn\1=#/(OS2 In-Reply-To: <20030220165141.93024.qmail@web10308.mail.yahoo.com> (Graham Guttocks's message of "Fri, 21 Feb 2003 05:51:41 +1300 (NZDT)") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) XEmacs/21.4 (Portable Code) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50210 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50210 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