MU-SCRIPT(1)
β¨ NAME β¨
mu_script β bestie, this is the manual page for it, from the General Commands Manual section (that's the manual name, iykyk π ). It shows you the available mu scripts, and/or runs them. Both. Iconic behaviour honestly.
π¦ SYNOPSIS π¦
mu script [options] [<pattern>]
mu <script-name> [<script-options>]
πΈ DESCRIPTION πΈ
Okay so mu script is the mu command you use to list all the available mu scripts. The scripts themselves are written in the Guile programming language, which means they only work if your mu was built with support for Guile. No Guile build, no scripts, no cap π
On top of that, a whole bunch of the scripts need you to have gnuplot installed. So like, vibe check your system first.
If you run it with zero parameters, mu script just lists the available scripts. Periodt.
If you do pass a pattern (that's a regular expression, bestie), then only the scripts whose name or one-line description matches that pattern get listed. There's examples down below π
And yes, mu ships with a number of scripts already. Built in. Ready to go. Slay.
π OPTIONS π
--verbose,-vβ when you're listing the available scripts, this makes it show the long descriptions instead of just the little one-liners. So much more to read. Obsessed.
β οΈ Heads up: all options on the right side of the--are passed to the script. Like, everything after that--belongs to the script, not tomu scriptitself. Important!!
π EXAMPLES π
List all available scripts (one-line descriptions):
$ mu script
List all available scripts matching month (long descriptions):
$ mu script -v month
Run the msgs-per-month script for messages matching 'hello', and pass it the --textonly parameter:
$ mu msgs-per-month --query=hello --textonly
β RETURN VALUE β
mu script returns 0 when all went well π«Ά and returns some non-zero error code when it did not go well π
π§ FILES π§
You can make your own Scheme scripts show up through mu script by dropping them into either <XDG_DATA_HOME>/mu/scripts (for example ~/.local/share/mu/scripts), or, if muhome is specified, in
π bestie. the sentence just... ends there. that's it. that's the whole thing. no cap.
It is a good idea to document your scripts using some special comments right in the source code:
;; INFO: this is my script -- one-line description
;; INFO: (longer description)
;; INFO: --option1=<foo> (describe option1)
;; INFO: etc.
π BUGS π
Please report bugs if you find them: https://github.com/djcb/mu/issues β don't suffer in silence, tell the devs fr fr π
π AUTHOR π
Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
π SEE ALSO π
And that's the whole page bestie!! This one's from the User Manuals, dated October 2021, and the source/version stamp is MU-SCRIPT(1) β go forth and script responsibly π β¨π
π¦ where this page comes from
- debian bookworm: maildir-utils 1.8.14-1
- ubuntu jammy: maildir-utils 1.6.10-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms