From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85249 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.gnus.general Subject: Re: Snoozing a message in gnus? Date: Mon, 10 Nov 2014 15:06:57 +0100 Message-ID: <87tx27cfpa.fsf@thinkpad-t440p.tsdh.org> References: <8761erw9fv.fsf@thinkpad-t440p.tsdh.org> <87bnojja3i.fsf@gmail.com> <87fvdrf9n2.fsf@lifelogs.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1415628442 2601 80.91.229.3 (10 Nov 2014 14:07:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Nov 2014 14:07:22 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33493@lists.math.uh.edu Mon Nov 10 15:07:15 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 1Xnpcg-00039N-Lg for ding-account@gmane.org; Mon, 10 Nov 2014 15:07:15 +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 1XnpcW-0000Zt-Fj; Mon, 10 Nov 2014 08:07:04 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1XnpcV-0000Zf-9M for ding@lists.math.uh.edu; Mon, 10 Nov 2014 08:07:03 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XnpcS-0005j0-6D for ding@lists.math.uh.edu; Mon, 10 Nov 2014 08:07:03 -0600 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XnpcQ-0006tl-Bw for ding@gnus.org; Mon, 10 Nov 2014 15:06:58 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 408AE1A82C5 for ; Mon, 10 Nov 2014 15:06:58 +0100 (CET) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0j3QJYnvhyoO for ; Mon, 10 Nov 2014 15:06:57 +0100 (CET) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad-t440p.tsdh.org (dhcp238.uni-koblenz.de [141.26.71.238]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id E1A371A8302 for ; Mon, 10 Nov 2014 15:06:57 +0100 (CET) Mail-Followup-To: ding@gnus.org In-Reply-To: <87fvdrf9n2.fsf@lifelogs.com> (Ted Zlatanov's message of "Mon, 10 Nov 2014 08:49:37 -0500") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-Spam-Score: -4.9 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85249 Archived-At: Ted Zlatanov writes: > TM> Is there an idiomatic way to implement this? I'm thinking of writing > TM> two functions: > TM> - first marks the article as dormant and adds a header like > TM> X-Snooze-Until > TM> - second goes in `gnus-select-group-hook' and maybe marks the article > TM> unread + ticked if the header date is past > > You can't add a header to most backends, especially IMAP, because they > don't support article editing. The gnus-registry is pretty much the only > way inside Gnus (or you can use Org, as suggested) to add new metadata > like that. The rest seems OK. The problem with `gnus-select-group-hook' is that due articles would become un-snoozed only when selecting the respective group. And why should one select a group if it hasn't unread articles? So the un-snoozing has to happen globally either periodically in a timer or at least in `gnus-after-getting-new-news-hook'. Bye, Tassilo