From ba260346f8ca168f6effedc79eba9498d4afdd04 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Mon, 9 Apr 2012 00:20:01 +0200 Subject: [PATCH] Re: notmuch-poll and OfflineIMAP --- 1e/b0dae9396eff869d2d37b63f307dc870ae1a2f | 97 +++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 1e/b0dae9396eff869d2d37b63f307dc870ae1a2f diff --git a/1e/b0dae9396eff869d2d37b63f307dc870ae1a2f b/1e/b0dae9396eff869d2d37b63f307dc870ae1a2f new file mode 100644 index 000000000..b8b4fc13e --- /dev/null +++ b/1e/b0dae9396eff869d2d37b63f307dc870ae1a2f @@ -0,0 +1,97 @@ +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 42C0D431FAE + for ; Sun, 8 Apr 2012 15:20:08 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.1 +X-Spam-Level: +X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + RCVD_IN_DNSWL_NONE=-0.0001] 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 ddSQ4gzSz-5I for ; + Sun, 8 Apr 2012 15:20:06 -0700 (PDT) +Received: from homiemail-a21.g.dreamhost.com (caiajhbdcaib.dreamhost.com + [208.97.132.81]) + by olra.theworths.org (Postfix) with ESMTP id 68647429E30 + for ; Sun, 8 Apr 2012 15:20:06 -0700 (PDT) +Received: from homiemail-a21.g.dreamhost.com (localhost [127.0.0.1]) + by homiemail-a21.g.dreamhost.com (Postfix) with ESMTP id 92606300064; + Sun, 8 Apr 2012 15:20:04 -0700 (PDT) +DomainKey-Signature: a=rsa-sha1; c=nofws; d=sspaeth.de; h=references + :in-reply-to:mime-version:content-type:subject:from:date:to + :message-id:content-transfer-encoding; q=dns; s=sspaeth.de; b=QB + KvYL+Dpf/nW6Jl5KJjtNm5No8vxJcajs/LVe5p6zYq6e1poiliG7K0voOV1h6YMs + sT5ADSBoG74yRYeskDcAVfyga7NvdZ69J5QgVir93Yra9GUJ60uNCLvjc/yMG8LG + FrOu++VBj0zVaWDPajNSo2aY2SfbfvglfPWlDgKz0= +DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sspaeth.de; h=references + :in-reply-to:mime-version:content-type:subject:from:date:to + :message-id:content-transfer-encoding; s=sspaeth.de; bh=7+dDApmR + sm9eufZfJbGufBVX20s=; b=TQaAD32lewQrCMtGyg2OylZMVxz1DBm8VuVLYmBN + HJNFNT1eLBR1woVe3PekRxos9xa6HS+iUgXoyDI7AORhGDRcN+xUtxFbI7Eo6ZJk + rEeQkNE5Y53V2VvW7yMu12XDn2+tBna3h92V+pS31hs/AXfIpyKyN/B7m8ESR5LR + nZo= +Received: from [192.168.178.21] (unknown [176.46.225.50]) + (using TLSv1 with cipher RC4-MD5 (128/128 bits)) + (No client certificate requested) + (Authenticated sender: sebastian@sspaeth.de) + by homiemail-a21.g.dreamhost.com (Postfix) with ESMTPSA id A13C3300061; + Sun, 8 Apr 2012 15:20:02 -0700 (PDT) +References: User-Agent: + Notmuch/0.12+81~g839a805 (http://notmuchmail.org) Emacs/23.3.1 + (i686-pc-linux-gnu) <87ty10ai86.fsf@nikula.org> +User-Agent: K-9 Mail for Android +In-Reply-To: <87ty10ai86.fsf@nikula.org> +MIME-Version: 1.0 +Content-Type: text/plain; + charset=UTF-8 +Subject: Re: notmuch-poll and OfflineIMAP +From: Sebastian Spaeth +Date: Mon, 09 Apr 2012 00:20:01 +0200 +To: Jani Nikula , + Jacek Generowicz , notmuch@notmuchmail.org +Message-ID: <39d4c9f6-50eb-46ae-9f01-67a9b950cb3e@email.android.com> +Content-Transfer-Encoding: quoted-printable +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: Sun, 08 Apr 2012 22:20:08 -0000 + +Jani Nikula wrote: + +>Jacek Generowicz writes: +> +>> Hello, +>> +>> Would you have any advice on how to construct a notmuch-poll script +>> that would work well in concert with OfflineIMAP? In particlular, +>how +>> can you avoid having to re-issue the IMAP account passwords? + +>> Any words of wisdom? +> +>Offlineimap supports running hooks after syncing. Check if SIGUSR1 does +>that too. Then you could run notmuch new in the post sync hook. +> +>Also, notmuch new supports pre-new and post-new hooks. You could start +>or SIGUSR1 offlineimap in the pre-new hook. See man notmuch-hooks for + +Offlineimap hooks work nicely for running notmuch scripts, i run it this = +way. Sending Sigusr1 will invoke that too, but I don't think that would b= +e needed. It's mostly for peole running OfflineMap as a daemon.... + +--=20 +Sent from my Android phone with K-9 Mail. Please excuse my brevity. -- 2.26.2