From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43343 Path: main.gmane.org!not-for-mail From: ShengHuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: New group parameter move-to ? Date: Thu, 28 Feb 2002 08:55:10 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <2nelj5u2wx.fsf@zsh.cs.rochester.edu> References: <2nsn7noyg1.fsf@zsh.cs.rochester.edu> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035178452 17097 80.91.224.250 (21 Oct 2002 05:34:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 05:34:12 +0000 (UTC) Return-Path: Original-Received: (qmail 5617 invoked from network); 28 Feb 2002 13:55:43 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 28 Feb 2002 13:55:43 -0000 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 16gR1z-0004P4-00; Thu, 28 Feb 2002 07:55:35 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 28 Feb 2002 07:55:37 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id HAA00707 for ; Thu, 28 Feb 2002 07:55:26 -0600 (CST) Original-Received: (qmail 5611 invoked by alias); 28 Feb 2002 13:55:20 -0000 Original-Received: (qmail 5606 invoked from network); 28 Feb 2002 13:55:19 -0000 Original-Received: from roc-24-58-72-167.rochester.rr.com (HELO zsh.2y.net) (@24.58.72.167) by gnus.org with SMTP; 28 Feb 2002 13:55:19 -0000 Original-Received: (from zsh@localhost) by zsh.2y.net (8.11.6/8.11.2) id g1SDtB301917; Thu, 28 Feb 2002 08:55:11 -0500 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: #zw9`a=vHLkn+ZH8C (Marco Lonsing's message of "Thu, 28 Feb 2002 14:35:52 +0100") Original-Lines: 25 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2.50 (i686-pc-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:43343 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43343 Marco Lonsing writes: > ShengHuo ZHU writes: > >> Why not use gnus-move-split-methods ? For example, >> >> (setq gnus-move-split-methods >> '((".*" "nnml:my.default.archive"))) > > Most of the time I need to copy from nnimap groups to the > corresponding group on an nnml backend I tried > > (setq gnus-move-split-methods '(((string-match "nnimap\\+rub:\\(.*\\)" > gnus-newsgroup-name) "nnml+mail:\\1"))) > > but the regexp-match isn't recognised in the destination group. Is > there another way to achieve this? Try this. Maybe there is a better solution. (setq gnus-move-split-methods '(((if (string-match "nnimap\\+rub:\\(.*\\)" gnus-newsgroup-name) (list (replace-match "nnml:\\1" nil nil gnus-newsgroup-name)))))) ShengHuo