From 49d712a223ba43ace5bd739b78acbff48156c49c Mon Sep 17 00:00:00 2001 From: David Belohrad Date: Fri, 24 Oct 2014 16:36:05 +0200 Subject: [PATCH] how to put into a journal info about the email sent --- 38/9fbc5cf5b6c7f0857f391e413ffba0ff40d477 | 95 +++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 38/9fbc5cf5b6c7f0857f391e413ffba0ff40d477 diff --git a/38/9fbc5cf5b6c7f0857f391e413ffba0ff40d477 b/38/9fbc5cf5b6c7f0857f391e413ffba0ff40d477 new file mode 100644 index 000000000..3efa5d935 --- /dev/null +++ b/38/9fbc5cf5b6c7f0857f391e413ffba0ff40d477 @@ -0,0 +1,95 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 0BE92431FBD + for ; Fri, 24 Oct 2014 07:36:20 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id SbJ9eB+AYP04 for ; + Fri, 24 Oct 2014 07:36:08 -0700 (PDT) +Received: from beesknees.cern.ch (beesknees.cern.ch [137.138.197.99]) + (using TLSv1 with cipher AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 54086431FC9 + for ; Fri, 24 Oct 2014 07:36:08 -0700 (PDT) +Received: from belohrad by beesknees.cern.ch with local (Exim 4.84) + (envelope-from ) + id 1XhfyH-0002re-7Z; Fri, 24 Oct 2014 16:36:05 +0200 +From: David Belohrad +To: "notmuch\@notmuchmail.org" , + "mailing-list-org-mode" +Subject: how to put into a journal info about the email sent +User-Agent: Notmuch/0.18~rc0+2~gbc64cdc (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Fri, 24 Oct 2014 16:36:05 +0200 +Message-ID: +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Fri, 24 Oct 2014 14:36:20 -0000 + +Dear All, + +i'm using org. And I'm using notmuch (that's why I address both mailing +lists). Now, writing an email in everyday bussiness requires a +non-significant time of your workhours. So I'd like to have this event +in my org agenda. So any time I send some email with a given subject, +I'd like to 'automatically' entry the information about it into +e.g. sentmails.org in form of a diary entry, with appropriate tag. + +In example: + +I'm sending a mail to Tom, with subject 'dealing vme register +mapping'. + +At the moment I send this email (using smtpmail), I'd like an entry in +the sentmails.org as follows: + +-------------------------------------------------------------------------------- +** 2014-10 October +*** 2014-10-02 Thursday +**** dealing vme register mapping :mail: +[[notmuch:id:7a97bb93e66a41878edd4c04fa764963@cernfe03.cern.ch][dealing +vme register mapping]] +-------------------------------------------------------------------------------- + +I thought that I can use following + +(add-hook 'message-send-hook ') + +to hook on sending and generate a capture entry. In fact this works +pretty well _EXCEPT_ the link to the mail sent. The org-store-link +cannot apparently store a link to an email, which so far was not sent +(and not received?) because it claims that + +'org-gnus-store-link: Can not create link: No Gcc header found' + +Hence this is pretty fatal for my diary entry. My question is: is there +any way how to link not-yet-sent/received email as an org-link? Or is +there any way to generate Gcc header before the email is sent and use +this header during sending? Or is +there any other way how to put into my agenda sent emails? + +many thanks + +david + + -- 2.26.2