Re: [O] how to put into a journal info about the email sent
authorDavid Edmondson <dme@dme.org>
Fri, 24 Oct 2014 15:46:36 +0000 (16:46 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:05:37 +0000 (10:05 -0800)
a7/94b2f911df9b9d15d581eaa8e4076183dc56c9 [new file with mode: 0644]

diff --git a/a7/94b2f911df9b9d15d581eaa8e4076183dc56c9 b/a7/94b2f911df9b9d15d581eaa8e4076183dc56c9
new file mode 100644 (file)
index 0000000..43b82cf
--- /dev/null
@@ -0,0 +1,106 @@
+Return-Path: <dme@dme.org>\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 18413431FC9\r
+       for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 08:46:50 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.699\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7, UNPARSEABLE_RELAY=0.001]\r
+       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 JZRFZp87o4Jx for <notmuch@notmuchmail.org>;\r
+       Fri, 24 Oct 2014 08:46:42 -0700 (PDT)\r
+Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com\r
+       [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id DF6EB431FBD\r
+       for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 08:46:41 -0700 (PDT)\r
+Received: by mail-wi0-f181.google.com with SMTP id n3so1619776wiv.2\r
+       for <notmuch@notmuchmail.org>; Fri, 24 Oct 2014 08:46:40 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:to:cc:subject:in-reply-to:references:user-agent\r
+       :from:date:message-id:mime-version:content-type;\r
+       bh=iUFDbwiicY7wm/YkWz7fU5GEfJDvz1zkEvasMFD0ilY=;\r
+       b=Vy8zhOCWBiWGyTJ0Q4ayJ+wTjza3WC00LYZAaHtWfdaphB2Ig0/1/JWRb2x38WiJGo\r
+       Pr9p6jBQf/en4YZ05KkAQ7OdB0AQcYtjAk/2yns8J7R3LbV3/0cwqPnnSpyPPyvSjMGt\r
+       60ye8ZiURhbBIsz3fYf5hxDlWjE7P11fCycmDXWWKpvejibuaDvmSz1ydJzXexwP75sD\r
+       xANMm/1aI+GdnAmpTNFNA+6Ohp3cU3t8yK8fpsijB0ngbYJqDUtaN9tBtISUrMin5oEs\r
+       lLwTIk0PQ8uB9MKvCUsex9NaxRKVJUuJH8fPfGwAgvco0wehruL4PNastjXCRPnjEbWa\r
+       /QSg==\r
+X-Gm-Message-State:\r
+ ALoCoQk5HekSgYdb0kAeZGQjF1h5sMiKFGWIXCwngucYUCMvri4+5zMUxfu4al28A4zV3h4PWM/p\r
+X-Received: by 10.194.134.200 with SMTP id pm8mr3030545wjb.136.1414165599314; \r
+       Fri, 24 Oct 2014 08:46:39 -0700 (PDT)\r
+Received: from disaster-area.hh.sledj.net\r
+       ([2a01:348:1a2:1:ea39:35ff:fe2c:a227])\r
+       by mx.google.com with ESMTPSA id t16sm6016927wjr.44.2014.10.24.08.46.38\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Fri, 24 Oct 2014 08:46:38 -0700 (PDT)\r
+Received: from localhost (30000@localhost [local]);\r
+       by localhost (OpenSMTPD) with ESMTPA id 30f69b8a;\r
+       Fri, 24 Oct 2014 15:46:37 +0000 (UTC)\r
+To: Eric Abrahamsen <eric@ericabrahamsen.net>, emacs-orgmode@gnu.org\r
+Subject: Re: [O] how to put into a journal info about the email sent\r
+In-Reply-To: <87ppdhh3rh.fsf@ericabrahamsen.net>\r
+References: <uaxh9yty1pm.fsf@beesknees.cern.ch>\r
+       <87ppdhh3rh.fsf@ericabrahamsen.net>\r
+User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-apple-darwin14.0.0)\r
+From: David Edmondson <dme@dme.org>\r
+Date: Fri, 24 Oct 2014 16:46:36 +0100\r
+Message-ID: <m2k33p31yb.fsf@heart-of-gold.hh.sledj.net>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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: Fri, 24 Oct 2014 15:46:50 -0000\r
+\r
+On Fri, Oct 24 2014, Eric Abrahamsen wrote:\r
+> David Belohrad <david@belohrad.ch> writes:\r
+>\r
+>> Dear All,\r
+>>\r
+>> i'm using org. And I'm using notmuch (that's why I address both mailing\r
+>> lists). Now, writing an email in everyday bussiness requires a\r
+>> non-significant time of your workhours. So I'd like to have this event\r
+>> in my org agenda. So any time I send some email with a given subject,\r
+>> I'd like to 'automatically' entry the information about it into\r
+>> e.g. sentmails.org in form of a diary entry, with appropriate tag.\r
+>\r
+> I do something like this in Gnorb, which I'd recommend you use except\r
+> it's mostly Gnus specific.\r
+>\r
+> I do it in two parts, but you could do it in one. Basically I add a\r
+> function to the `message-header-hook' (which ensures that all the\r
+> message headers have been generated properly).\r
+\r
+Does `message-generate-headers-first' not do what you want for this\r
+specific part?\r
+\r
+> Obviously the downside is that, without a "Gcc:" header, org can't\r
+> actually make a real link to the message. It doesn't know where it's\r
+> going to be. However if you know that all your sent messages can be\r
+> reached with a link that looks like "notmuch:id#Message-id", then you\r
+> can make that yourself in your org capture template with something like\r
+\r
+As you suggest, know the message-id should be good enough to generate a\r
+notmuch link, though you may have to wait for the notmuch index to be\r
+updated for the link to be valid.\r