"snoozing" with notmuch?
authorMatt Armstrong <marmstrong@google.com>
Thu, 4 Aug 2016 19:27:17 +0000 (12:27 +1700)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:22:19 +0000 (16:22 -0700)
51/ba9bd7379a74c43cab257748db53967548f680 [new file with mode: 0644]

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