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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23009 invoked from network); 6 Jul 2021 20:00:39 -0000 Received: from mail-yb1-xb3e.google.com (2607:f8b0:4864:20::b3e) by inbox.vuxu.org with ESMTPUTF8; 6 Jul 2021 20:00:39 -0000 Received: by mail-yb1-xb3e.google.com with SMTP id t11-20020a056902124bb029055a821867basf89505717ybu.14 for ; Tue, 06 Jul 2021 13:00:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=wcLZL8jANGPvJH0MypenXvKWNOI0RBuZD0YafGNAEMc=; b=nH0JnFx7aPq/S9xJzrJMHhN+L4hXy/sMbZMa/FuGlWZ4csiz3vTI95cbehEFU2OFaK UG0m8hBfXnS+fR8cTC55WnHQNBF4SZX8TPj5OfexchonVCdLkJrKHDHsjBcp05hqhSxF x0RMn4TIJzvKcWwELEgIHmmccQDbIe2yd7/OUPFFizriSrPiJ/XfiemWylwGdcwN65nc pOmo/+lUXbis/ZlWOX9NQNxGgYHtDDgtoGJQ7Da4Y0L6i1dvHMjx7IRnEKFADu/avFqK ZjASNeDgFuwTdAZjwtJseIAo3RuUdQ939+YM/iQV6V/V/cdXJWyBRviqynxEwQymkMGZ Wg0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:precedence:mailing-list:list-id:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=wcLZL8jANGPvJH0MypenXvKWNOI0RBuZD0YafGNAEMc=; b=GBNf0lxFQGUuVq4w2JZ4vJb6oRqVhexYannMTp+fBHzrbRtcAfOdacUbCxILXljNZw 1slpcKHn85vx44z2C6rIQGugUOBV+hnrxyMvEoaa/956lRU2o7ocWKbbp6eyzsLBB49q XVCwIoXfyBb9SAr4oWJV1833NG9kxaj1uJUQHtuesfDr9p9JJVjx5ZYGvwrU/boCRZ8u VvJm7HUAYXG6iuH0zev3kB5NfSu3rnZwKa5EbYad175L7h5WwMKFQN4v7QhiAbwXPWab vr3aIxjwtHCL9vG8l/9va0sEgBGo8NbVam/veyjDHCgOYor8vszu1R0izpxEb7FwhAMb X+9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=wcLZL8jANGPvJH0MypenXvKWNOI0RBuZD0YafGNAEMc=; b=GBOHT3qZnRiN5aSNuNwSJkAJQ2otbqjzWXOyyIXVlwh7rBPKL5iq3G86V26kbgIJzC LQ6IPT0BEY9rlpk0GLNDrTT2Vcm7zbqQf4nsZyFrY4SiJmTtCde65bG45LrccD5UNPV1 p/9dpE4iemPT7pmJPtTd6Hki9ysPXiUyVRMmP0tEJL8mTSIx/TE+hPdLhZNTj/8VCkdm k0+XFsN5kNEPXAsfDOFENcgNtnQfWfuG6V52l+A/CaMXsRdEhSl9UBFsQYxtD+U9g+7I Rq5e1pDP4B5JieVkZqJGNgg/rC5lUyEDe3PCSKzXFbUFcEVd7DhPqFuQ3giVAwUssmUZ VM4g== Sender: mblaze@googlegroups.com X-Gm-Message-State: AOAM532xdMoFzbccWEFuRf+QmcuyRbmhkrDWMzMEjyINWSC14y3jMCch oWlY6n1POP9myNT8QA+u+xg= X-Google-Smtp-Source: ABdhPJwRNecRx9RD9iw8i1iEh3gZ+pHh1Au1C6/7m/m1f8kM5i46d0YdaNAUOmKAg3vG/2y01RHvBw== X-Received: by 2002:a25:d4f:: with SMTP id 76mr28405874ybn.173.1625601636190; Tue, 06 Jul 2021 13:00:36 -0700 (PDT) X-BeenThere: mblaze@googlegroups.com Received: by 2002:a25:e095:: with SMTP id x143ls5776722ybg.7.gmail; Tue, 06 Jul 2021 13:00:35 -0700 (PDT) X-Received: by 2002:a25:3482:: with SMTP id b124mr26190614yba.297.1625601635619; Tue, 06 Jul 2021 13:00:35 -0700 (PDT) Date: Tue, 6 Jul 2021 13:00:35 -0700 (PDT) From: John Flood To: mblaze Message-Id: <66089c35-2552-4d4c-82f6-a9bb5d2aba87n@googlegroups.com> In-Reply-To: <87mtrlsnlp.fsf@vuxu.org> References: <87mtrlsnlp.fsf@vuxu.org> Subject: Re: Can msed write labels or label edits to the original mail file? MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_6672_1753642779.1625601635070" X-Original-Sender: jfloodcsc@gmail.com 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: , ------=_Part_6672_1753642779.1625601635070 Content-Type: multipart/alternative; boundary="----=_Part_6673_46963792.1625601635071" ------=_Part_6673_46963792.1625601635071 Content-Type: text/plain; charset="UTF-8" Dear Leah, Thanks very much for your response. It answered my question and gives me a way forward. This response is much delayed due to "circumstances beyond my control" (narrowly escaping from my country of residence to my home country for leave in the midst of spiking Covid, vaccine shortages, etc.) I am just starting to go through the formail man page and seeing how I can figure out what might be blocking the effectiveness of the editlabel script. I will post again later. Thanks again, John Flood On Saturday, June 19, 2021 at 9:42:14 PM UTC+3 Leah Neukirchen wrote: > John Flood writes: > > > One of the reasons I became interested in mblaze was failure to get the > > editlabel script to work > with > > mutt. When, e.g., cleaning up my INBOX it was easy with mutt to tag and > > move emails from the same address to a folder, but I also had emails, > say, > > from various students that I would wish to move to a common "student" > > folder by first labeling them and then filtering for the label and > moving > > them at once. > > > > My question here is about msed which I was able to use to add a label > (but > > not edit and existing one used by Gmail like one with "\Important"). > > However, even though I could add a new label which would appear in the > > output of msed, the change did not seem to affect the actual email > itself. > > If I used mhdr, the change would not appear. > > > > So, am I expecting something that msed was not designed to do or is > there a > > way to write the output of msed to the email itself. > > Yes, indeed msed only prints the message to standard output. > > I would not recommend using it to manipulate persisted messages as it > also unfolds the headers. > > You can use formail(1) like the editlabel script for that, it should > only touch affected lines. > > -- > Leah Neukirchen https://leahneukirchen.org/ > -- 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/66089c35-2552-4d4c-82f6-a9bb5d2aba87n%40googlegroups.com. ------=_Part_6673_46963792.1625601635071 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Leah,

