Snoozing messages
authorDaniel Schoepe <daniel@schoepe.org>
Thu, 6 Nov 2014 18:48:17 +0000 (19:48 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:06:16 +0000 (10:06 -0800)
6d/ded27519623f4cc34beb0b9e25b907fb96b3cc [new file with mode: 0644]

diff --git a/6d/ded27519623f4cc34beb0b9e25b907fb96b3cc b/6d/ded27519623f4cc34beb0b9e25b907fb96b3cc
new file mode 100644 (file)
index 0000000..4e55250
--- /dev/null
@@ -0,0 +1,119 @@
+Return-Path: <daniel@schoepe.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 7683D431FC2\r
+       for <notmuch@notmuchmail.org>; Thu,  6 Nov 2014 10:48:35 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.8\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.8 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id GkKW9mKh42Ex for <notmuch@notmuchmail.org>;\r
+       Thu,  6 Nov 2014 10:48:28 -0800 (PST)\r
+Received: from mail-la0-f41.google.com (mail-la0-f41.google.com\r
+       [209.85.215.41]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id EFC5D431FBF\r
+       for <notmuch@notmuchmail.org>; Thu,  6 Nov 2014 10:48:27 -0800 (PST)\r
+Received: by mail-la0-f41.google.com with SMTP id s18so3143671lam.14\r
+       for <notmuch@notmuchmail.org>; Thu, 06 Nov 2014 10:48:25 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schoepe.org; s=google;\r
+       h=from:to:subject:user-agent:date:message-id:mime-version\r
+       :content-type; bh=24dLnMP1rACjntaZ8GrwQTsfimBEtDboU4hn/nJwE7E=;\r
+       b=CgDECtA25DiMRZEg+PvfTY+LNyYRujDUPeADS9nQ5YCtTJpwg/zFfRQ4JPWV4BvTOx\r
+       M5IYFJ0Up8rwxPR09daDKk5z8I6dv0P2V/S+TfMRm0moXg1YzeeXxCBrbAULaGXXETyO\r
+       1QE0CpUVw3zsKIcA1YQOsYKaK3e0G4s2zbZ0o=\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:content-type;\r
+       bh=24dLnMP1rACjntaZ8GrwQTsfimBEtDboU4hn/nJwE7E=;\r
+       b=babfHiWr6CyjFvSADgot6v2J2MZeCvPazUXE/Dc3d8PyzMsrBlP4qNwJ4Wns87I6HR\r
+       irG4DHhnl6m+UuT2nxTlARwPL2QIitYdvFzyn9DctTaRfBkxgrFTV3UAstPtCRcU8TF4\r
+       kd39WIM/UzVdxdUN4lNjSpVqjUcHRMeR16ALwWkCIlrq6pFc7ue8gggHuyWa7JO/LoC4\r
+       ROyVnTQvcfWgzUUVlsDg0LbnWKHuU5bYUfD5tbjylJ+Zfr4nNL5sffMDQ+hkgUSm38KN\r
+       KXz2TY8uNdaKYtmK8pNnadlvLQDUms9Px9u1J9rYi3P+Yd8J39oPvk5s3C1uU/WLoTUh\r
+       p9Zw==\r
+X-Gm-Message-State:\r
+ ALoCoQkG2JLURhvHLEbSXc884rrjdzDl57SX0PgFA554kCclpTd2zrQqEHE6+ub12iSAssNHepZV\r
+X-Received: by 10.112.11.133 with SMTP id q5mr6638087lbb.77.1415299705028;\r
+       Thu, 06 Nov 2014 10:48:25 -0800 (PST)\r
+Received: from localhost (ds00.ekb.sgsnet.se. [46.239.108.171])\r
+       by mx.google.com with ESMTPSA id eg2sm2682297lbb.29.2014.11.06.10.48.23\r
+       for <notmuch@notmuchmail.org>\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Thu, 06 Nov 2014 10:48:23 -0800 (PST)\r
+From: Daniel Schoepe <daniel@schoepe.org>\r
+To: <notmuch@notmuchmail.org>\r
+Subject: Snoozing messages\r
+User-Agent: Notmuch/0.18.2+162~g34d2c62 (http://notmuchmail.org) Emacs/24.4.1\r
+       (x86_64-unknown-linux-gnu)\r
+Date: Thu, 06 Nov 2014 19:48:17 +0100\r
+Message-ID: <87d290b1xq.fsf@schoepe.localhost>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://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: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 06 Nov 2014 18:48:35 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+\r
+Hi,\r
+\r
+inspired by my alarm clock and the snooze feature found in some other\r
+mail clients, I cobbled something together that allows snoozing\r
+(i.e. removing a message from the inbox and adding it again later)\r
+messages in notmuch. It's a small script that removes the inbox tag from\r
+messages and schedules a job to add it again later using the at daemon\r
+[1].\r
+\r
+Time is specified in the format accepted by the perl library Date::Manip\r
+[2]. It supports both absolute dates as well as relative times such as\r
+"+5min".\r
+\r
+The code is available here: https://github.com/dschoepe/notmuch-snooze\r
+\r
+Best regards,\r
+Daniel\r
+\r
+[1] https://packages.qa.debian.org/a/at.html\r
+[2] http://search.cpan.org/~sbeck/Date-Manip/lib/Date/Manip.pod\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2\r
+\r
+iQIcBAEBAgAGBQJUW8J2AAoJEIaTAtce+Z+JC7kQAIpeQeBClsLB9AJIvJStrbVP\r
+M47MDsJ6aHNwqjtQS/LArwBgYbsMON9wyasz1aHya39LPtvzkCpBYvbhhmBqYPPx\r
+qQpoidwpaIgWMTSGu0GAyGOsdfjzBHli8QIFEgY4MFv2Dk7FAsiObPIN3uklnzLO\r
+ZNVZGvxJmPDD0alZ4HqKTRxySJJ/TjrINP2+cVGCBXEgwYJ8cjbXYh9ICgJm+kd6\r
+24Z8tdpKjptzdVscVzMU/IUmpX599UrXgIJWfnRc8edqIch54Q3HENVzWuPNbpt9\r
+cnzCrhigGhAcVeEsFT+70RsQx+T50/kd9Yrbzr8Wdm3FA08tjT3d3HgvyL2rf9TR\r
++AQb4GROaxGkPb9cVwngauOSxg8JpbFEreGbLRPxCRAuqVTbyS4mS2kzPmhtOtj9\r
+i802ItAdoB1mX+NcycOw6HjWRt7O80cC83CHVhZubhPNb779ERhddlRALPcmd9u+\r
+ucsRKy2XUjEHHT2CrpL+BbyfewsWq3NPxuX5CroQmAzEJ5nn1ixKxSf1AvlM/F3K\r
+7sRlAF3Jd6LqbZ3bqi4Smt7G/FzgcYrGGd0o7NESUyAZGGpgkBexvX+xkFB9cM0r\r
+IpdpxMWtIOsQ2A2h/KoGpQaLWr3XtXxid7XLwJC8zVK9m1bC8TfOqNwjDszsChSy\r
+adUTOEsxa/gG93s8WH3/\r
+=DURl\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r