Gnus development mailing list
 help / color / mirror / Atom feed
From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: gnus-summary-copy-article: choose group based on sender?
Date: Fri, 21 Feb 2003 16:39:43 +0100	[thread overview]
Message-ID: <84smuhzlq8.fsf@lucy.is.informatik.uni-duisburg.de> (raw)
In-Reply-To: <20030220213909.45108.qmail@web10303.mail.yahoo.com>

Graham Guttocks <graham_guttocks@yahoo.co.nz> 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 <kai@frob.org>", then the
above will produce a group name like this:

    saved.Kai Grossjohann <kai@frob.org>nnml:

It looks weird.  There is a function mail-header-parse-address, btw,
such that

    (mail-header-parse-address "Kai Grossjohann <kai@frob.org>")

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.



  reply	other threads:[~2003-02-21 15:39 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
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 [this message]
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=84smuhzlq8.fsf@lucy.is.informatik.uni-duisburg.de \
    --to=kai.grossjohann@uni-duisburg.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).