--- /dev/null
+Return-Path: <alpine.art.de@gmail.com>\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 2AB9D431FAF\r
+ for <notmuch@notmuchmail.org>; Sat, 18 Oct 2014 13:27:41 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_FROM=0.001, 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 Lbh-850933oN for <notmuch@notmuchmail.org>;\r
+ Sat, 18 Oct 2014 13:27:35 -0700 (PDT)\r
+Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com\r
+ [209.85.212.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 71803431FAE\r
+ for <notmuch@notmuchmail.org>; Sat, 18 Oct 2014 13:27:35 -0700 (PDT)\r
+Received: by mail-wi0-f179.google.com with SMTP id d1so3575844wiv.0\r
+ for <notmuch@notmuchmail.org>; Sat, 18 Oct 2014 13:27:34 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=date:from:to:cc:message-id:in-reply-to:references:subject\r
+ :mime-version:content-type:content-transfer-encoding;\r
+ bh=bndIK3UWf8IXm/zQL/M18FHUeNHkBTlla6yqEsKbehY=;\r
+ b=cwWwdrZ21M8XodDl1PhJRIz2SFy6gF/WBaGJvZD3Ax0E0Gg7UW5yrh7ZBLlYVI/Lwl\r
+ XzIh8r3yOv+08vNDJsnWVUpsFUfSbcpFt3KZag/+co0KWn/eONy7dVuTAnCQ8dEJVvoW\r
+ +wNlwrYWT6EHrDwI10Kp9zPIbobBx0cCK2whY95/32HLmQNZngfQXGfqadwsJg3QGDgF\r
+ Yp0K5TNK8ahJSlCYakadDVHnA4UmcEkXhG5qYO0+OXh6yzbTAYmnI1ZSosKS1Q/INxBL\r
+ UJmdU1HJUXewr2K4eVV9M2Ct4mjW1qvZWceuC2CPLlJYrxIPzaMYzx5Uu4+h4UzSqvhi\r
+ y05g==\r
+X-Received: by 10.195.13.83 with SMTP id ew19mr20626659wjd.95.1413664053911;\r
+ Sat, 18 Oct 2014 13:27:33 -0700 (PDT)\r
+Received: from localhost (p5B00C687.dip0.t-ipconnect.de. [91.0.198.135])\r
+ by mx.google.com with ESMTPSA id xw9sm6153623wjc.24.2014.10.18.13.27.32\r
+ for <multiple recipients>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Sat, 18 Oct 2014 13:27:33 -0700 (PDT)\r
+Date: Sat, 18 Oct 2014 22:27:44 +0200\r
+From: Franz Fellner <alpine.art.de@gmail.com>\r
+To: Ian Main <imain@stemwinder.org>, \r
+ Ian Main <imain@stemwinder.org>\r
+Message-ID: <5442cd4084ca6_255f136de94d1@TP_L520.notmuch>\r
+In-Reply-To: <543d5e2927b41_5918e8fe90f4@ovo.mains.priv.notmuch>\r
+References: <1412617904-27252-1-git-send-email-imain@stemwinder.org>\r
+ <1412619036-29203-1-git-send-email-imain@stemwinder.org>\r
+ <20141014154535.GJ23373@TP_L520.localdomain>\r
+ <543d5e2927b41_5918e8fe90f4@ovo.mains.priv.notmuch>\r
+Subject: Re: [PATCH] VIM: Make an option to save sent mail locally\r
+Mime-Version: 1.0\r
+Content-Type: text/plain;\r
+ charset=utf-8\r
+Content-Transfer-Encoding: 7bit\r
+Cc: notmuch@notmuchmail.org\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: Sat, 18 Oct 2014 20:27:41 -0000\r
+\r
+Ian Main wrote:\r
+> Franz Fellner wrote:\r
+> > Why not simply use Notmuch::Database.add_message? Would save a\r
+> > system-call.\r
+> > One could easily copy the sent mail into nm_db_path/sent/cur, add it to the db, tag it.\r
+> > Though I don't know enough about maildir handling, but probably rubys\r
+> > Mail module could help here.\r
+> \r
+> So you are saying I'd have to copy the message to the database and then call\r
+> Notmuch::Database.add_message()? If so I think I'd rather stick with the\r
+> system call..\r
+Yes, that was my intention. I usually prefer using a stable API rather then realying on CLI.\r
+But that's just preference ;)\r
+\r
+All in all it works. So LGTM.\r
+\r
+> \r
+> > Another issue is configuration. Hardcoding "Sent" probably won't fit\r
+> > everyones needs. And (if I understand DOCS correctly) db.add_message\r
+> > doesn't even force you to keep sent mail folder inside db_path; correct\r
+> > me if I'm wrong :) notmuch --insert will put it into folder relative to\r
+> > db_path.\r
+> \r
+> Yeah, I can add it so the folder can be changed. I figured this was just the\r
+> start of things. Really we should be able to fcc it to our upstream provider\r
+> sent mailbox too.\r
+That MIGHT get hard.\r
+All accounts I use store the mails I send to their smtp-server locally, I could sync them again through IMAP.\r
+GMail for example does that. Pushing those mails upstream again is useless.\r
+But there might be setups where it is neccessary to manually store mails inside a sent folder that get's afterwards synced with the IMAP server.\r
+\r
+So if you want that to work in any case we might need to introduce settings for user accounts...\r
+\r
+Franz\r