--- /dev/null
+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 CF694431FC9\r
+ for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 07:47:58 -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 oUoCg5UBExQh for <notmuch@notmuchmail.org>;\r
+ Fri, 24 Oct 2014 07:47:49 -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 9782D431FBD\r
+ for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 07:47:49 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id A0A8C10008C\r
+ for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 17:47:23 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: <notmuch@notmuchmail.org>\r
+Subject: mboxvievfs\r
+User-Agent: Notmuch/0.18.1+130~ga61922f (http://notmuchmail.org) Emacs/24.3.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: Fri, 24 Oct 2014 17:47:23 +0300\r
+Message-ID: <m2fvedbk3o.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: Fri, 24 Oct 2014 14:47:59 -0000\r
+\r
+Hi\r
+\r
+mboxviewfs is a FUSE filesystem program which shows mbox file\r
+as a separate files under YYYY-MM directories in a mountpoint.\r
+\r
+example usage transcript:\r
+\r
+$ cd ~\r
+$ mkdir notmuchmailbox\r
+$ cd notmuchmailbox\r
+\r
+$ wget https://raw.githubusercontent.com/domo141/nottoomuch/master/mboxview=\r
+fs.c\r
+...\r
+2014-10-24 17:23:33 (524 KB/s) - =E2=80=98mboxviewfs.c=E2=80=99 saved [3196=\r
+6/31966]\r
+\r
+$ sh mboxviewfs.c\r
++ exec gcc -std=3Dc99 -Wall -Wno-long-long -Wstrict-prototypes -pedantic -W=\r
+cast-align -Wpointer-arith -W -Wwrite-strings -Wcast-qual -Wshadow -O2 -o m=\r
+boxviewfs mboxviewfs.c -D_FILE_OFFSET_BITS=3D64 -isystem /usr/include/fuse =\r
+-pthread -lfuse\r
+\r
+$ wget -c http://notmuchmail.org/archives/notmuch.mbox\r
+$ mkdir notmuch\r
+$ ./mboxviewfs notmuch.mbox notmuch\r
+$ find notmuch -ls\r
+$ find notmuch | xargs stat -c '%x %n'\r
+\r
+$ wget -c http://notmuchmail.org/archives/notmuch.mbox\r
+$ fusermount -u notmuch\r
+$ ./mboxviewfs notmuch.mbox notmuch\r
+\r
+$ mkdir bin\r
+$ echo '#!/bin/sh' > bin/notmuch\r
+$ echo "HOME=3D$HOME/notmuchmailbox; export HOME" >> bin/notmuch\r
+$ echo "exec \"`which notmuch`\" \"\$@\"" >> bin/notmuch\r
+$ chmod 755 bin/notmuch\r
+\r
+$ mkdir mail\r
+$ mkdir mail/notmuch\r
+$ cd mail/notmuch\r
+$ : symbolic links to mail directories\r
+$ for d in ../../notmuch/*; do test -d "$d" || continue; ln -s "$d" .; done\r
+$ ls -l\r
+$ cd ../..\r
+\r
+$ ./bin/notmuch setup ;: careful here, to run ./bin/notmuch '!!!'\r
+$ ./bin/notmuch new\r
+\r
+Found 19424 total files (that's not much mail).\r
+Warning: /home/too/notmuchmailbox/mail/notmuch/2009-11/000002e4 is an mbox =\r
+containing a single message,\r
+likely caused by misconfigured mail delivery. Support for single-message\r
+mboxes is deprecated and may be removed in the future.\r
+Processed 19424 total files in 1m 21s (239 files/sec.).\r
+Added 19414 new messages to the database.\r
+\r
+$ ./bin/notmuch count=20\r
+19414\r
+\r
+$ find notmuch -type f | wc\r
+ 19424 19424 485600\r
+\r
+$ : have to look that difference later...\r
+\r
+$ PATH=3D$PWD/bin:$PATH emacs -f notmuch=20\r
+\r
+ 19 414 inbox 19 414 unread 40 unread-1d\r
+\r
+C-x C-c\r
+\r
+$ fusermount -u notmuch\r
+\r
+$ ./bin/notmuch count\r
+19414\r
+\r
+$ ./bin/notmuch new\r
+Error reading file /home/too/notmuchmailbox/mail/notmuch/2009-11: No such f=\r
+ile or directory\r
+No new mail.\r
+Note: A fatal error was encountered: Something went wrong trying to read or=\r
+ write a file\r
+zsh: exit 1 ./bin/notmuch new\r
+\r
+$ wget -c http://notmuchmail.org/archives/notmuch.mbox\r
+$ ./mboxviewfs notmuch.mbox notmuch\r
+$ ./bin/notmuch new\r
+Warning: /home/too/notmuchmailbox/mail/notmuch/2014-10/00004be0 is an mbox =\r
+containing a single message,\r
+likely caused by misconfigured mail delivery. Support for single-message\r
+mboxes is deprecated and may be removed in the future.\r
+Processed 1 file in almost no time.\r
+Added 1 new message to the database.\r
+\r
+$ ./bin/notmuch count\r
+19415\r
+\r
+---8<---\r
+\r
+Next: to set nmbug to this system...\r
+\r
+\r
+Tomi\r