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 BD93F431FB6 for ; Sun, 19 Dec 2010 19:54:45 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] 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 YBOvi6IMTYTd for ; Sun, 19 Dec 2010 19:54:45 -0800 (PST) Received: from brinza.cc.columbia.edu (brinza.cc.columbia.edu [128.59.29.8]) by olra.theworths.org (Postfix) with ESMTP id 55249431FB5 for ; Sun, 19 Dec 2010 19:54:45 -0800 (PST) Received: from servo.finestructure.net (cpe-74-66-82-137.nyc.res.rr.com [74.66.82.137]) (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0) by brinza.cc.columbia.edu (8.14.4/8.14.3) with ESMTP id oBK3sh9d003104 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Sun, 19 Dec 2010 22:54:44 -0500 (EST) Received: from jrollins by servo.finestructure.net with local (Exim 4.72) (envelope-from ) id 1PUWpe-00066A-Sx for notmuch@notmuchmail.org; Sun, 19 Dec 2010 22:54:42 -0500 From: Jameson Rollins To: Notmuch Mail Subject: new emacs function for date-restricted searches Date: Sun, 19 Dec 2010 22:54:38 -0500 Message-Id: <1292817280-20999-1-git-send-email-jrollins@finestructure.net> X-Mailer: git-send-email 1.7.2.3 X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.68 on 128.59.29.8 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: Mon, 20 Dec 2010 03:54:46 -0000 The following patch introduces a new function for restricting search results to messages within a certain look-back time. For instance, if the time specification '3w' is given then the search will be restricted to messages received within the last three weeks. The second patch binds this function to the 'S' key. I have a feeling that Carl won't be into this patch, but I'm throwing it out there anyway, just in case. On my slow machine, use of this function speeds up searches considerably, especially since most of the time I'm just searching for recent messages anyway.