From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59901 Path: main.gmane.org!not-for-mail From: "Ted Zlatanov" Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap-generate-folder-list-from-bbdb, almost. Date: 24 Feb 2005 15:12:42 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <4nekf5ogxx.fsf@lifelogs.com> References: <87zmxulou2.fsf@mat.ucm.es> <4nacptn94n.fsf@lifelogs.com> <87vf8hsa8o.fsf@mat.ucm.es> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109275785 3785 80.91.229.2 (24 Feb 2005 20:09:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2005 20:09:45 +0000 (UTC) Cc: ding@gnus.org Original-X-From: ding-owner+M8442@lists.math.uh.edu Thu Feb 24 21:09:45 2005 Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by ciao.gmane.org with esmtp (Exim 4.43) id 1D4PIq-0001Vt-3K for ding-account@gmane.org; Thu, 24 Feb 2005 21:09:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1D4PM9-0003MM-00; Thu, 24 Feb 2005 14:13:05 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1D4PM1-0003MG-00 for ding@lists.math.uh.edu; Thu, 24 Feb 2005 14:12:57 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1D4PLy-00089l-Ud for ding@lists.math.uh.edu; Thu, 24 Feb 2005 14:12:55 -0600 Original-Received: from clifford.bwh.harvard.edu ([134.174.9.41] helo=mail.bwh.harvard.edu) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1D4PLx-00056j-00 for ; Thu, 24 Feb 2005 21:12:54 +0100 Original-Received: (qmail 9741 invoked from network); 24 Feb 2005 20:10:52 -0000 Envelope-Sender: tzz@lifelogs.com Envelope-Recipients: oub@mat.ucm.es, ding@gnus.org, Original-Received: from asimov.bwh.harvard.edu (HELO asimov) (internal?.8?user:?tzz@[134.174.8.118]) (envelope-sender ) by mail.bwh.harvard.edu (qmail-ldap-1.03) with SMTP for ; 24 Feb 2005 20:10:47 -0000 Mail-Followup-To: "Uwe Brauer" , ding@gnus.org Original-To: "Uwe Brauer" X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" X-Hashcash: 1:20:050224:ding@gnus.org::fPW3uO2Jv3gll1PM:000007/c X-Hashcash: 1:20:050224:oub@mat.ucm.es::KuL0bXqRgELGlqgB:000000000000000000000000000000000000000000000001VpB In-Reply-To: <87vf8hsa8o.fsf@mat.ucm.es> (Uwe Brauer's message of "Thu, 24 Feb 2005 20:23:51 -0500") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) X-Spam-Status: No, score=-1.6 required=5.8 tests=AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on sysblade0.bwh.harvard.edu X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu X-MailScanner-From: ding-owner+m8442@lists.math.uh.edu X-MailScanner-To: ding-account@gmane.org Xref: main.gmane.org gmane.emacs.gnus.general:59901 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59901 On Thu, 24 Feb 2005, oub@mat.ucm.es wrote: > I works when (my:nnimap-folder-list-from-bbdb) would just return one > entry however if there are more the above setting leads to > `nnimap-split-fancy' is a variable declared in Lisp. > -- loaded from "nnimap" > > Value: (| > (("From" "oub@gmx\\.net" "imapgmx") > ^evil par > ("From" "oub@mat\\.ucm\\.es" "testimap")) > ^evil par > ("Subject" ".*\\[POSSILBLE > SPAM\\].*" "SPAM.POSS") > and this is evil > > > So I was pointed out that ,(car (my:nnimap-folder-list-from-bbdb)) > might, work, it does, but of course it will add only *the first* of the above > list entries not all of them. Lisp is made to deal with lists, but > how? Use the ,@ expansion instead of just , See the Elisp manual, section "Macros" for more information. It's really not that complicated, and you'll understand it better from the many examples. I tried to avoid it for a while, and my code turned out much uglier without macros :) Here's an example that returns (1 5 6 2 3) because the (list) function call is flattened by the ,@ operator. `(1 ,@(list 5 6) 2 3) That should be exactly what you need. Ted