From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/75380 Path: news.gmane.org!not-for-mail From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Newsgroups: gmane.emacs.gnus.general Subject: Re: Returning multiple groups from a fancy split Date: Wed, 22 Dec 2010 07:52:10 +0100 Message-ID: <87bp4e2tb9.fsf@gmail.com> References: <87ipymap9b.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1293000880 32598 80.91.229.12 (22 Dec 2010 06:54:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Dec 2010 06:54:40 +0000 (UTC) Cc: Tommy Kelly , ding@gnus.org To: Tassilo Horn Original-X-From: ding-owner+M23732@lists.math.uh.edu Wed Dec 22 07:54:35 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PVIap-0005vG-Av for ding-account@gmane.org; Wed, 22 Dec 2010 07:54:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PVIam-0001rs-CB; Wed, 22 Dec 2010 00:54:32 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PVIai-0001rd-9K for ding@lists.math.uh.edu; Wed, 22 Dec 2010 00:54:28 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PVIag-0002ll-Kk for ding@lists.math.uh.edu; Wed, 22 Dec 2010 00:54:28 -0600 Original-Received: from mail-fx0-f47.google.com ([209.85.161.47]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PVIaf-0002Uh-QI for ding@gnus.org; Wed, 22 Dec 2010 07:54:25 +0100 Original-Received: by fxm17 with SMTP id 17so4822796fxm.6 for ; Tue, 21 Dec 2010 22:54:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :in-reply-to:references:user-agent:date:message-id:mime-version :content-type:content-transfer-encoding; bh=5dmePIunc/jpk1fukUQn2cbkBJJ1KjodmVceXsQBJZI=; b=CR8yv5abaB2dUW0VU8dA+HvniQZGTVwkU+IcbvyrqqRD+gCbMtwqWxXho/ngQDpd9M 9sKiYsS+//GtGr2lFSD3ZOmRaczQsJV4tyexj/RsvbTJd2qH0d/IRYb791lF0U4bC0fK d+BFbUmx+bw6QBJAzPC6lP8/IxPpoT8yn1+7E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; b=neh14YDVgQXf7cd+c+pUIpLrXgcKAxQ1p3NGNfs/PWfq3zhE3zLd62kSXQL5OVaHd/ hHX4DBJDL7IIa+tmx8k0sx9RkZ209tNcB3ENl/bdi0tBeO5m091jOeawOki4Y6YA89dz VyA4/VuwTOntbfuOjaaq8O1Gzm4aFZhyibSMU= Original-Received: by 10.223.36.220 with SMTP id u28mr3243433fad.11.1293000860308; Tue, 21 Dec 2010 22:54:20 -0800 (PST) Original-Received: from localhost (176.119.broadband10.iol.cz [90.177.119.176]) by mx.google.com with ESMTPS id n3sm1571974fax.7.2010.12.21.22.54.17 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 21 Dec 2010 22:54:18 -0800 (PST) In-Reply-To: <87ipymap9b.fsf@member.fsf.org> (Tassilo Horn's message of "Tue, 21 Dec 2010 20:40:16 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Spam-Score: -3.0 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:75380 Archived-At: Tassilo Horn writes: > Tommy Kelly writes: > > Hi Tommy, > > I have no clue about fancy mail splitting anymore (converted to > server-side sieve splitting), so I only take the bonus question. > >> P.S. Bonus question to help a lisp newb. Is there a simple piece of >> lisp I could have written as the body of my-function so as to answer >> my own question? > > (defun tommy-split-fun (arg) > (message "SPLIT evaluated to %s" arg)) Better use %S instead of %s to e.g. distinguish between symbols and strings as return values. This also assumes the function receives exactly one argument; you could use (&rest args) instead of (arg) to get the list of all arguments received. =C5=A0t=C4=9Bp=C3=A1n