From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65258 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-registry flags API Date: Wed, 26 Sep 2007 00:40:47 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1190763944 27351 80.91.229.12 (25 Sep 2007 23:45:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Sep 2007 23:45:44 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13770@lists.math.uh.edu Wed Sep 26 01:45:40 2007 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.50) id 1IaK5z-0004bk-Qq for ding-account@gmane.org; Wed, 26 Sep 2007 01:45:40 +0200 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 1IaK5D-0006sF-U0; Tue, 25 Sep 2007 18:44:51 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IaK5B-0006rw-57 for ding@lists.math.uh.edu; Tue, 25 Sep 2007 18:44:49 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IaK54-0006QU-SD for ding@lists.math.uh.edu; Tue, 25 Sep 2007 18:44:48 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IaK4v-0003rd-00 for ; Wed, 26 Sep 2007 01:44:33 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IaK4u-0001Zt-Mr for ding@gnus.org; Tue, 25 Sep 2007 23:44:32 +0000 Original-Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Sep 2007 23:44:32 +0000 Original-Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Sep 2007 23:44:32 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: sl392.st-edmunds.cam.ac.uk Face: iVBORw0KGgoAAAANSUhEUgAAACgAAAAoAgMAAADxkFD+AAAADFBMVEUvT09qWs3/pQD///+J kUVcAAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9cBBwMLOd3veKQA AACuSURBVBjTldE9CgIxEAXgB+lEyFUC2wo5ikdZ8DSypxhMY7H9VuIVwlqkGRgnm59VsHGafIQ3 CZlAtmKIRaHETgYa12lqvEsPYKf8wXHsPGfqPaUM0g9aJPKFXkmNQmSDqwzz4Fpgpz+6WAPY2z5o uPJJpu0uypcl4nyCibMLQ8lCiVjayLoQvw5LsVKQuHPRR958HZbOcVsKeepcLxpByjycGvnKmY+c MBvrtyjfe0vmuLvdq/kAAAAASUVORK5CYII= User-Agent: Gnus/5.110007 Emacs/23.0.50 (20070922) Fedora 7 (gnu/linux) Cancel-Lock: sha1:RvfqhrAAF+u6gVv/x6GkPL18jxk= X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65258 Archived-At: 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/