Re: [notmuch] Potential problem using Git for mail (was: Idea for storing tags)
authormartin f krafft <madduck@madduck.net>
Thu, 14 Jan 2010 20:37:30 +0000 (09:37 +1300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:35:58 +0000 (09:35 -0800)
b7/4c4bd72e6d7fbf4a0d1219b96d033781deb66e [new file with mode: 0644]

diff --git a/b7/4c4bd72e6d7fbf4a0d1219b96d033781deb66e b/b7/4c4bd72e6d7fbf4a0d1219b96d033781deb66e
new file mode 100644 (file)
index 0000000..8bcbb07
--- /dev/null
@@ -0,0 +1,123 @@
+Return-Path: <madduck@lapse.rw.madduck.net>\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 99172431FBC\r
+       for <notmuch@notmuchmail.org>; Thu, 14 Jan 2010 12:37:47 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.506\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.506 tagged_above=-999 required=5 tests=[AWL=1.093,\r
+       BAYES_00=-2.599] autolearn=ham\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 WINmVbJF9TVM for <notmuch@notmuchmail.org>;\r
+       Thu, 14 Jan 2010 12:37:45 -0800 (PST)\r
+Received: from clegg.madduck.net (clegg.madduck.net [193.242.105.96])\r
+       by olra.theworths.org (Postfix) with ESMTP id 6C0E4431FAE\r
+       for <notmuch@notmuchmail.org>; Thu, 14 Jan 2010 12:37:45 -0800 (PST)\r
+Received: from lapse.rw.madduck.net (unknown\r
+       [IPv6:2404:130:0:1000:20a:e4ff:fe30:4316])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (Client CN "lapse.rw.madduck.net",\r
+       Issuer "CAcert Class 3 Root" (verified OK))\r
+       by clegg.madduck.net (postfix) with ESMTPS id 4FD941D4099;\r
+       Thu, 14 Jan 2010 21:37:35 +0100 (CET)\r
+Received: by lapse.rw.madduck.net (Postfix, from userid 1000)\r
+       id 0008E256B; Fri, 15 Jan 2010 09:37:30 +1300 (NZDT)\r
+Date: Fri, 15 Jan 2010 09:37:30 +1300\r
+From: martin f krafft <madduck@madduck.net>\r
+To: Asheesh Laroia <asheesh@asheesh.org>\r
+Message-ID: <20100114203730.GE4691@lapse.rw.madduck.net>\r
+Mail-Followup-To: Asheesh Laroia <asheesh@asheesh.org>,\r
+       notmuch <notmuch@notmuchmail.org>\r
+References: <20100111221909.GA30299@lapse.rw.madduck.net>\r
+       <1263267603-sup-302@elise>\r
+       <20100112045152.GA15275@lapse.rw.madduck.net>\r
+       <alpine.DEB.2.00.1001140254240.27198@vellum>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; micalg=pgp-ripemd160;\r
+       protocol="application/pgp-signature"; boundary="EgVrEAR5UttbsTXg"\r
+Content-Disposition: inline\r
+In-Reply-To: <alpine.DEB.2.00.1001140254240.27198@vellum>\r
+X-Motto: Keep the good times rollin'\r
+X-OS: Debian GNU/Linux squeeze/sid kernel 2.6.32-trunk-686 i686\r
+X-Spamtrap: madduck.bogus@madduck.net\r
+X-Subliminal-Message: debian/rules!\r
+User-Agent: Mutt/1.5.20 (2009-06-14)\r
+X-Virus-Scanned: clamav-milter 0.95.3 at clegg\r
+X-Virus-Status: Clean\r
+Cc: notmuch <notmuch@notmuchmail.org>\r
+Subject: Re: [notmuch] Potential problem using Git for mail (was: Idea for\r
+ storing tags)\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, 14 Jan 2010 20:37:47 -0000\r
+\r
+\r
+--EgVrEAR5UttbsTXg\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Disposition: inline\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+also sprach Asheesh Laroia <asheesh@asheesh.org> [2010.01.14.2112 +1300]:\r
+> Sure. But the MDA doesn't need to do the commit immediately. Since\r
+> (presumably) we're using Maildir, the MDA on the mail receiving\r
+> server is going to generate filenames that won't cause conflicts.\r
+> So it's okay to leave the files uncommitted.\r
+\r
+So when does the commit happen?\r
+\r
+> When I did the "git merge", git would create the Maildir files in\r
+> ~/Maildir/cur/... non-atomically.\r
+\r
+This might be something that the Git people could address if it was\r
+brought up on the mailing list. Then again, it might not be possible\r
+without going via a temporary file, which I doubt will fly.\r
+\r
+I suppose that I never actually considered merges on the IMAP server\r
+side, but obviously the IMAP server has to work off a clone, and\r
+that means it needs to merge.\r
+\r
+> Dovecot would notice the file in ~/Maildir/cur/ and think, "This\r
+> file must be ready!" So it would parse it even though git hadn't\r
+> finished writing it. This caused me to only see partial headers in\r
+> Alpine since Dovecot parsed it before it was a complete message.\r
+\r
+I wonder if a custom merge driver could address this to properly use\r
+=E2=80=A6/tmp/ to assemble the message and only then move it.\r
+\r
+--=20\r
+martin | http://madduck.net/ | http://two.sentenc.es/\r
+=20\r
+"this week dragged past me so slowly;\r
+ the days fell on their knees..."\r
+                                                        -- david bowie\r
+=20\r
+spamtraps: madduck.bogus@madduck.net\r
+\r
+--EgVrEAR5UttbsTXg\r
+Content-Type: application/pgp-signature; name="digital_signature_gpg.asc"\r
+Content-Description: Digital signature (see http://martin-krafft.net/gpg/)\r
+Content-Disposition: inline\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.10 (GNU/Linux)\r
+\r
+iEYEAREDAAYFAktPgIoACgkQIgvIgzMMSnVOxACglW8o2QY3jVflophey9wA/96q\r
+CuMAnRcUK+UCu9N2p9YsEf/9+gGGp8gB\r
+=NFKE\r
+-----END PGP SIGNATURE-----\r
+\r
+--EgVrEAR5UttbsTXg--\r