From e3bc5061eb7d88be3d20094ba2d9e91c1ecbc2cd Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 17 Jan 2025 20:34:27 +0200 Subject: [PATCH] Shell function for creating a new mailbox folder. --- .bashrc.d/host01 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .bashrc.d/host01 diff --git a/.bashrc.d/host01 b/.bashrc.d/host01 new file mode 100644 index 0000000..478487a --- /dev/null +++ b/.bashrc.d/host01 @@ -0,0 +1,6 @@ +# shellcheck shell=bash +# vim: ft=sh + +new-mail-folder () { + docker --host=ssh://host01.shore.co.il exec mail-imap-1 install -o "$(id -u)" -g dovecot -m 660 /dev/null "/var/mail/nimrod/${1}" +} -- GitLab