Re: [notmuch] Fcc, Maildir, and Emacs message-mode -- a bit of code
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Thu, 22 Apr 2010 09:06:04 +0000 (11:06 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:46 +0000 (09:36 -0800)
ea/f2540523ced4f432432d5a3c3990e30fe49abc [new file with mode: 0644]

diff --git a/ea/f2540523ced4f432432d5a3c3990e30fe49abc b/ea/f2540523ced4f432432d5a3c3990e30fe49abc
new file mode 100644 (file)
index 0000000..6984b01
--- /dev/null
@@ -0,0 +1,81 @@
+Return-Path: <Sebastian@SSpaeth.de>\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 CD7BD4196F2\r
+       for <notmuch@notmuchmail.org>; Thu, 22 Apr 2010 02:06:15 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.001\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5\r
+       tests=[BAYES_20=-0.001] 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 JuH-KQ34sh+K for <notmuch@notmuchmail.org>;\r
+       Thu, 22 Apr 2010 02:06:14 -0700 (PDT)\r
+Received: from homiemail-a19.g.dreamhost.com (caiajhbdcbef.dreamhost.com\r
+       [208.97.132.145])\r
+       by olra.theworths.org (Postfix) with ESMTP id 7DE54431FC1\r
+       for <notmuch@notmuchmail.org>; Thu, 22 Apr 2010 02:06:14 -0700 (PDT)\r
+Received: from sspaeth.de (mtec-hg-docking-1-dhcp-204.ethz.ch\r
+       [129.132.133.204]) (Authenticated sender: sebastian@sspaeth.de)\r
+       by homiemail-a19.g.dreamhost.com (Postfix) with ESMTPA id A779B604061; \r
+       Thu, 22 Apr 2010 02:06:06 -0700 (PDT)\r
+Received: by sspaeth.de (sSMTP sendmail emulation);\r
+       Thu, 22 Apr 2010 11:06:04 +0200\r
+From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>\r
+To: Jesse Rosenthal <jrosenthal@jhu.edu>, notmuch@notmuchmail.org\r
+Subject: Re: [notmuch] Fcc, Maildir, and Emacs message-mode -- a bit of code\r
+In-Reply-To: <873a1zs3t5.fsf@jhu.edu>\r
+References: <873a1zs3t5.fsf@jhu.edu>\r
+Date: Thu, 22 Apr 2010 11:06:04 +0200\r
+Message-ID: <87ochbx3er.fsf@SSpaeth.de>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\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, 22 Apr 2010 09:06:16 -0000\r
+\r
+As Carl stated that he would probably merge this one if someone tested\r
+it, here it comes: I tested it and it works great. When I define a\r
+non-existing directory as maildir it aborts with an error message that\r
+is visible to the user.\r
+\r
+I put this in a branch based on cworth/master and with Jesse's\r
+permission, I renamed the functions and did some further cleanup (It's\r
+also integrated in the build system)\r
+\r
+The git branch is here:\r
+http://github.com/spaetz/notmuch-all-feature/tree/feature/elisp-fcc\r
+\r
+It's not enabled by default. Enable it with:\r
+\r
+(setq message-fcc-handler-function \r
+      '(lambda (destdir) \r
+         (notmuch-maildir-fcc-write-buffer-to-maildir destdir t)))\r
+\r
+(add-hook 'message-send-hook \r
+          '(lambda ()\r
+             (message-add-header "Fcc: ~/mail/INBOX.Sent")))\r
+\r
+in your .emacs for now.\r
+\r
+I'll send the patch series by mail in a second.\r
+\r
+I have the slight problem that offlineimap takes the message from\r
+INBOX.Sent/cur and stuffs it in INBOX.Sent/new (but that cannot really\r
+be related to this as the mail ends up correctly in /cur after sending\r
+it).\r
+\r
+Sebastian\r