From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id B312F6DE11E0 for ; Sat, 30 Mar 2019 14:48:39 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -2.691 X-Spam-Level: X-Spam-Status: No, score=-2.691 tagged_above=-999 required=5 tests=[AWL=-0.189, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LX62IXsJ4Fxu for ; Sat, 30 Mar 2019 14:48:38 -0700 (PDT) Received: from smtp-4.sys.kth.se (smtp-4.sys.kth.se [130.237.48.193]) by arlo.cworth.org (Postfix) with ESMTPS id E0ABC6DE0F2E for ; Sat, 30 Mar 2019 14:48:37 -0700 (PDT) Received: from smtp-4.sys.kth.se (localhost.localdomain [127.0.0.1]) by smtp-4.sys.kth.se (Postfix) with ESMTP id B15E4A56 for ; Sat, 30 Mar 2019 22:48:33 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-4.sys.kth.se ([127.0.0.1]) by smtp-4.sys.kth.se (smtp-4.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 8auHNOr6uHTJ; Sat, 30 Mar 2019 22:48:33 +0100 (CET) X-KTH-Auth: ekeberg [85.229.204.229] DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kth.se; s=default; t=1553982513; bh=UGvm/Goi8KnBZWp7K6nZvFHAEQty8eLIfwj0D4o8vnc=; h=From:To:Cc:Subject:Date; b=eb8VnCQFRusuVeTPO+ulO+fzM3ZvIUhbQT2aCRZnttQK+brdBn6fEexm4X6jTOYXj cKsGMmAPrcM8xYEa9oq1vmRVcjIgT8BANe2Zs+WXsoO5PLhyoP0V2XIgUCGagrDzYj 3dxltjHzORBatI95NQHF0rnA518HlVhwrOU/FMY4= X-KTH-mail-from: ekeberg@kth.se Received: from swing.localdomain (c-e5cce555.09-723-73746f39.bbcust.telenor.se [85.229.204.229]) by smtp-4.sys.kth.se (Postfix) with ESMTPSA id EE2F71DF; Sat, 30 Mar 2019 22:48:31 +0100 (CET) From: =?UTF-8?q?=C3=96rjan=20Ekeberg?= To: notmuch@notmuchmail.org Subject: [PATCH 0/2] Updating tags when replying or forwarding via a buffer-local variable Date: Sat, 30 Mar 2019 22:48:19 +0100 Message-Id: <20190330214821.4150-1-ekeberg@kth.se> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Sat, 30 Mar 2019 21:48:39 -0000 These patches implement a message-send-hook which uses a buffer-local variable to tag replied and forwarded messages. The first patch replaces the current heuristic hook for detecting reply messages with an explicit setting when the reply is composed. The second patch adds the corresponding mechanism for forwarded messages. This patch is on top of a previously submitted patch (for adding a References header), and will not apply cleanly without that. Örjan Ekeberg (2): emacs: Use a buffer-local variable to update tags when sending replies emacs: Tag forwarded messages with +forwarded (customizable) emacs/notmuch-message.el | 34 ++++++++++++++++++++++++++++++++-- emacs/notmuch-mua.el | 26 +++++++++++++++++++------- 2 files changed, 51 insertions(+), 9 deletions(-) -- 2.20.1