From f0d2e0fd28aa5ec9a1e15f9f0a4725e5647787bc Mon Sep 17 00:00:00 2001 From: Matt Armstrong Date: Fri, 5 Aug 2016 12:27:17 +1700 Subject: [PATCH] "snoozing" with notmuch? --- 51/ba9bd7379a74c43cab257748db53967548f680 | 116 ++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 51/ba9bd7379a74c43cab257748db53967548f680 diff --git a/51/ba9bd7379a74c43cab257748db53967548f680 b/51/ba9bd7379a74c43cab257748db53967548f680 new file mode 100644 index 000000000..c5ffe4300 --- /dev/null +++ b/51/ba9bd7379a74c43cab257748db53967548f680 @@ -0,0 +1,116 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 289F46DE02AF + for ; Thu, 4 Aug 2016 12:27:30 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.909 +X-Spam-Level: +X-Spam-Status: No, score=-0.909 tagged_above=-999 required=5 tests=[AWL=0.113, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.211, SPF_PASS=-0.001, + T_RP_MATCHES_RCVD=-0.01] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id lkrSXbDpKLzj for ; + Thu, 4 Aug 2016 12:27:22 -0700 (PDT) +Received: from mail-pf0-f173.google.com (mail-pf0-f173.google.com + [209.85.192.173]) + by arlo.cworth.org (Postfix) with ESMTPS id 59B8F6DE02B5 + for ; Thu, 4 Aug 2016 12:27:22 -0700 (PDT) +Received: by mail-pf0-f173.google.com with SMTP id h186so89159095pfg.3 + for ; Thu, 04 Aug 2016 12:27:22 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; + s=20120113; h=from:to:subject:user-agent:date:message-id:mime-version; + bh=5jeqJDZz+38/om4cU26ha21F/ZvcVu1YQ3Cd1Kf3R/I=; + b=o1Ofa5YrUCbhezcTezbi7/5ym+y7mRlKNhHDn67EZ/LxPWRRG2DLLuXeztEfxXoY3c + mOYiPCiRLwizJWpsSE0+5aTBzTk0inNh/Wq1xWkv2dr9pzqdDcYuSl7LgZwHjG+UrziE + aK+RROf0AR06yK3PD2EdLZo6gJMXfBUPzoW4GP5A1UE86fHLfuyyhg1HtRsX3os9eFb4 + KL9gxIvLFyhYanzaV9KW1VbkEP4O94/gVEKzZa+DSqL3KCri3SC7Kp15j1eeX3UvrWS5 + VBUaGlzVf+aGSkry/5JWMVLdMMph+AZuuB6GX8/V0lpjeFlE7DpvoqgVq15jaYC3E+S3 bToQ== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:subject:user-agent:date:message-id + :mime-version; + bh=5jeqJDZz+38/om4cU26ha21F/ZvcVu1YQ3Cd1Kf3R/I=; + b=dWpEQ8ojwEPc+RE7y4qhYIHyZSGLCQwbAo55xLimQC8UPOwr+fRvRNlMkBzuQ6HuNy + tRLBxT/wwmTawYf5070YThEOO2PwUQHfq7u/7x+H3NtHCMSI4AV3W8dF51HR3tfCUan1 + lDck4OnA9t2ec1s4aFARvepB7+c6/INLJP1/gM0ru3QJW1iJWrUr9GGczrkcR8PwuMc8 + gk3aotMaG0LM9tVSdAXNUSb964iA/3Y25wffNd/uJOOUIWppF0GevBv1f5hTa/pJUOUm + aCwLOAa7NLeeFV8majWYEypDzA9siE8iAgC6RfV0/FWOjTBU0TqrUJXTEZFLLn5Ul4tG + 2vpA== +X-Gm-Message-State: + AEkoouvvw8OtefoFpbVDnPWjG/kjNOAc1GOVoWG6dpQH83gKS7FwZcujgQgdnghHafLeu1bK +X-Received: by 10.98.204.216 with SMTP id j85mr128960283pfk.147.1470338841364; + Thu, 04 Aug 2016 12:27:21 -0700 (PDT) +Received: from marmstrong-linux.kir.corp.google.com + ([2620:0:1008:11:9d01:ef49:41c8:1902]) + by smtp.gmail.com with ESMTPSA id g5sm22246752pfg.0.2016.08.04.12.27.18 + for + (version=TLS1_2 cipher=AES128-SHA bits=128/128); + Thu, 04 Aug 2016 12:27:18 -0700 (PDT) +From: Matt Armstrong +To: notmuch@notmuchmail.org +Subject: "snoozing" with notmuch? +User-Agent: Notmuch/0.22.1+62~g2a7b11b (https://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Thu, 04 Aug 2016 12:27:17 -0700 +Message-ID: +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Thu, 04 Aug 2016 19:27:30 -0000 + +My mail yesterday about muting +(id:qf5vazjjciq.fsf@marmstrong-linux.kir.corp.google.com) was in part +motivated by this question: + +Has anybody implemented something like "snooze" in notmuch? + +I think of a "snooze" as a temporary mute. + +The intent would be to hide messages from the inbox until some future +time, upon which they are automatically promoted back into the inbox. + +A more precise spec: + + - if a new message arrives into a "snoozed" thread it too is snoozed + and is not tagged 'inbox'. + + - (perhaps optinoally) unless it is "to me", which always + auto-unsnoozes the threads it is part of. + + - when unsnoozed, or when a snooze expires, messages in the thread are + tagged with inbox. + +The difficulty I have is that notmuch doesn't support tags with +timestamps or numerical values. It might be possible to snooze based on +fixed intervals. E.g. one unique "snoozed until" tag per day of the +year. Using this would require some UI facade. + + +Prior art that I'm aware of: + +a) Google Inbox has snooze. You choose a time and the thread appears in + your inbox as "new mail", as if it arrived then. It appears to be + implemented as a tag on the thread that suppresses message display by + the client (e.g. if you view your "Google Inbox" mail in Gmail the + "snoozed" messages appear there as normal). + +b) in a past life I filtered low priority mail into hourly and daily + temporary mailboxes, and had cron entries set up to re-incorporate + those as incoming mail on an hourly/daily basis. This was a great + way to encourage myself to batch-process less important mail. -- 2.26.2