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 UD4lAYkggWN5TAEAbAwnHQ (envelope-from ) for ; Fri, 25 Nov 2022 21:07:37 +0100 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 IC4vAIkggWPQEQEAG6o9tA (envelope-from ) for ; Fri, 25 Nov 2022 21:07:37 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A50D016EDB for ; Fri, 25 Nov 2022 21:07:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyeyV-00058k-Cv; Fri, 25 Nov 2022 15:07:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyeyT-00058F-VY for bug-guix@gnu.org; Fri, 25 Nov 2022 15:07:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyeyT-0001bY-N7 for bug-guix@gnu.org; Fri, 25 Nov 2022 15:07:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oyeyT-00022g-Ic for bug-guix@gnu.org; Fri, 25 Nov 2022 15:07:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59423: Invalid 'location' field generated in dovecot configuration Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 25 Nov 2022 20:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59423 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Pierre Langlois Cc: 59423@debbugs.gnu.org Received: via spool by 59423-submit@debbugs.gnu.org id=B59423.16694067847790 (code B ref 59423); Fri, 25 Nov 2022 20:07:01 +0000 Received: (at 59423) by debbugs.gnu.org; 25 Nov 2022 20:06:24 +0000 Received: from localhost ([127.0.0.1]:37238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyexr-00021a-SL for submit@debbugs.gnu.org; Fri, 25 Nov 2022 15:06:24 -0500 Received: from mail-qk1-f171.google.com ([209.85.222.171]:33718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oyexl-00021J-QV for 59423@debbugs.gnu.org; Fri, 25 Nov 2022 15:06:21 -0500 Received: by mail-qk1-f171.google.com with SMTP id x21so3310850qkj.0 for <59423@debbugs.gnu.org>; Fri, 25 Nov 2022 12:06:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=IRfsVPmimxuKZ17k7N3BxSjrVMwF3WIkMe2HXum+nE4=; b=CTsob+1YGWViw+PhPIBCiWkgcsg2ksl1goZIGP9khV9Sj61pxY4xQbnVMgvPyveoWr UAF+wraW0V/ge7HUFYR1NIn0WBxHK5xQ2XN5pupRfHQo5NGUIoMS2OQ3AxxDYKfBQo5/ OcsHfZl1f+p3rlqrx48RK50cDRiSXGN8Qr8q5o8EmkIj6q3kX3E8SoPOwGsqomJo6Z8P 9oa1KD34qUP+XICuripbFwI3BC73iNJXFCsSiylySZO6MtodNd4UgxjmECW6ChcE7Wbl 88vc2lQLJ2oVCQGm4pqN9OzOmg27fO7Os8l1vKeWUk6GyZK/UOam+9AJWpUnuJMDvCgl ZLDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IRfsVPmimxuKZ17k7N3BxSjrVMwF3WIkMe2HXum+nE4=; b=d/UxDMYYjG0DqZlUJ8zHFQk3iBw6N06KWoCMYmGBXopwbOC/rp9hq17hRw0v2wf+E2 NiyjlHMZJTgqxZTP2gionAnJHr5btPwuA1YD78PzUkCD0LiAGr9IKDNPoVhpIhdpnUE7 hfN8eMyc0BGcDLzc1RNp08TVVSMG5FyXv87qaKAOCiOQEFAXyqVhutUCWzoPhP+L/091 6jwH0VAVf9d/uxenDMeTom7X6tjrEgZLdHhuMUWQ6NeZIc2WZlp8P+h+lV4Kagb2qm8f ai0CD0ql1IDiC0TW8Z2QN7r4GBtSPNKPls3f79H/MAXFX98uXWcHdfVkI1Iimk20biNL GYVA== X-Gm-Message-State: ANoB5plEb0t2lMuNsBS7bXhSrk9w6m5d0+bKk3J7iBQqp1JrGOSujvht EfgAdFkrnucAcocytDgQEambhq6At906HA== X-Google-Smtp-Source: AA0mqf7ZEiNUWW+yA9t6PJ7flW3Nms27l2bZPFGOsrwfUVIrBjmLz2wqdvCfbvFVWspQewrcDfaoCw== X-Received: by 2002:ae9:f506:0:b0:6ee:3e43:ac50 with SMTP id o6-20020ae9f506000000b006ee3e43ac50mr36396451qkg.359.1669406772013; Fri, 25 Nov 2022 12:06:12 -0800 (PST) Received: from hurd ([2607:fad8:4:3::1003]) by smtp.gmail.com with ESMTPSA id d13-20020a05620a240d00b006fab68c7e87sm3322679qkn.70.2022.11.25.12.06.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 12:06:11 -0800 (PST) From: Maxim Cournoyer References: <87y1s5wa4p.fsf@gmx.com> Date: Fri, 25 Nov 2022 15:06:10 -0500 In-Reply-To: <87y1s5wa4p.fsf@gmx.com> (Pierre Langlois's message of "Sun, 20 Nov 2022 21:53:01 +0000") Message-ID: <87v8n2iytp.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669406856; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=IRfsVPmimxuKZ17k7N3BxSjrVMwF3WIkMe2HXum+nE4=; b=a9EWnpUiBOG1L4Ew3I//K1OG+Jf/49GgJIaiYR5xpVCpMZ0RrTvZbpTLv0+FgtFnaDzjuT Wr4ABdsklr4hbiYKy/+FYCKrh+24JdVz8R5ExdqlFHYOxjQEbeW4AV49E8dDSgz9gRTWyP YQDvtOdwml89gGJDISSuwiynz0JKd72eS5njn/DJt1J7CuMdrrvUz7FKoNcOnZzEJ97vnc cJP263cE1FUzJDKH8ASs+wb+aNIAb2fmhVl8adazEabwMoRIr3h6woffQ40mXTybw60ZLz LcIxbJVGnYN4cQl8RyL1J/SZJN+DETZJlzImfPZK+JzSSBU+6lXvHGxvQ+P+PQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669406856; a=rsa-sha256; cv=none; b=HlMwg5UTkKImx5Ajoqx6TQQCRExs7MP3VEgrSw1v7uRw8G9vzCtSqqEindZfYOd7So8n/2 4vy0CLg8tFfnzB0zvqL/5r5avjZOYQDSPVdaWhydmAgkNfyQy1F3VN5hqITRMbS3uzsAOb COZoxcdfspYCohi05eO/aKcJ3Eo99UG+GLUCtG64nqHWR/ZfPNCSUEaowa9TI1Xk8WzUVx BCx8VrkMFE26AqJdTwAS9AaaUGslqmci6A+wW3CRkD8Gj9K+dL5mLVcyeBJ/sD5URQo2G0 FGopL/2+BjkxhBeMBzho0xZ5RPmDsgG/+eCJWAwtzIr5AX7SWb5InFRsZYdSFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=CTsob+1Y; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.53 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=CTsob+1Y; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A50D016EDB X-Spam-Score: 5.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: tEe8fXXd8pNU Hi Pierre, Pierre Langlois writes: > Hi Guix! > > After updating the system, the dovecot service got confused and started > moving around all mailboxes. I looked up the configuration and noticed > strange invalid syntax for the location field: > > location=#< file: "path/to/config.scm" line: 297 column: 20> > > > Because the # character is interpreted as a comment, dovecot doesn't > crash and instead moves mailboxes around in weird ways I don't quite > understand :-/. > > This can actually be reproduced locally with the dovecot system test if > one dumps the following expression to check the configuration: > > (format #t "~a\n" (wait-for-file "/etc/dovecot/dovecot.conf" > marionette > #:read 'get-string-all)) > > > Giving us the snippets like this in the config: > > $ make check-system TESTS="dovecot" VERBOSE=1 > ... > namespace inbox { > type=private > separator= > prefix= > location=#< file: "gnu/tests/mail.scm" line: 297 column: 20> > inbox=yes > hidden=no > list=yes > subscriptions=yes > mailbox "Drafts" { > auto=no > special_use=\Drafts > } > mailbox "Junk" { > auto=no > special_use=\Junk > } > mailbox "Trash" { > auto=no > special_use=\Trash > } > mailbox "Sent" { > auto=no > special_use=\Sent > } > mailbox "Sent Messages" { > auto=no > special_use=\Sent > } > mailbox "Drafts" { > auto=no > special_use=\Drafts > } > } I did: $ ./pre-inst-env guix system build -e '(@@ (gnu tests mail) %dovecot-os)' /gnu/store/gpl6g2ia84kc41zma7ik9y4p3kik5aiy-system Then: $ guix gc -R /gnu/store/gpl6g2ia84kc41zma7ik9y4p3kik5aiy-system | grep dovecot.conf /gnu/store/1ijjsm3sj8v0qj88fhlwqxgdszd6q6h7-dovecot.conf And what I see in this file is now: --8<---------------cut here---------------start------------->8--- namespace inbox { type=private separator= prefix= location= inbox=yes hidden=no list=yes subscriptions=yes mailbox "Drafts" { auto=no special_use=\Drafts } mailbox "Junk" { auto=no special_use=\Junk } mailbox "Trash" { auto=no special_use=\Trash } mailbox "Sent" { auto=no special_use=\Sent } mailbox "Sent Messages" { auto=no special_use=\Sent } mailbox "Drafts" { auto=no special_use=\Drafts } } --8<---------------cut here---------------end--------------->8--- Notice that location is empty. So that's at least different to your findings, on latest commit. Can you still reproduce? Thanks, Maxim