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 A4ADC6DE0B2B for ; Sun, 8 Dec 2019 09:13:04 -0800 (PST) Authentication-Results: arlo.cworth.org; dkim=pass (1024-bit key; unprotected) header.d=caltech.onmicrosoft.com header.i=@caltech.onmicrosoft.com header.b="svTJyk9o"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.29 X-Spam-Level: X-Spam-Status: No, score=-0.29 tagged_above=-999 required=5 tests=[AWL=-0.290, DKIMWL_WL_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_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 5iQPnqu37bUP for ; Sun, 8 Dec 2019 09:13:03 -0800 (PST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2071.outbound.protection.outlook.com [40.107.236.71]) by arlo.cworth.org (Postfix) with ESMTPS id E8C566DE0ACD for ; Sun, 8 Dec 2019 09:13:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WYRNT/d44/nIg9nJ8irW6t7UHU1LnKjIXy+9fAYIs9PnJxt+5yKeIM4Gr3HTFwglNrbsAaiKbf7+Fe6d8CdLGTIV4MRqbu981ykk5aZVaWKSUiozqK4Wrg7WhYmoFvKZvYcl6uDs3eCWlrJBZ4EAnn6PR6fGDtfEQqvwRqX3adX6EtsDYCWdH1H2pow+hAA1NyK/rNRbp8GUCyHTxcd6d4OUFIx6oMmdEfLIXys+dcQmJwDqEeHBegPOgXs/vO2Iiw/Z/zp6Cjt0N12rTOfcm6iaeZ3kUsyqIntYmesXC1aj7xXUh3f5hpBZtTSfTzq23x5K/Iei8snHIhLx7+Iz4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8IYVbd3ueAnk1jXuTk9Y9+u5jzo+24+3Y8SgDc52rbk=; b=iIijzoMju8abaBZXBc6rjGi/R2rL1snEf8wfi8XLXfLV2bM7MSmaqhGO6fldTJvGogdjiMa4jMcoFJWyCr9wAQnK0XBJOdpT52w1+M5b1fJ7jx1QQoWN3HEFIxs1S3H2I9uIDd0OE8fFxKG+6+5nzMA2qXO+46Adpglf1nBAM+iLZ1qQtaCLdpyEhZ/1gkE4Uzsa7zWVqJiqO5+UtYTpyj32LeVSb2dsewZIA54bRQ4xy2jK0jpccXHOSmg4ks1Uwy+dtHvLp0TPhMCUjoyAliDwFjFFKJEht4rSLArgT8a6Pq4eS3bkCe9IlMJY7UvVmm3HkuK4hpAKV9DPi5Cz9A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=caltech.edu; dmarc=pass action=none header.from=caltech.edu; dkim=pass header.d=caltech.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=caltech.onmicrosoft.com; s=selector2-caltech-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8IYVbd3ueAnk1jXuTk9Y9+u5jzo+24+3Y8SgDc52rbk=; b=svTJyk9oGxwCQiTp5Lju2y9AK+JiBjQ5JTWSQGb26zqiSEUIZyJkhWbzdxKtRqFThZQKC3RwjiUfj1PqeJn5fXwT1D5rIyFMNZEQBHeQVGyPnJ1aQwcK6iuNOrH3Rb0dhrQc4DjyK6nw8uMvGAWVtBQFp3/hyjw7zB3oyZ7wwe0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=jrollins@caltech.edu; Received: from servo.finestructure.net (76.91.54.61) by BN7PR03MB3554.namprd03.prod.outlook.com (2603:10b6:406:c3::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.13; Sun, 8 Dec 2019 17:12:59 +0000 Received: by servo.finestructure.net (Postfix, from userid 1000) id E5F8B12B; Sun, 8 Dec 2019 09:12:55 -0800 (PST) From: Jameson Graef Rollins To: "Jorge P. de Morais Neto" , Daniel Kahn Gillmor , Tomi Ollila , notmuch@notmuchmail.org Subject: Re: moving the config into the database [was: Re: [PATCH] Display extra headers for emacs-mua - db config option] In-Reply-To: <87a782bw83.fsf@disroot.org> References: <20191116162723.18343-1-johan.parin@gmail.com> <875zjd8lev.fsf@tethera.net> <875zjdj9jz.fsf@fifthhorseman.net> <87o8x4iqar.fsf@fifthhorseman.net> <87a782bw83.fsf@disroot.org> User-Agent: Notmuch/0.29.2 (https://notmuchmail.org) Emacs/26.1 (x86_64-pc-linux-gnu) Date: Sun, 08 Dec 2019 09:12:55 -0800 Message-ID: <87blsiwxk8.fsf@caltech.edu> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [76.91.54.61] X-ClientProxiedBy: BYAPR02CA0016.namprd02.prod.outlook.com (2603:10b6:a02:ee::29) To BN7PR03MB3554.namprd03.prod.outlook.com (2603:10b6:406:c3::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5c354f4c-2f27-457b-feaa-08d77c01e04b X-MS-TrafficTypeDiagnostic: BN7PR03MB3554: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-Forefront-PRVS: 0245702D7B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(136003)(396003)(376002)(346002)(39850400004)(189003)(199004)(75432002)(2616005)(50466002)(26005)(786003)(316002)(70586007)(48376002)(66946007)(81156014)(81166006)(8936002)(6266002)(478600001)(8676002)(86362001)(51416003)(76176011)(305945005)(42186006)(2906002)(229853002)(58126008)(110136005)(88552002)(36756003)(186003)(4001150100001)(5660300002)(130980200001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN7PR03MB3554; H:servo.finestructure.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: caltech.edu does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kB89gXRc1QoAD3b1nkLGppZg5Qo4sxzEoZS4zeZ5WuV/6qkNqkHNQKrWcQASfE6yKLDC/fXXZqm90R8hsMKzpr1Ieu9kt0vy9I2TYi0cq4AfE6uncFgj5+j63JtkuGATrp6bOOEhZiRuRftvmiD3N7ts4ZDl0VjcnVnu8IB9RD2sVXbhnYI4xKKAb3XjNKchp/y2xnE9u46uw4v9qvxhpRn27Lm7OpagyBsZ7THuXMXtWY+MtpUaMFy2V2tTK+qxs5AFjfx8tqX+JAn1mMzadgjXsjf1K6LfmTN0yJMhx8m2qmUN7S2s8DCWU+Oou/j+Ic+Rzv9JipCLD1WBZ+KjoxgO4UbAlvc9I4QNlt3RUzttZUSn5LDnNPU1Xyow1F2RGsFa1rjDNcAIaFBFL0srAjKXBl5MtXXegIborQE5+tNWoCT5ecQZCErT+W2yZeGDv+v/IvCoaEL6EKV9HLD1HHG3R0jNvUtwEUUvgNy8wOcxKbiACUc4Yi6n1TEhKwCM X-OriginatorOrg: caltech.edu X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2019 17:12:59.5193 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5c354f4c-2f27-457b-feaa-08d77c01e04b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fd5be9d9-7b72-4df9-830e-b1f9cc5b44bd X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR03MB3554 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: Sun, 08 Dec 2019 17:13:04 -0000 On Sun, Dec 08 2019, Jorge P. de Morais Neto wrote: > Em [2019-11-22 sex 10:43:40+0800], Daniel Kahn Gillmor escreveu: > >> Better than documenting, i'd be happy if we would add a "notmuch config >> edit" subcommand, which handles the above sequence for you, invoking >> $EDITOR at the appropriate time. >> >> The only caveat i see there is if the end user wants to inject comments >> in the config file, which would then be stripped out in between these >> invocations. perhaps someone who finds these comments in config files >> super important could propose a way to stash them in the db and recover >> them during "notmuch config edit" as well :) > > I sync my two Notmuch configuration files -- personal notebook and > workplace desktop -- over Unison via a USB flash drive. This way, when > I want to reconfigure Notmuch in one machine, I have the other machine's > configuration as reference. However, I do not sync the entire Notmuch > databases because, since they are big and change frequently, I suppose > they would wear the USB flash drive and also increase the > synchronization time. > > Thus for my use case it would be useful if "notmuch config edit" could > automatically keep a perennial text file reflecting the configuration in > the database. That text file would then be synchronized by Unison. You can already use 'notmuch config list' to dump every configuration item to stdout. Would that be sufficient for personal synchronization purposes. jamie.