feat: Adds mail as a submodule, updates dev-env script to also install / update email config.

This commit is contained in:
2025-11-08 20:25:03 -05:00
parent 0045e6149c
commit 10987bd255
3 changed files with 81 additions and 64 deletions

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "mail"]
path = mail
url = ssh://git@git.housh.dev:2222/michael/mail.git

13
dev-env
View File

@@ -101,6 +101,16 @@ copy_files() {
popd &>/dev/null || exit 1
}
email() {
if command -v mailctl; then
log "Updating using mailctl..."
[[ $dry_run == "0" ]] && mailctl update && mailctl config
else
log "Installing mailctl..."
[[ $dry_run == "0" ]] && . "$DEV_ENV/mail/install"
fi
}
############################## MAIN ##############################
# CONFIG
@@ -154,6 +164,9 @@ copy_files $DEV_ENV/env/.local/share/applications/icons $XDG_DATA_HOME/applicati
mkdir $HOME/pkgbuilds
update_dirs $DEV_ENV/env/pkgbuilds $HOME/pkgbuilds
# Email.
email
if [[ $dry_run == "0" ]]; then
systemctl --user daemon-reload
hyprctl reload

1
mail Submodule

Submodule mail added at 013f3c7c18