Re: [notmuch] Fcc, Maildir, and Emacs message-mode -- a bit of code
authorJesse Rosenthal <jrosenthal@jhu.edu>
Fri, 29 Jan 2010 14:54:33 +0000 (09:54 +1900)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:36:04 +0000 (09:36 -0800)
44/723ac0eb95b26823bb9645f71646542b836c7b [new file with mode: 0644]

diff --git a/44/723ac0eb95b26823bb9645f71646542b836c7b b/44/723ac0eb95b26823bb9645f71646542b836c7b
new file mode 100644 (file)
index 0000000..91d746f
--- /dev/null
@@ -0,0 +1,75 @@
+Return-Path: <jrosenthal@jhu.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 AA85A4196F6\r
+       for <notmuch@notmuchmail.org>; Fri, 29 Jan 2010 06:55:32 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.428\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.428 tagged_above=-999 required=5\r
+       tests=[AWL=-0.429, BAYES_50=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 azdTky8wUx9j for <notmuch@notmuchmail.org>;\r
+       Fri, 29 Jan 2010 06:55:32 -0800 (PST)\r
+Received: from batman.acm.jhu.edu (batman.acm.jhu.edu [128.220.251.35])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1ACDE431FDA\r
+       for <notmuch@notmuchmail.org>; Fri, 29 Jan 2010 06:55:32 -0800 (PST)\r
+Received: from batman.acm.jhu.edu (localhost.localdomain [127.0.0.1])\r
+       by batman.acm.jhu.edu (Postfix) with ESMTP id 0C257CED64;\r
+       Fri, 29 Jan 2010 09:55:30 -0500 (EST)\r
+Received: by batman.acm.jhu.edu (Postfix, from userid 99)\r
+       id 00F89CEE89; Fri, 29 Jan 2010 09:55:30 -0500 (EST)\r
+Received: from lucky (c-69-255-36-229.hsd1.md.comcast.net [69.255.36.229])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (Client did not present a certificate)\r
+       by batman.acm.jhu.edu (Postfix) with ESMTPSA id 2F03FCED64;\r
+       Fri, 29 Jan 2010 09:55:26 -0500 (EST)\r
+Received: by lucky (Postfix, from userid 1000)\r
+       id 212333341A3; Fri, 29 Jan 2010 09:54:34 -0500 (EST)\r
+From: Jesse Rosenthal <jrosenthal@jhu.edu>\r
+To: Sebastian Spaeth <Sebastian@SSpaeth.de>, Jameson Rollins\r
+       <jrollins@finestructure.net>, notmuch@notmuchmail.org\r
+In-Reply-To: <87ockdoxl7.fsf@SSpaeth.de>\r
+References: <873a1zs3t5.fsf@jhu.edu>\r
+       <878wbj4nfq.fsf@servo.finestructure.net> <87ockdoxl7.fsf@SSpaeth.de>\r
+Date: Fri, 29 Jan 2010 09:54:33 -0500\r
+Message-ID: <87mxzxyn9y.fsf@jhu.edu>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Virus-Scanned: ClamAV using ClamSMTP\r
+Subject: Re: [notmuch] Fcc, Maildir, and Emacs message-mode -- a bit of code\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, 29 Jan 2010 14:55:32 -0000\r
+\r
+On Fri, 29 Jan 2010 14:21:56 +0100, Sebastian Spaeth <Sebastian@SSpaeth.de> wrote:\r
+> First, I think this FCC method is phantastic and it works like a\r
+> charm. I agree that we should include the snippets at least in some\r
+> "contrib" directory (or doc/examples) to make it easier to find.\r
+\r
+I'm glad it's proved useful. However, I should say that I'd be wary of\r
+distributing it, or even recommending it, without at least rudimentary\r
+error checking -- even if it's just the delivery function returning\r
+either 0 or -1, and the emacs wrapper reporting failure back to the user\r
+in a sensible fashion. As it is now, a failed delivery will either go\r
+silently by, or muck everything up in a not-so-useful way.\r
+\r
+Returning some sort of success/fail would just take a couple of\r
+try/except lines. I would have put that in myself, but I just whipped it\r
+up for personal use (and then never used it).\r
+\r
+Best,\r
+Jesse\r