From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AAp1COE42WJzcAAAbAwnHQ (envelope-from ) for ; Thu, 21 Jul 2022 13:30:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yPObB+E42WKCcwEAG6o9tA (envelope-from ) for ; Thu, 21 Jul 2022 13:30:41 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7D5F52CEDF for ; Thu, 21 Jul 2022 13:30:40 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id DC94F60809; Thu, 21 Jul 2022 11:30:37 +0000 (UTC) Received: from sender4-of-o51.zoho.com (sender4-of-o51.zoho.com [136.143.188.51]) by mail.notmuchmail.org (Postfix) with ESMTPS id ED4BF5F727 for ; Thu, 21 Jul 2022 11:30:34 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1658403027; cv=none; d=zohomail.com; s=zohoarc; b=OPIAvIk9KQx91qc8ZRWl/JMx6sABBrICjfbT24Ps97IP1fCRSVWkLnNxxEg7eYoRnxqQYE96gjxnt08OR+sj6HnzQsBAUhzJQfgrM32RxmOxQVrSAkw0PDCOQ5d0aESVl1d0Nnlq0txqAuv5L58S3JxEblpi/aaMv+VMYcj+Zzo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1658403027; h=Content-Type:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=nWO9T+s6KmhAd+3/jO2esLaLwqgw2ELaJbhlWfsDS/Q=; b=RM79l0zF5jQJ5TNNPjFz2dTuxy44AUUpZI2IsyJsftSdB5S7D67mT8DTN7zguyj6j0uNoyiYiwNY4rHPQUAw1llk5FSv8qCwjm/sGpcoS1ZwZpvxiwK/+SJbbW9U/g0oM/hDDgl/aGub/VXBWlF7jZ3bT5nl7B8/Xje/yE7HJGg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=hursts.org.uk; spf=pass smtp.mailfrom=jon@hursts.org.uk; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1658403027; s=zoho; d=hursts.org.uk; i=jon@hursts.org.uk; h=From:From:To:To:Subject:Subject:In-Reply-To:References:Date:Date:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To:Cc; bh=nWO9T+s6KmhAd+3/jO2esLaLwqgw2ELaJbhlWfsDS/Q=; b=AJmcZ1HZQR8DK5KMNh6/3E2qvHCPcglckYs4UtWg5pwY3C8WnbXajzFIWwQv55TX ycJmJpQ5zr7HYrgs8TM9W7wvdV2DLRoacGOSA15WAceUbDaLrCYyMSx3XKLLM/bnaWe GLCopG4o31EAHYScV6t3prdseT+qaAQlTv3fqmUI= Received: from localhost (79-68-25-7.dynamic.dsl.as9105.com [79.68.25.7]) by mx.zohomail.com with SMTPS id 1658403020973402.4150443144748; Thu, 21 Jul 2022 04:30:20 -0700 (PDT) From: Jon Hurst To: David Bremner , notmuch@notmuchmail.org Subject: Re: Feature request: show destination in tree view when appropriate In-Reply-To: <877d4dry2i.fsf@hursts.org.uk> References: <87a699e6wn.fsf@hursts.org.uk> <87ilnx5mxq.fsf@tethera.net> <877d4dry2i.fsf@hursts.org.uk> Date: Thu, 21 Jul 2022 12:30:18 +0100 Message-ID: <877d46n1o5.fsf@hursts.org.uk> MIME-Version: 1.0 X-ZohoMailClient: External Message-ID-Hash: RBUHXQOWXD4MV5FGX4X64YWI7D4GRGQA X-Message-ID-Hash: RBUHXQOWXD4MV5FGX4X64YWI7D4GRGQA X-MailFrom: jon@hursts.org.uk X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658403040; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=POnGivmrRg/TD566Rv9SPyuvS5TOn+URByXH6YCyvnE=; b=r/RBdnAR2UeikDFCEWs12zt5ccjjXa8zEH7oWTDFgy3nwgrSkBhFMEQQnYZicsNjpRyao5 kIL5RQIPP5B8n85zY7jpu76g9caBBvmwi8fhW8T9FeaoLJALelF07lXvAGFeAmuu2lsZ8L k3GA7WtcOEH/s3X7vap/g81AZTVIyu8+gHGecNbzy0jBPw3N9aVYVzegWXy9sECYovvnJM 4amApwJjmhQ0lfnKx/tYmWsNgfFFlu/uLeNqCkZrD3OFpy6dT3Ovr9/6zwtbgvrlgDD31S LI37PzeOqoIb9oL2l4Md6nUv/4MLbazWmxNmHZGKMHFqIDtaBbyJtvMgFrKNsg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1658403040; a=rsa-sha256; cv=fail; b=fypXXH8kgt0JIjPZNU4m7xPM9uFxzoDyl7z0ksQ7xoGE70Nu2dZq+LgdJ0Q6Tpy70GjbNU co0kQw+psLlJayNy8kLJijKm0+oCa46kiZ+A6OTVnC2lzwDaS0zJri1tqsmoLNkkihobRB iTKNJjy4bYryXAWm3vk3tKQthmshpTbKJ53TNrOov2SM/yL8NufmttdyrFec0hmr7uyXrw TjxyQHMO5AIYyl9Xm6MR767Fx1KeQQ1/nN4gTKWL2vKUCPO3pDxGfWLXbKMVCe0Disvst9 q2nqQn1zZJC5eZM7C2uNjkH4w/aQZVLzWq8oArkrf7Rlw74aTVKvtOYUP0dcYw== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=hursts.org.uk header.s=zoho header.b=AJmcZ1HZ; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 1.39 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=hursts.org.uk header.s=zoho header.b=AJmcZ1HZ; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 7D5F52CEDF X-Spam-Score: 1.39 X-Migadu-Scanner: scn0.migadu.com X-TUID: KROZrlw/jaeC I'll just add this to the record as well in case it is useful to someone searching for examples of how to use this functionality: (defun -notmuch-flag (format-string msg) (let ((tags (plist-get msg :tags))) (format format-string (cond ((member "deleted" tags) "D") ((member "unread" tags) "U") ((member "inbox" tags) "I") (t " "))))) (setq notmuch-tree-result-format '(("date" . "%12s ") (-notmuch-flag . "%s ") (-notmuch-authors-or-to . "%-25s") ((("tree" . "%s") ("subject" . "%s")) . " %s"))) It's a single letter status flag to indicate what stage of processing an email is at -- obviously targeted for the peculiarities of my personal workflow but should be easy to adapt.