[ANN] mblaze 0.7, a Maildir-focused command line mail client

17 views
Skip to first unread message

Leah Neukirchen

unread,
May 15, 2020, 12:57:09 PM5/15/20
to mbl...@googlegroups.com
Hello,

I'm happy to announce a new release of "mblaze", a Unix command line
mail client system in the spirit of RAND MH, but developed from scratch
and focused on Maildir.

This release adds new features and fixes bugs, updating is highly recommended.

* All tools now follow symlinks to mails.
* mcom: add preview alias for show command.
* mrep/mbnc: allow only one message as argument.
* maddr: add -d to only print display name.
* mthread: add -r to reverse top-level order.
* mlist: print number of matches when message selection is in place.
* mpick: many improvements.
* Many bug fixes.

You can find mblaze source at

https://git.vuxu.org/mblaze
https://github.com/leahneukirchen/mblaze

and release tarballs on

https://github.com/leahneukirchen/mblaze/releases
http://leahneukirchen.org/releases/mblaze-0.7.tar.gz

Releases are also signed with signify(1) using
http://leahneukirchen.org/releases/mblaze.pub namely:
RWT/F+mCqnmHzj/+dB32aXOuZ+4Afcr3r6TOVHXGkRNCBExd3kS0tCnL

There is a mailing list available at mbl...@googlegroups.com
(see https://groups.google.com/forum/#!forum/mblaze or
https://inbox.vuxu.org/mblaze/), and an IRC channel
#vuxu on irc.freenode.net.

Enjoy,
--
Leah Neukirchen <le...@vuxu.org> https://leahneukirchen.org/

804feb62551a64574bbf1b80fadee751abe5657c94205f96ca884f739d3d33fc mblaze-0.7.tar.gz
2713b1a5f8372275b6e4c1cb6c5aa5b2e6935b277fc585559c24405f849008d9 mblaze-0.7.tar.gz.asc
befc153579607031bbafbbfa3e17ef0d26ebcfad09f680351896721ea4b0833b mblaze-0.7.tar.gz.sig

Duncan Overbruck

unread,
May 16, 2020, 9:00:03 AM5/16/20
to Leah Neukirchen, mbl...@googlegroups.com

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 == "m...@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
Reply all
Reply to author
Forward
0 new messages