From c154c0a0a7a1edc45b73ce8b2fec7c9edaaf567b Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Tue, 25 Mar 2014 19:07:48 +0200 Subject: [PATCH] [PATCH 0/2] cli: notmuch dump abstractions --- 9d/3049427fbb75e1ac0ac72b9e99d8058bd5e677 | 79 +++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 9d/3049427fbb75e1ac0ac72b9e99d8058bd5e677 diff --git a/9d/3049427fbb75e1ac0ac72b9e99d8058bd5e677 b/9d/3049427fbb75e1ac0ac72b9e99d8058bd5e677 new file mode 100644 index 000000000..084ef08a8 --- /dev/null +++ b/9d/3049427fbb75e1ac0ac72b9e99d8058bd5e677 @@ -0,0 +1,79 @@ +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 13412431FBD + for ; Tue, 25 Mar 2014 10:07:58 -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 w4y5JOF364GT for ; + Tue, 25 Mar 2014 10:07:54 -0700 (PDT) +Received: from mail-ee0-f45.google.com (mail-ee0-f45.google.com + [74.125.83.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client + certificate requested) by olra.theworths.org (Postfix) with ESMTPS id + 87FF8431FBF for ; Tue, 25 Mar 2014 10:07:54 -0700 + (PDT) +Received: by mail-ee0-f45.google.com with SMTP id d17so701289eek.4 + for ; Tue, 25 Mar 2014 10:07:53 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:date:message-id; + bh=L2G562YhNtFHkO2xRhe7X/Onz64GyMJutMkC5RCHog4=; + b=YGls2LdNpU4EONO5vnK4rkaYpsXeAroJqsgrYD6QPy3WkqLIemImnzVVxkheXwOlDi + gJWkN/tmwXIxlOeR4hplP2600h4dh8kQwiAUwRydDgMvGCVPMV0BQvCSENXSj7NM7mht + f+v7UEa2nMIxPF79Elu9XpBsf6ON9IqV5xEEaHDXJ5Z/gDc+pqJYFVmf1lX+ztAkKdWt + ChWrdyTdfJfmd1nZXKiCoD6/SkCO7j0q/ahpaQDdtobdHShY615OTpyXKDMCjGWoNWvE + oRFxj81QA0vFT2xifCqyb6IN+A+A8RvzuJMyT0m3qxbifbAqX/3+64fzazTECzcbUvG0 + pgiw== +X-Gm-Message-State: + ALoCoQkojJmUO6l4vsCV0DFaTTstZrEK60W/4IR/PGWM6PNf3r6MiNY/2FzYrrXp+FZdqu9Nq2Kq +X-Received: by 10.15.94.71 with SMTP id ba47mr1263900eeb.98.1395767273258; + Tue, 25 Mar 2014 10:07:53 -0700 (PDT) +Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi. + [88.195.111.91]) by mx.google.com with ESMTPSA id + w12sm41365579eez.36.2014.03.25.10.07.51 for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Tue, 25 Mar 2014 10:07:52 -0700 (PDT) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH 0/2] cli: notmuch dump abstractions +Date: Tue, 25 Mar 2014 19:07:48 +0200 +Message-Id: +X-Mailer: git-send-email 1.9.0 +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: Tue, 25 Mar 2014 17:07:58 -0000 + +These are non-functional prep work for letting us do database dumps from +elsewhere in notmuch, e.g. automatically before a database upgrade. + +BR, +Jani. + + +Jani Nikula (2): + cli: abstract database dumping from the dump command + cli: abstract dump file open from the dump command + + notmuch-dump.c | 120 +++++++++++++++++++++++++++++++++++---------------------- + 1 file changed, 74 insertions(+), 46 deletions(-) + +-- +1.9.0 + -- 2.26.2