mblaze, a Maildir-focused command line mail client
 help / color / mirror / Atom feed
* Can msed write labels or label edits to the original mail file?
@ 2021-06-13 15:52 John Flood
  2021-06-19 18:42 ` Leah Neukirchen
  0 siblings, 1 reply; 3+ messages in thread
From: John Flood @ 2021-06-13 15:52 UTC (permalink / raw)
  To: mblaze


[-- Attachment #1.1: Type: text/plain, Size: 1288 bytes --]

One of the reasons I became interested in mblaze was failure to get the 
editlabel <https://blitiri.com.ar/p/other/mutt-labels/> 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.

-- 
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/e48f8edf-a8ba-4690-a458-93f393d87124n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 1617 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can msed write labels or label edits to the original mail file?
  2021-06-13 15:52 Can msed write labels or label edits to the original mail file? John Flood
@ 2021-06-19 18:42 ` Leah Neukirchen
  2021-07-06 20:00   ` John Flood
  0 siblings, 1 reply; 3+ messages in thread
From: Leah Neukirchen @ 2021-06-19 18:42 UTC (permalink / raw)
  To: John Flood; +Cc: mblaze

John Flood <jfloodcsc@gmail.com> writes:

> One of the reasons I became interested in mblaze was failure to get the 
> editlabel <https://blitiri.com.ar/p/other/mutt-labels/> 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  <leah@vuxu.org>  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/87mtrlsnlp.fsf%40vuxu.org.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Can msed write labels or label edits to the original mail file?
  2021-06-19 18:42 ` Leah Neukirchen
@ 2021-07-06 20:00   ` John Flood
  0 siblings, 0 replies; 3+ messages in thread
From: John Flood @ 2021-07-06 20:00 UTC (permalink / raw)
  To: mblaze


[-- Attachment #1.1: Type: text/plain, Size: 2340 bytes --]

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 <jflo...@gmail.com> writes:
>
> > One of the reasons I became interested in mblaze was failure to get the 
> > editlabel <https://blitiri.com.ar/p/other/mutt-labels/> 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 <le...@vuxu.org> 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.

[-- Attachment #1.2: Type: text/html, Size: 3699 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-06 20:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-13 15:52 Can msed write labels or label edits to the original mail file? John Flood
2021-06-19 18:42 ` Leah Neukirchen
2021-07-06 20:00   ` John Flood

mblaze, a Maildir-focused command line mail client

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/mblaze

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 mblaze mblaze/ https://inbox.vuxu.org/mblaze \
		mblaze@googlegroups.com
	public-inbox-index mblaze

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.devel.mblaze


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mblaze/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git