From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5173 invoked from network); 16 May 2020 13:00:05 -0000 Received: from mail-ej1-x637.google.com (2a00:1450:4864:20::637) by inbox.vuxu.org with ESMTPUTF8; 16 May 2020 13:00:04 -0000 Received: by mail-ej1-x637.google.com with SMTP id ng1sf2542476ejb.22 for ; Sat, 16 May 2020 06:00:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1589634003; cv=pass; d=google.com; s=arc-20160816; b=qfdyK0T1C9lchQRHFhds8ef3huOzZBDsdovsf7HsNe9LflC6RBX8mfdrUmlPponiiT e6+ApsiqFUIvU2TuJAeXYSP8D5WGva55s37Ww+ZWikKyC8/+YkkJTz4YyQ4J4dHnABSl zGXVD5dLXcsLpRnczGrUJNLQT9to9A6yDJLNS7T7yGrRvbcEK79AjGEZBLT4DQ5V6WLc zuD4nfcjdHDDX8Q+rbn4sfCk4N06fX/+k2DrPfk56Sh5C61UudlzkTkobjSyCm31NCM9 xN9eFeQiCT0kxLveFCTILIHG4u7P1M7V6Hv3WeYvoNqpGWGPdWwiBufMiTvjD7K6/Ew9 XKjg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:user-agent:message-id:in-reply-to :references:from:subject:cc:to:date:mime-version:sender :dkim-signature; bh=yP5llQIlIvsD+1NbZ22pkBI+S1lMMEKGQ0QsE84SbWM=; b=h6gAbin+C1AB3SDLs7OMSMqBre1rbf8n7YW5CURQPgPfREeijfnRrYuSQVOHsfpJ+3 d/PDM1Y7iylZczfrLDsMWMg7B7OFvUuYqo0YHPyoJFNqVkdd9tDl08oqWifGvjIHVNJQ cA5su2rz9VU06ZNcnNBBcrW3z3PFXYtNAEW0OmJ+fkfY/N9E9peOuj48Bd/RgvdOzs4n Oen0VH2pxk+G0eCfh28KADcAUuABdU+6/1lFp/vA1AMw4+iTDRM3bMr3J4NwBI/XzDpB tnIKP7gm4tY3YbdSs36yA5melgRjUiVF4n8C//VzN8jCNUJ8UwGgFSAaPe9miXGrBMBm Z6ig== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@duncano.de header.s=strato-dkim-0002 header.b=Nk8Zy2w0; spf=pass (google.com: domain of mail@duncano.de designates 2a01:238:20a:202:5300::4 as permitted sender) smtp.mailfrom=mail@duncano.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:date:to:cc:subject:from:references:in-reply-to :message-id:user-agent:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=yP5llQIlIvsD+1NbZ22pkBI+S1lMMEKGQ0QsE84SbWM=; b=TDDDTuRvKhmEbm7UPS/dW7Q55cg9QxMmLJSPy8OCq5Ayb0qMLP06GPvZDffvYdxaae fbDNmKdTTJiJbv2vPStZNcaUjFjr51qjSEcc1x0/aroN759dwSUHcJ+R/cREJS3YwXLf 60sLtnEC8iOexv3EZ2zcSopEIDy2f4/ikxQaSd74HPiBQ9veIfqhF67R4bO+wJf3nrPC 4gtoofrAZLKmz7JkNvfab9QLQtBp/tqztAolxYQjX0YRKfPkBTi7lWzqVFFQS2bN+Qg4 9wWZeEqpFJiz8M9PF0iBDILHwIP0WENYI+Z5aOOShi6qqOl/74NCjfcG9fSjlofOg9SF faww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:date:to:cc:subject:from :references:in-reply-to:message-id:user-agent:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=yP5llQIlIvsD+1NbZ22pkBI+S1lMMEKGQ0QsE84SbWM=; b=VMyGeobR+mGtWpx5NaIZ5FIGzeh9+FAc0yINU/KUJYB5uZ8EpejRe2yXWUdMjr9V72 b3mHdlywWfelYLIZ3+2LnVz157CEQmHb2ZnHFwy26plEyrNGrbNmhAn5IFSveXousdSk PfkCrqZdNWId+vxOiPsOQJWIzK5XUltrYF3Dhgz1+vnvixZw/3VxkGUY/mWYXiqPSbXa Ekqk+fLWq0p79UcD9KVtK4vGbPNvhp4d9aeuEhuOTE49v9RcafVBnwnD6jU8SDS4By69 QBjGlC9SEONJ0QHh+XhmDYqbdwIpze7xyE01QM5ibn/xMx6aq7sfbphTE8uGllJfaYZQ QsaA== Sender: mblaze@googlegroups.com X-Gm-Message-State: AOAM530kH1kw+d9dbZFttbQPgqgduyxeNZFG5QkKzRpTPT9M+WxLEDxz LZpk7kchvowhKjcVqIkij6I= X-Google-Smtp-Source: ABdhPJyXzZ0ogfKhZCvDQLVQvRmiMTNEc3d42ZfUalWdNwAPYlWnPuLR8Mp3daeG9EkqAD00WWpfXQ== X-Received: by 2002:a50:c091:: with SMTP id k17mr6589731edf.106.1589634003681; Sat, 16 May 2020 06:00:03 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: mblaze@googlegroups.com Received: by 2002:a17:906:a413:: with SMTP id l19ls2078221ejz.9.gmail; Sat, 16 May 2020 06:00:03 -0700 (PDT) X-Received: by 2002:a17:906:298a:: with SMTP id x10mr7582489eje.238.1589634003124; Sat, 16 May 2020 06:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589634003; cv=none; d=google.com; s=arc-20160816; b=zuQTnYMiIFQx8psOyc5I651rM65wu13c7tIiZyu+XKw/W9QtWFNeGMTE9syI8gVgZk fjUNJsln2O87ZMAJ2Ua+AFi+nr2OXG8FiLXaW6HkWEBmeoZYm5QQ1x2hjo027jqseVG4 tXG6CiG7bAkzKTmoLQEW+MMS7Cq7g662lyRL3v/awauOD2JPVHXr/upnDL9JfLZjOo9w t6vVhnK4nrMrt6dn2Oo0lE63Svyb1ti+q04pxdmu26y9oEdND0ATaxjZLVsJA9PrVfi4 1LmOFbHw26P4sXWusd/uB7o0a/AuXB8vreUT5oVADZddzeORhBIHsd88HMZcum8Bz+Dn u0Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:message-id:in-reply-to:references:from:subject:cc:to :date:dkim-signature; bh=74H/DabDUhHUGzDR0/qITVhbD4/Uru8SZzOFVNpJWXQ=; b=BwEbsCKFFnfKTm8eXMsUZxEcmiutjp80r3isKbFHOpQwqTWc9PCIGsgrRMl8BfGrDV 1s9FoggeeLg8NTPq2eiPv+Tl2FX9DOGk8USxkJngAWDGCsCd1DzztIk9wdXiKu1cHOyl DQNtlQ5lBtx7uXWWz/fNrZBMHBofOGHPrCI2BU/vn2XDkbv3Vdo/yv5RGAGGz98EcsdN 3DjXn/1u0xSv+5krAaKyh6lFewhhCF3BG9e7Q3RF/6XbKBkcjOFL0YxQjW70xN6+YFx+ aPIppDqkFqQTCNQ1BIlQ1bA1psgRQfnTqJUlrWSyGEbgk+czrRWh8bFVzWIzVHo0OQhJ tolg== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@duncano.de header.s=strato-dkim-0002 header.b=Nk8Zy2w0; spf=pass (google.com: domain of mail@duncano.de designates 2a01:238:20a:202:5300::4 as permitted sender) smtp.mailfrom=mail@duncano.de Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de. [2a01:238:20a:202:5300::4]) by gmr-mx.google.com with ESMTPS id f27si404224ejt.0.2020.05.16.06.00.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 May 2020 06:00:02 -0700 (PDT) Received-SPF: pass (google.com: domain of mail@duncano.de designates 2a01:238:20a:202:5300::4 as permitted sender) client-ip=2a01:238:20a:202:5300::4; X-RZG-AUTH: ":LWgJfE6haOsnpV80p3phQAHiyBhbjkh7/UneMr/no9OpvY//D2HOgtB1iyeGQcnsHNCSUrHe0Q==" X-RZG-CLASS-ID: mo00 Received: from tux.localdomain by smtp.strato.de (RZmta 46.6.2 DYNA|AUTH) with ESMTPSA id h0978ew4GCxxB5E (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)) (Client did not present a certificate); Sat, 16 May 2020 14:59:59 +0200 (CEST) Received: from localhost (tux.localdomain [local]) by tux.localdomain (OpenSMTPD) with ESMTPA id 0292261a; Sat, 16 May 2020 12:59:56 +0000 (UTC) Date: Sat, 16 May 2020 14:59:56 +0200 To: Leah Neukirchen Cc: mblaze@googlegroups.com Subject: Re: [ANN] mblaze 0.7, a Maildir-focused command line mail client From: "Duncan Overbruck" References: <87a729gmqq.fsf@vuxu.org> In-Reply-To: <87a729gmqq.fsf@vuxu.org> Message-Id: <2MOZWQEK1UKMR.3BJG24O93LE6X@tux.localdomain> User-Agent: mblaze/0.5.1-43-gcc842e1-dirty (2020-02-05) X-Original-Sender: mail@duncano.de X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@duncano.de header.s=strato-dkim-0002 header.b=Nk8Zy2w0; spf=pass (google.com: domain of mail@duncano.de designates 2a01:238:20a:202:5300::4 as permitted sender) smtp.mailfrom=mail@duncano.de Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list mblaze@googlegroups.com; contact mblaze+owners@googlegroups.com List-ID: X-Google-Group-Id: 738309941541 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Here are some of the new features of mpick(1): mpick can now also act as interpreter to for mpick script files instead of only allowing to supply expression through arguments. Another new feature is redirecting mail paths matching expressions to files or processes, similar to redirects work in awk. The following example script moves matching mails into another maildir by piping their path into mrefile(1). By using mrefiles -v flag and using `? skip : print` the output of this mpick script will be either the updated path of matching mails or the original path of mails that did not match the expressions. This would also work with other tools like mflag(1). #!/usr/bin/mpick ("list-id".addr ~~ "*.project1.com" |"mrefile -v ~/mail/project1" || "list-id".addr ~~ "*.project2.com" |"mrefile -v ~/mail/project2") ? skip : print Another new feature is assigning expressions to variables, to make it a bit easier to maintain large filter scripts. #!/usr/bin/mpick let project1 = "list-id".addr == "project1.com" |"mrefile -v ~/mail/project1" let project2 = "list-id".addr == "project2.com" |"mrefile -v ~/mail/project2" in (project1 || project2) ? skip : print Another example (with a second expression for project1) would be: #!/usr/bin/mpick let project1 = "list-id".addr == "project1.com" || "to".addr == "me@project1.com" let project2 = "list-id".addr == "project2.com" let move = project1 |"mrefile -v ~/mail/project1" || project2 |"mrefile -v ~/mail/project2" in move ? skip : print The pipe (|"prog") can be replaced with >"newfile" or >>"append" to write or append matching mails to files. Cheers, Duncan -- You received this message because you are subscribed to the Google Groups "mblaze" group. To unsubscribe from this group and stop receiving emails from it, send an email to mblaze+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mblaze/2MOZWQEK1UKMR.3BJG24O93LE6X%40tux.localdomain.