From: Leo <sdl.web@gmail.com>
To: ding@gnus.org
Subject: Re: gnus-registry flags API
Date: Wed, 26 Sep 2007 00:40:47 +0100 [thread overview]
Message-ID: <m2lkaub9fk.fsf@cam.ac.uk> (raw)
In-Reply-To: <m2bqbq3e5b.fsf@lifelogs.com>
On 2007-09-25 17:26 +0100, Ted Zlatanov wrote:
> I added an API to the gnus-registry for reading and writing flags. It's
> very simple (id is always the message ID):
>
> ;; get the list of flags (note it's a list)
> (gnus-registry-fetch-extra-flags id)
> ;; set 'important and 'todo flags (note the parameters are not a list)
> (gnus-registry-store-extra-flags id 'important 'todo)
> ;; remove just the 'important flag
> (gnus-registry-delete-extra-flags id 'important)
> ;; is 'important set?
> (gnus-registry-has-extra-flag id 'important)
> ;; remove all the flags
> (gnus-registry-store-extra-flags id nil)
> ;; convenience function for the above
> (gnus-registry-delete-all-extra-flags id)
[...]
This looks like one of the most exciting features over the past year.
--
.: Leo :. [ sdl.web AT gmail.com ] .: [ GPG Key: 9283AA3F ] :.
Use the most powerful email client -- http://gnus.org/
next prev parent reply other threads:[~2007-09-25 23:40 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-25 16:26 Ted Zlatanov
2007-09-25 19:58 ` Bastien
2007-09-25 23:40 ` Leo [this message]
2007-12-19 1:22 ` Ted Zlatanov
2008-01-03 17:10 ` Reiner Steib
2008-01-03 17:55 ` Ted Zlatanov
2008-01-04 17:43 ` Reiner Steib
2008-01-15 21:56 ` Ted Zlatanov
2008-01-16 21:52 ` Ted Zlatanov
2008-02-06 17:17 ` Ted Zlatanov
2008-02-16 20:26 ` Reiner Steib
2008-02-28 15:12 ` Ted Zlatanov
2008-02-28 20:04 ` Reiner Steib
2008-02-29 23:19 ` Ted Zlatanov
2008-03-04 22:43 ` Ted Zlatanov
2008-03-05 19:00 ` Ted Zlatanov
2008-03-06 21:50 ` Ted Zlatanov
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=m2lkaub9fk.fsf@cam.ac.uk \
--to=sdl.web@gmail.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).