Re: [PATCH 3/3] Add notmuch compact command
authorTomi Ollila <tomi.ollila@iki.fi>
Thu, 18 Oct 2012 06:29:26 +0000 (09:29 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:49:51 +0000 (09:49 -0800)
31/13f28136773853215d2bd648ffb7131461ddbf [new file with mode: 0644]

diff --git a/31/13f28136773853215d2bd648ffb7131461ddbf b/31/13f28136773853215d2bd648ffb7131461ddbf
new file mode 100644 (file)
index 0000000..703f35c
--- /dev/null
@@ -0,0 +1,138 @@
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id CE718431FBF\r
+       for <notmuch@notmuchmail.org>; Wed, 17 Oct 2012 23:29:24 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id EWaka7YzSn2u for <notmuch@notmuchmail.org>;\r
+       Wed, 17 Oct 2012 23:29:24 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 15350431FB6\r
+       for <notmuch@notmuchmail.org>; Wed, 17 Oct 2012 23:29:24 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+       by guru.guru-group.fi (Postfix) with ESMTP id F1E341000E5;\r
+       Thu, 18 Oct 2012 09:29:26 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Jani Nikula <jani@nikula.org>, Ben Gamari <bgamari.foss@gmail.com>,\r
+       notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 3/3] Add notmuch compact command\r
+In-Reply-To: <87y5j42a03.fsf@nikula.org>\r
+References: <1350487737-32058-1-git-send-email-bgamari.foss@gmail.com>\r
+       <1350487737-32058-4-git-send-email-bgamari.foss@gmail.com>\r
+       <87y5j42a03.fsf@nikula.org>\r
+User-Agent: Notmuch/0.14+51~g62cd13b (http://notmuchmail.org) Emacs/24.2.1\r
+       (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+       $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+       !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Thu, 18 Oct 2012 09:29:26 +0300\r
+Message-ID: <m28vb41eex.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 18 Oct 2012 06:29:24 -0000\r
+\r
+On Wed, Oct 17 2012, Jani Nikula <jani@nikula.org> wrote:\r
+\r
+> Nag nag nag: Commit message. ;)\r
+>\r
+> The custom is to have a man page for each notmuch cli command.\r
+>\r
+> Small nitpicks below.\r
+>\r
+>\r
+> BR,\r
+> Jani.\r
+>\r
+>\r
+> On Wed, 17 Oct 2012, Ben Gamari <bgamari.foss@gmail.com> wrote:\r
+>> ---\r
+>>  Makefile.local    |    1 +\r
+>>  notmuch-client.h  |    3 +++\r
+>>  notmuch-compact.c |   43 +++++++++++++++++++++++++++++++++++++++++++\r
+>>  notmuch.c         |    3 +++\r
+>>  4 files changed, 50 insertions(+)\r
+>>  create mode 100644 notmuch-compact.c\r
+>>\r
+>> diff --git a/Makefile.local b/Makefile.local\r
+>> index 7f2d4f1..e050ba6 100644\r
+>> --- a/Makefile.local\r
+>> +++ b/Makefile.local\r
+>> @@ -258,6 +258,7 @@ notmuch_client_srcs =3D         \\r
+>>     gmime-filter-headers.c  \\r
+>>     hooks.c                 \\r
+>>     notmuch.c               \\r
+>> +   notmuch-compact.c       \\r
+>>     notmuch-config.c        \\r
+>>     notmuch-count.c         \\r
+>>     notmuch-dump.c          \\r
+>> diff --git a/notmuch-client.h b/notmuch-client.h\r
+>> index ae9344b..a6c624b 100644\r
+>> --- a/notmuch-client.h\r
+>> +++ b/notmuch-client.h\r
+>> @@ -157,6 +157,9 @@ int\r
+>>  notmuch_cat_command (void *ctx, int argc, char *argv[]);\r
+>>=20=20\r
+>>  int\r
+>> +notmuch_compact_command (void *ctx, int argc, char *argv[]);\r
+>> +\r
+>> +int\r
+>>  notmuch_config_command (void *ctx, int argc, char *argv[]);\r
+>>=20=20\r
+>>  const char *\r
+>> diff --git a/notmuch-compact.c b/notmuch-compact.c\r
+>> new file mode 100644\r
+>> index 0000000..6deb2ec\r
+>> --- /dev/null\r
+>> +++ b/notmuch-compact.c\r
+>> @@ -0,0 +1,43 @@\r
+>> +/* notmuch - Not much of an email program, (just index and search)\r
+>> + *\r
+>> + * Copyright =C2=A9 2009 Carl Worth\r
+>\r
+> It's your code, this year.\r
+\r
+... but you can give copyright to Carl if you wish...\r
+\r
+>> + *\r
+>> + * This program is free software: you can redistribute it and/or modify\r
+>> + * it under the terms of the GNU General Public License as published by\r
+>> + * the Free Software Foundation, either version 3 of the License, or\r
+>> + * (at your option) any later version.\r
+>> + *\r
+>> + * This program is distributed in the hope that it will be useful,\r
+>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+>> + * GNU General Public License for more details.\r
+>> + *\r
+>> + * You should have received a copy of the GNU General Public License\r
+>> + * along with this program.  If not, see http://www.gnu.org/licenses/ .\r
+>> + *\r
+>> + * Author: Carl Worth <cworth@cworth.org>\r
+>\r
+> It's your code.\r
+\r
+Yes, all the praise and blames ;)\r
+\r
+\r
+\r