1 Return-Path: <pieter@praet.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 57B0A431FD0
\r
6 for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:34:21 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id v666sFN3EZ3h for <notmuch@notmuchmail.org>;
\r
16 Fri, 13 May 2011 01:34:20 -0700 (PDT)
\r
17 Received: from mail-ww0-f41.google.com (mail-ww0-f41.google.com
\r
18 [74.125.82.41]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client
\r
19 certificate requested) by olra.theworths.org (Postfix) with ESMTPS id
\r
20 AA708431FB6 for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:34:20 -0700
\r
22 Received: by wwi18 with SMTP id 18so398535wwi.2
\r
23 for <notmuch@notmuchmail.org>; Fri, 13 May 2011 01:34:19 -0700 (PDT)
\r
24 Received: by 10.216.145.206 with SMTP id p56mr41444wej.80.1305275659145;
\r
25 Fri, 13 May 2011 01:34:19 -0700 (PDT)
\r
26 Received: from localhost (54.209-242-81.adsl-dyn.isp.belgacom.be
\r
28 by mx.google.com with ESMTPS id d54sm1011306wej.10.2011.05.13.01.34.17
\r
29 (version=TLSv1/SSLv3 cipher=OTHER);
\r
30 Fri, 13 May 2011 01:34:18 -0700 (PDT)
\r
31 From: Pieter Praet <pieter@praet.org>
\r
32 To: Notmuch Mail <notmuch@notmuchmail.org>
\r
33 Subject: [PATCH] emacs: run notmuch-message-mark-replied on message-sent-hook,
\r
34 not message-send-hook
\r
35 Date: Fri, 13 May 2011 10:34:12 +0200
\r
36 Message-Id: <1305275652-22956-1-git-send-email-pieter@praet.org>
\r
37 X-Mailer: git-send-email 1.7.4.1
\r
38 X-BeenThere: notmuch@notmuchmail.org
\r
39 X-Mailman-Version: 2.1.13
\r
41 List-Id: "Use and development of the notmuch mail system."
\r
42 <notmuch.notmuchmail.org>
\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
46 List-Post: <mailto:notmuch@notmuchmail.org>
\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
50 X-List-Received-Date: Fri, 13 May 2011 08:34:21 -0000
\r
52 Parent message is tagged "replied" prematurely.
\r
54 Only do so when reply is *really* sent.
\r
56 (describe-variable 'message-send-hook)
\r
57 > Hook run before sending messages.
\r
58 > This hook is run quite early when sending.
\r
60 (describe-variable 'message-sent-hook)
\r
61 > Hook run after sending messages.
\r
63 Signed-off-by: Pieter Praet <pieter@praet.org>
\r
65 emacs/notmuch-message.el | 2 +-
\r
66 1 files changed, 1 insertions(+), 1 deletions(-)
\r
68 diff --git a/emacs/notmuch-message.el b/emacs/notmuch-message.el
\r
69 index d5c96c2..c8b19c3 100644
\r
70 --- a/emacs/notmuch-message.el
\r
71 +++ b/emacs/notmuch-message.el
\r
72 @@ -47,6 +47,6 @@ the \"inbox\" and \"todo\", you would set
\r
73 (apply 'notmuch-call-notmuch-process "tag"
\r
74 (append tags (list (concat "id:" (car (car rep)))) nil))))))
\r
76 -(add-hook 'message-send-hook 'notmuch-message-mark-replied)
\r
77 +(add-hook 'message-sent-hook 'notmuch-message-mark-replied)
\r
79 (provide 'notmuch-message)
\r