about summary refs log tree commit diff
path: root/man
diff options
context:
space:
mode:
authorMeudwy <meudwy@meudwy.uk>2023-07-25 14:28:09 +0100
committerLeah Neukirchen <leah@vuxu.org>2023-07-27 14:08:05 +0200
commit07d064fc116cf5a72fd47632a0b8bd041df6a870 (patch)
tree2b9736818edd895871d32e040c28afc5610efb88 /man
parent75de7d47da797b5cf6e7a859a1bff030f7b571a3 (diff)
downloadmblaze-07d064fc116cf5a72fd47632a0b8bd041df6a870.tar.gz
mblaze-07d064fc116cf5a72fd47632a0b8bd041df6a870.tar.xz
mblaze-07d064fc116cf5a72fd47632a0b8bd041df6a870.zip
mdirs: add Maildir profile key
When `mdirs` is executed without any arguments, look for the `Maildir`
key in the profile and use that instead (if set).

Closes: #245 [via git-merge-pr]
Diffstat (limited to 'man')
-rw-r--r--man/mblaze-profile.54
-rw-r--r--man/mdirs.122
2 files changed, 24 insertions, 2 deletions
diff --git a/man/mblaze-profile.5 b/man/mblaze-profile.5
index fe58309..d9aaad5 100644
--- a/man/mblaze-profile.5
+++ b/man/mblaze-profile.5
@@ -49,6 +49,10 @@ The fully qualified domain name used for
 .Li Message\&-Id\&:
 generation in
 .Xr mgenmid 1 .
+.It Li Maildir\&:
+If set,
+.Xr mdirs 1
+will use this maildir when no directories are supplied.
 .It Li Outbox\&:
 If set,
 .Xr mcom 1
diff --git a/man/mdirs.1 b/man/mdirs.1
index 44ffae4..f564803 100644
--- a/man/mdirs.1
+++ b/man/mdirs.1
@@ -1,4 +1,4 @@
-.Dd January 22, 2020
+.Dd July 25, 2023
 .Dt MDIRS 1
 .Os
 .Sh NAME
@@ -17,6 +17,14 @@ for maildir
 folders and prints them,
 separated by newlines.
 .Pp
+If
+.Ar dirs
+is not present then use
+.Sq Li Maildir\&:
+from
+.Pa "${MBLAZE:-$HOME/.mblaze}/profile"
+.Pq if set .
+.Pp
 To
 .Nm ,
 a maildir folder is a directory containing
@@ -36,10 +44,20 @@ Print folders separated by a NUL character.
 .It Fl a
 Traverse into all subfolders, without considering the maildir++ name conventions.
 .El
+.Sh ENVIRONMENT
+.Bl -tag -width Ds
+.It Ev MBLAZE
+Directory containing mblaze configuration.
+.Po
+Default:
+.Pa $HOME/.mblaze
+.Pc
+.El
 .Sh EXIT STATUS
 .Ex -std
 .Sh SEE ALSO
-.Xr find 1
+.Xr find 1 ,
+.Xr mblaze-profile 5
 .Sh AUTHORS
 .An Leah Neukirchen Aq Mt leah@vuxu.org
 .Sh LICENSE