From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C2D41431FAF for ; Thu, 12 Apr 2012 13:53:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[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 Sv5uJyLMtkDf for ; Thu, 12 Apr 2012 13:53:22 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 04BFE431FAE for ; Thu, 12 Apr 2012 13:53:21 -0700 (PDT) Received: by lbbgk15 with SMTP id gk15so629029lbb.26 for ; Thu, 12 Apr 2012 13:53:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type:x-gm-message-state; bh=kBqQd6ECAKHOJ3yaIiHl5EW+SzQIV1beEg3ctrFdo6Q=; b=Sj1LyDs3+66eXdVGxKw5hswa8YDVU1U1jmiBv6PicpAF3xOVIgPhqS2h74WiNtein4 pgCdP08uwjgigUxOsO37BMf81nAM/bYohMxAtBVj+NqpDa2+ZQgPZAebg3J4rigbsly6 XQZJvYGq9kiXesPL664IndjyZ8s8W/VhvGyidOoedJTluyY4Z1hzgLqLEvjYpDPItb4M wHjdkZnzaEeOVHjRIlMucYTks4Lryatkx3Ylv5lSrfPrzSPUqLBVeS6fUQ/+teB2z564 6aq+fBECNCh6Pvut2ZkZCul5znpHG9MhtPVFd06j6ET5BIZ6WC2je0+3Cirr7iGcIYQr /+kw== Received: by 10.152.127.163 with SMTP id nh3mr3465408lab.15.1334263998970; Thu, 12 Apr 2012 13:53:18 -0700 (PDT) Received: from localhost (dsl-hkibrasgw4-fe50dc00-68.dhcp.inet.fi. [80.220.80.68]) by mx.google.com with ESMTPS id j6sm9106097lbm.1.2012.04.12.13.53.15 (version=SSLv3 cipher=OTHER); Thu, 12 Apr 2012 13:53:17 -0700 (PDT) From: Jani Nikula To: Adam Wolfe Gordon , David Belohrad Subject: Re: incrontab? In-Reply-To: References: <87bomx9x12.fsf@beesknees.cern.ch> User-Agent: Notmuch/0.12+81~g839a805 (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) Date: Thu, 12 Apr 2012 23:53:13 +0300 Message-ID: <8762d4hdty.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gm-Message-State: ALoCoQm3FyMhqpGU9q80ZyXpizBHWuzANuN+7Kko/YkqdUvrDPzP9tifu6vEssileRg7O8OQo0G5 Cc: notmuch@notmuchmail.org 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, 12 Apr 2012 20:53:22 -0000 Adam Wolfe Gordon writes: > On Thu, Apr 12, 2012 at 02:25, David Belohrad wrote: >> I have reverted back to crontab to issue 'notmuch new' every 5 >> minutes. And frankly speaking, I'm rather thinking to run this command >> from emacs directly everytime I either start notmuch, or refresh view >> using '=' on notmuch-hello buffer. > > You could probably do this with notmuch-hello-refresh-hook, but it > will be a bit tricky: the hook is executed after the notmuch-hello > buffer is refreshed, so you'd have to have it refresh after notmuch > new completes, without running the hook infinitely. There's notmuch-hello-poll-and-update, bound to 'G' in hello, which runs notmuch-poll-script (customizable; "notmuch new" by default). See the help for those for details. If you want '=' to always do "notmuch new", the easiest way is to rebind it to notmuch-hello-poll-and-update. (But perhaps 'G' is enough?) HTH, Jani.