From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.3 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_RED shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 93CC21F9FD for ; Fri, 26 Feb 2021 14:38:10 +0000 (UTC) Received: by mail-qv1-xf34.google.com with SMTP id 2so4578603qvd.0 for ; Fri, 26 Feb 2021 06:38:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=date:from:to:subject:message-id:mail-followup-to:mime-version :content-disposition; bh=1yFQ01RIuHTPw7EVKTN5zDGzFXRx+9lh7UKKLhRv7ZI=; b=gZMXCwikW93hjbTAWqKVrz+0hc9/qiAlI7/jIWRemWj0zvTQuOaaorQcXEJl8RXFej 7wx7YrC+HOpsvKtgFJwyzsDY4p45i8CVCdwH/Al3qVW1S6D8LUCD/5Nbdj07ylAGcT9d SzoHGVygGpDRYwWGHG8V7rOGpABU//B2X93vk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :mime-version:content-disposition; bh=1yFQ01RIuHTPw7EVKTN5zDGzFXRx+9lh7UKKLhRv7ZI=; b=C9rzhzgJeNjRu6vpTjKy7Jik07j349CMAE0THUqXdQy/cZaVw0u2dJufQDsJOM2ZYb pdb8m01z4TNDrWrmQKKzAN85eCYMkxz6B4UzeO6z6h2ZxF6M0vsalfTqzI+gGaYCSTne eaoyAi6sZIObQz1Oa7jA4RVlmwRCt4giVp9j3VxEYFJzTs8z5+3ubNIYcGXumywPRkZw 7dOexoZSDvC07Be/+xXsThfHEPCFvQRYCVAKbbt5P1L8iRrjKHPIPzPV9sFP8qfSVVfT jPEGtiIcKsrYOnc3EHYd4zARepLnAi01EQNTi3jy9H4zVAXw8e+dAtUUMaEiOMmdkI5w KZOw== X-Gm-Message-State: AOAM531UYonURYl1mC92qeDsOrLM1PoIQexVRZ+y0NYHfjOnM5HtZBM3 xnivBZHCTUOrr6S4/d/akJqlWFhhhQad6Uez X-Google-Smtp-Source: ABdhPJwOkBTMb07uN+tappvV5QX9du4dBhMDrSa7sx7qpqmPVXOExRKotxmcbnmLFZUpo8h/0x9uIw== X-Received: by 2002:a05:6214:1391:: with SMTP id g17mr540765qvz.51.1614350288856; Fri, 26 Feb 2021 06:38:08 -0800 (PST) Received: from chatter.i7.local ([89.36.78.230]) by smtp.gmail.com with ESMTPSA id z188sm5208205qkb.40.2021.02.26.06.38.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Feb 2021 06:38:08 -0800 (PST) Date: Fri, 26 Feb 2021 09:38:06 -0500 From: Konstantin Ryabitsev To: meta@public-inbox.org Subject: watch a simple dir Message-ID: <20210226143806.6hu2775yroqaqynj@chatter.i7.local> Mail-Followup-To: meta@public-inbox.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline List-Id: Hello: I'm playing around with using public-inbox as the archiving subsystem for mlmmj. I know it's possible to simply configure a local address to deliver to public-inbox-mda [1], but I wonder if there's a way to reduce complexity and simply configure public-inbox-watch to monitor mlmmj's "archive" directory for any new files, similar to how it would monitor a maildir: - it's a simple flat dir of numeric files corresponding to the number of the message in the index - each message is a valid rfc2822 document -- in fact, if I copy them into the "new" folder of any maildir, I can read them with mutt - however, if I use symlink trickery to make mlmmj deliver into "new" or "cur" of a maildir monitored by public-inbox-watch, they are ignored -- so things are not as easy as that. :) Probably, it expects to have more complex filenames instead of just a number, but I didn't dig too deep. So, any way to make this work either by tricking public-inbox-watch to recognize these as valid maildir entries, or by teaching it to monitor simple additions to a dir as parallel scheme to maildir:? -K [1] adding an extra hop to deliver to public-inbox-mda, or to a maildir monitored by public-inbox-watch adds another entry into the postfix queue, bloats the headers by adding more Received: lines and generally seems like an inefficient way to basically copy a file that already exists on the filesystem