From: "Ted Zlatanov" <tzz@lifelogs.com>
Cc: ding@gnus.org
Subject: Re: nnimap-generate-folder-list-from-bbdb, almost.
Date: 24 Feb 2005 12:46:48 -0500 [thread overview]
Message-ID: <4nacptn94n.fsf@lifelogs.com> (raw)
In-Reply-To: <87zmxulou2.fsf@mat.ucm.es> (Uwe Brauer's message of "Wed, 23 Feb 2005 20:38:13 -0500")
On Wed, 23 Feb 2005, oub@mat.ucm.es wrote:
> Some weeks ago I asked in the gnus group for a function which would
> allow to generate a entry in the nnimap-split-fancy list, based on a
> relevant bbdb entry.
>
> I am almost there, that is I obtained a function
> (my:nnimap-folder-list-from-bbdb) --which I have added below--
>
> Evaluation the function, that
> (eval-expression '(my:nnimap-folder-list-from-bbdb) nil)
> returns
> (
> ("From" "bill@upct\\.es" "testbill")
> ^this is the relevant bbdb entry.
> ("From" "oub@mat\\.ucm\\.es" "testimap"))
> ^this is the relevant bbdb entry.
>
>
> Now the problem is I don't know who to add this to the
> nnimap-split-entry
You can use a macro to do this.
For example (from the manual, see the ELisp manual, node "Macros"):
'(a list of (+ 2 3) elements)
=> (a list of (+ 2 3) elements)
`(a list of (+ 2 3) elements)
=> (a list of (+ 2 3) elements)
`(a list of ,(+ 2 3) elements)
=> (a list of 5 elements)
Note how the backquote turns the expression into a macro.
So it seems that in your case, something like this:
(setq nnimap-split-fancy
`(|
("Subject" "POSIBLE SPAM" "SPAM.POSS")
...
,(my:nnimap-folder-list-from-bbdb)
...
"MAILBOX"
))
should work.
Ted
next prev parent reply other threads:[~2005-02-24 17:46 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 [this message]
2005-02-25 1:23 ` Uwe Brauer
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=4nacptn94n.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=ding@gnus.org \
/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).