Thanks very much for your response.  It = answered my question and gives me a way forward.

T= his response is much delayed due to "circumstances beyond my control" (narr= owly escaping from my country of residence to my home country for leave in = the midst of spiking Covid, vaccine shortages, etc.)  I am just starti= ng to go through the formail man page and seeing how I can figure out what = might be blocking the effectiveness of the editlabel script. I will post ag= ain later. 

Thanks again,

John Flood

On Saturday, June 19, 2021 at 9:42:14 PM UTC+3 Leah Ne= ukirchen wrote:
John Flood <jflo...@gmail.= com> writes:

> One of the reasons I became interested in mblaze was failure to ge= t the=20
> editlabel <https://blitiri.com.ar/p/other/mutt-labels/> script= to work with=20
> mutt. When, e.g., cleaning up my INBOX it was easy with mutt to t= ag and=20
> move emails from the same address to a folder, but I also had emai= ls, say,=20
> from various students that I would wish to move to a common "= student"=20
> folder by first labeling them and then filtering for the label and= moving=20
> them at once.
>
> My question here is about msed which I was able to use to add a la= bel (but=20
> not edit and existing one used by Gmail like one with "\Impor= tant"). =20
> However, even though I could add a new label which would appear in= the=20
> output of msed, the change did not seem to affect the actual email= itself. =20
> If I used mhdr, the change would not appear.
>
> So, am I expecting something that msed was not designed to do or i= s there a=20
> way to write the output of msed to the email itself.

Yes, indeed msed only prints the message to standard output.

I would not recommend using it to manipulate persisted messages as it
also unfolds the headers.

You can use formail(1) like the editlabel script for that, it should
only touch affected lines.

--=20
Leah Neukirchen <le...@v= uxu.org> https://leahneukirche= n.org/

--
You received this message because you are subscribed to the Google Groups &= quot;mblaze" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to mblaze+unsub= scribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/m= blaze/66089c35-2552-4d4c-82f6-a9bb5d2aba87n%40googlegroups.com.
------=_Part_6673_46963792.1625601635071-- ------=_Part_6672_1753642779.1625601635070--