From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85261 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: Snoozing a message in gnus? Date: Mon, 10 Nov 2014 20:23:10 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87fvdqedj5.fsf@lifelogs.com> References: <8761erw9fv.fsf@thinkpad-t440p.tsdh.org> <87bnojja3i.fsf@gmail.com> <87fvdrf9n2.fsf@lifelogs.com> <87tx27cfpa.fsf@thinkpad-t440p.tsdh.org> <87r3xaesb3.fsf@lifelogs.com> <874mu666bf.fsf@gmail.com> Reply-To: ding@gnus.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415669130 9606 80.91.229.3 (11 Nov 2014 01:25:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2014 01:25:30 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33505@lists.math.uh.edu Tue Nov 11 02:25:23 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xo0Cw-0004lb-JU for ding-account@gmane.org; Tue, 11 Nov 2014 02:25:22 +0100 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 1Xo0Ci-0003vu-Lz; Mon, 10 Nov 2014 19:25:08 -0600 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 1Xo0Ch-0003vh-Hz for ding@lists.math.uh.edu; Mon, 10 Nov 2014 19:25:07 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1Xo0Cg-0002Jn-Gr for ding@lists.math.uh.edu; Mon, 10 Nov 2014 19:25:07 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1Xo0Cf-0006EL-4O for ding@gnus.org; Tue, 11 Nov 2014 02:25:05 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xo0Cd-0004au-CU for ding@gnus.org; Tue, 11 Nov 2014 02:25:03 +0100 Original-Received: from c-98-229-61-72.hsd1.ma.comcast.net ([98.229.61.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Nov 2014 02:25:03 +0100 Original-Received: from tzz by c-98-229-61-72.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Nov 2014 02:25:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 42 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-61-72.hsd1.ma.comcast.net 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" Mail-Copies-To: never User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:T4bleQIfbGqc5k2ZqZnAZP0IUnk= X-Spam-Score: -3.5 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85261 Archived-At: On Mon, 10 Nov 2014 17:26:12 -0500 Trevor Murphy wrote: TM> On Mon, Nov 10 2014, Ted Zlatanov wrote: >> But as far as moving messages, if Gnus supported Gmail's labels, we >> could just apply a "Later" label to the message. It doesn't seem too >> hard: >> https://developers.google.com/gmail/imap_extensions#access_to_gmail_labels_x-gm-labels TM> What features of Gmail labels are you missing? You can have more than one per message :) >> The registry could update those groups with a glowing indicator >> light or something :) TM> Whoa, I hadn't seen the registry before. That looks like a fairly TM> heavyweight solution, but since it'll work with nnimap and nntp out of TM> the box, I figure it's worth starting there. TM> Looks like I want a command that marks the article dormant, prompts TM> for a delay like how `gnus-delay-article' does, then sets an TM> appropriate value under a registry "snooze" key. TM> Then I'll throw something in the demon or the get-new-news hook to TM> iterate over articles in the registry with a "snooze" key and mark TM> them ticked + unread if the date is past. TM> The manual says there's a built-in registry inverse map that'll let me TM> look up all messages matching a particular set of criteria. Is this TM> referring to `registry-search'? Or should I be trying to use TM> `gnus-registry-find-keywords'? registry.el is the generic DB, while gnus-registry.el uses it. So I would use gnus-registry functions if possible, implementing new ones as needed, to avoid unnecessary coupling to the underlying registry.el implementation (which can and probably will change when we have FFI in Emacs :) Your plan seems good to me. Maybe you want to synchronize with Eric Abrahamsen who was looking at fixing up some registry issues? Ted