Gnus development mailing list
 help / color / mirror / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
Subject: Re: nnimap-generate-folder-list-from-bbdb, almost.
Date: Thu, 24 Feb 2005 20:23:51 -0500	[thread overview]
Message-ID: <87vf8hsa8o.fsf@mat.ucm.es> (raw)
In-Reply-To: <4nacptn94n.fsf@lifelogs.com>

>>>>> "Ted" == Ted Zlatanov <tzz@lifelogs.com> writes:

    Ted> On Wed, 23 Feb 2005, oub@mat.ucm.es wrote:

    Ted> You can use a macro to do this.

    Ted> For example (from the manual, see the ELisp manual, node "Macros"):

    Ted>     '(a list of (+ 2 3) elements)
    Ted>           => (a list of (+ 2 3) elements)
    Ted>     `(a list of (+ 2 3) elements)
    Ted>           => (a list of (+ 2 3) elements)
    Ted>      `(a list of ,(+ 2 3) elements)
    Ted>           => (a list of 5 elements)

Great I did not know about this.
    Ted> Note how the backquote turns the expression into a macro.

    Ted> So it seems that in your case, something like this:

    Ted> (setq nnimap-split-fancy
    Ted>  `(|
    Ted>    ("Subject" "POSIBLE SPAM" "SPAM.POSS")
    Ted> ...
    Ted>   ,(my:nnimap-folder-list-from-bbdb)
    Ted> ...
    Ted>   "MAILBOX"
    Ted>   ))

    Ted> should work.
Almost almost.

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?

Thanks

Uwe 




  reply	other threads:[~2005-02-25  1:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-24  1:38 Uwe Brauer
2005-02-24 17:46 ` Ted Zlatanov
2005-02-25  1:23   ` Uwe Brauer [this message]
2005-02-24 20:12     ` Ted Zlatanov
2005-02-25 16:06       ` Uwe Brauer

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=87vf8hsa8o.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    /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).