From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/50233 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-summary-copy-article: choose group based on sender? Date: Fri, 21 Feb 2003 16:39:43 +0100 Organization: University of Duisburg, Germany Sender: owner-ding@hpc.uh.edu Message-ID: <84smuhzlq8.fsf@lucy.is.informatik.uni-duisburg.de> References: <20030220213909.45108.qmail@web10303.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 1045842082 24657 80.91.224.249 (21 Feb 2003 15:41:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Feb 2003 15:41:22 +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 18mFId-0006PN-00 for ; Fri, 21 Feb 2003 16:41:19 +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 18mFII-0001nT-00; Fri, 21 Feb 2003 09:40:58 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 21 Feb 2003 09:41:55 -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 JAA26567 for ; Fri, 21 Feb 2003 09:41:43 -0600 (CST) Original-Received: (qmail 53367 invoked by alias); 21 Feb 2003 15:40:41 -0000 Original-Received: (qmail 53362 invoked from network); 21 Feb 2003 15:40:41 -0000 Original-Received: from quimby.gnus.org (80.91.224.244) by 66.230.238.6 with SMTP; 21 Feb 2003 15:40:41 -0000 Original-Received: from news by quimby.gnus.org with local (Exim 3.12 #1 (Debian)) id 18mFVv-0006ds-00 for ; Fri, 21 Feb 2003 16:55:03 +0100 Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 38 Original-NNTP-Posting-Host: pd9e1e9f2.dip.t-dialin.net Original-X-Trace: quimby.gnus.org 1045842903 25290 217.225.233.242 (21 Feb 2003 15:55:03 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 21 Feb 2003 15:55:03 GMT User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 Cancel-Lock: sha1:Fp+l7epuKT/hsKk60gFJT527ELU= Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:50233 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:50233 Graham Guttocks writes: > Ugh, I'm really struggling here. This is what I have, but something > isn't quite right: > > (setq gnus-move-split-methods > '((".*" (lambda () > (concat "saved." (mail-fetch-field "from")) > "nnml:")))) Hm. First, you concat "saved." and the from header, then you throw that data away. Then the function returns the string "nnml:". Maybe you meant this: (concat "saved." (mail-fetch-field "from") "nnml:") Suppose the From header is "Kai Grossjohann ", then the above will produce a group name like this: saved.Kai Grossjohann nnml: It looks weird. There is a function mail-header-parse-address, btw, such that (mail-header-parse-address "Kai Grossjohann ") will return ("kai@frob.org" . "Kai Grossjohann") which appears somewhat more useful :-) Does this help? (Give a man a fish... teach... you know...) -- A preposition is not a good thing to end a sentence with.