--- /dev/null
+Return-Path: <sanjoy@mit.edu>\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 0D1B0431FAE\r
+ for <notmuch@notmuchmail.org>; Sun, 20 Jul 2014 09:38:05 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 yjTqJfg+w9yH for <notmuch@notmuchmail.org>;\r
+ Sun, 20 Jul 2014 09:37:57 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-7.mit.edu (dmz-mailsec-scanner-7.mit.edu\r
+ [18.7.68.36])\r
+ (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 5B6B6431FBD\r
+ for <notmuch@notmuchmail.org>; Sun, 20 Jul 2014 09:37:57 -0700 (PDT)\r
+X-AuditID: 12074424-f79146d00000067c-94-53cbf063251e\r
+Received: from mailhub-auth-3.mit.edu ( [18.9.21.43])\r
+ (using TLS with cipher AES256-SHA (256/256 bits))\r
+ (Client did not present a certificate)\r
+ by dmz-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP\r
+ id 90.ED.01660.360FBC35; Sun, 20 Jul 2014 12:37:55 -0400 (EDT)\r
+Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11])\r
+ by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id s6KGbrk0024691; \r
+ Sun, 20 Jul 2014 12:37:54 -0400\r
+Received: from approx.mit.edu (pool-71-126-228-254.bstnma.east.verizon.net\r
+ [71.126.228.254]) (authenticated bits=0)\r
+ (User authenticated as sanjoy@ATHENA.MIT.EDU)\r
+ by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s6KGbp0L029827\r
+ (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT);\r
+ Sun, 20 Jul 2014 12:37:52 -0400\r
+Received: from sanjoy by approx.mit.edu with local (Exim 4.82_1-5b7a7c0-XX)\r
+ (envelope-from <sanjoy@mit.edu>)\r
+ id 1X8u6y-0001Ka-DJ; Sun, 20 Jul 2014 12:37:20 -0400\r
+From: Sanjoy Mahajan <sanjoy@MIT.EDU>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: emacs UI hang: viewing a thread where msg has .tgz attachment\r
+ with symlink to ..\r
+In-Reply-To: <87y4vo5cpx.fsf@maritornes.cs.unb.ca>\r
+References: <87fvhzy18v.fsf@approx.mit.edu>\r
+ <8738dy7ufq.fsf@maritornes.cs.unb.ca>\r
+ <87a984uv6i.fsf@approx.mit.edu>\r
+ <87y4vo5cpx.fsf@maritornes.cs.unb.ca>\r
+User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.3.1\r
+ (i486-pc-linux-gnu)\r
+Date: Sun, 20 Jul 2014 12:37:20 -0400\r
+Message-ID: <87lhrohtq7.fsf@approx.mit.edu>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFnrIIsWRmVeSWpSXmKPExsUixCmqrZv84XSwwa+lbBY3WrsZLa7fnMns\r
+ wOTxbNUtZo8th94zBzBFcdmkpOZklqUW6dslcGX8nrSGveAVa8WSN8sZGxjPs3QxcnJICJhI\r
+ 3P0/hRXCFpO4cG89WxcjF4eQwGwmiaPt59khnI2MEqe/djBDOBeYJM41fIbKLGWUeHTmAVAP\r
+ BwebgKrE3/+BIKNEBOwkei6AdHNwCAvESnz8LQUS5hQwkrj79TojROt0RokzX8+BnSEqECLx\r
+ c2YPE4jNAjRm6op+sDivgLZE07QPULagxMmZT8BsZgEJiYMvXjBPYBSYhSQ1C0lqASPTKkbZ\r
+ lNwq3dzEzJzi1GTd4uTEvLzUIl1zvdzMEr3UlNJNjKCQZHdR2cHYfEjpEKMAB6MSD++L06eC\r
+ hVgTy4orcw8xSnIwKYnyMh48HSzEl5SfUpmRWJwRX1Sak1p8iFGCg1lJhFf+MlCONyWxsiq1\r
+ KB8mJc3BoiTO+9baKlhIID2xJDU7NbUgtQgmK8PBoSTB+/8dUKNgUWp6akVaZk4JQpqJgxNk\r
+ OA/Q8H8gNbzFBYm5xZnpEPlTjIpS4rzv3wIlBEASGaV5cL2wlPGKURzoFWFekfdAVTzAdAPX\r
+ /QpoMBPQ4KJMsMEliQgpqQbGgNO+At/37nEsffZh17peea0Ntc+2LDhlKnzx2vbdifcX/fjO\r
+ yHMj70Aki/qCP+s/Z943OJLBkpRv3/q16J6hWYSt3JqFC9evktLnvvxAqP1O8sLO9XLakvtr\r
+ LzXHbRDIOfGmYa3z+dsz3zHyZSyYVuf04PT7hc/rk7QvyU9eN+/AOtX6YmXz2UosxRmJhlrM\r
+ RcWJANjsgTz0AgAA\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: Sun, 20 Jul 2014 16:38:05 -0000\r
+\r
+Thanks for finding the root cause (hopefully!).\r
+\r
+-Sanjoy\r
+\r
+David Bremner <david@tethera.net> writes:\r
+\r
+> Sanjoy Mahajan <sanjoy@MIT.EDU> writes:\r
+>\r
+>> David Bremner <david@tethera.net> writes:\r
+>>\r
+>>> It would be a big help if you could share a message that causes the\r
+>>> problem.\r
+>>\r
+>> I've just managed to make an example that triggers the problem but that\r
+>> isn't 14MB (the size of the original msg). I'm attaching the message\r
+>> below. It contains, as an attachment, a 20KB .tgz file.\r
+>\r
+> Thanks very much for the test case. I've reported an upstream bug in\r
+> emacs; we'll have to see what the emacs devs think about it.\r
+>\r
+> Here is a link to the bug report:\r
+>\r
+> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18063\r