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