--- /dev/null
+Return-Path: <ukleinek@Chamillionaire.breakpoint.cc>\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 90883431FD0\r
+ for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 12:42:48 -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 4tHlN7TuYvdD for <notmuch@notmuchmail.org>;\r
+ Sun, 10 Jul 2011 12:42:48 -0700 (PDT)\r
+Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc\r
+ [85.10.199.196])\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 19438431FB6\r
+ for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 12:42:48 -0700 (PDT)\r
+Received: id: ukleinek by Chamillionaire.breakpoint.cc authenticated by\r
+ ukleinek with local (easymta 1.00 BETA 1)\r
+ id 1Qfztu-0004h3-I7; Sun, 10 Jul 2011 21:42:46 +0200\r
+From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <ukleinek@strlen.de>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] vim: skip trailing slash for g:notmuch_compose_temp_file_dir\r
+Date: Sun, 10 Jul 2011 21:42:41 +0200\r
+Message-Id: <1310326961-6914-1-git-send-email-ukleinek@strlen.de>\r
+X-Mailer: git-send-email 1.7.5.4\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, 10 Jul 2011 19:42:48 -0000\r
+\r
+With the trailing slash I get\r
+\r
+ Error detected while processing function <SNR>10_NM_new_mail..<SNR>10_NM_cmd_compose..<SNR>10_NM_newComposeBuffer..<SNR>10_NM_newFileBuffer:\r
+ line 3:\r
+ E739: Cannot create directory: /home/ukleinek/.notmuch/compose/\r
+\r
+when hitting 'm' to compose a new mail. strace shows:\r
+\r
+ stat("/home/ukleinek/.notmuch/compose/", 0x7fffee314a10) = -1 ENOENT (No such file or directory)\r
+ stat("/home/ukleinek/.notmuch/compose/", 0x7fffee314e30) = -1 ENOENT (No such file or directory)\r
+ stat("/home/ukleinek/.notmuch/compose", 0x7fffee315270) = -1 ENOENT (No such file or directory)\r
+ stat("/home/ukleinek/.notmuch", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0\r
+ mkdir("/home/ukleinek/.notmuch/compose", 0755) = 0\r
+ mkdir("/home/ukleinek/.notmuch/compose/", 0755) = -1 EEXIST (File exists)\r
+\r
+so it seems vim's mkdir() isn't able to handle a trailing slash.\r
+---\r
+Hello,\r
+\r
+is that a bug in vim? (BTW, I'm using vim 2:7.2.445+hg~cb94c42c0e1a-1 from Debian\r
+squeeze)\r
+\r
+Best regards\r
+Uwe\r
+\r
+ vim/plugin/notmuch.vim | 2 +-\r
+ 1 files changed, 1 insertions(+), 1 deletions(-)\r
+\r
+diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim\r
+index 768a011..181e626 100644\r
+--- a/vim/plugin/notmuch.vim\r
++++ b/vim/plugin/notmuch.vim\r
+@@ -58,7 +58,7 @@ let s:notmuch_defaults = {\r
+ \\r
+ \ 'g:notmuch_compose_insert_mode_start': 1 ,\r
+ \ 'g:notmuch_compose_header_help': 1 ,\r
+- \ 'g:notmuch_compose_temp_file_dir': '~/.notmuch/compose/' ,\r
++ \ 'g:notmuch_compose_temp_file_dir': '~/.notmuch/compose' ,\r
+ \ }\r
+ \r
+ " defaults for g:notmuch_initial_search_words\r
+-- \r
+1.7.5.4\r
+\r