configs/install-stuff/install-claws-mail.bash

40 lines
1.3 KiB
Bash
Raw Normal View History

2024-02-28 13:14:13 -06:00
#!/usr/bin/env bash
if [ $(whoami) == "root" ]; then
echo "Run as a normal user, not root"
exit 1
fi
command_exists() { type "$1" &>/dev/null; }
if command_exists "yay"; then
2024-04-20 20:35:22 -05:00
yay -S claws-mail python-gpgme nuspell aspell aspell-en spamassassin
2024-02-28 13:14:13 -06:00
sudo systemctl enable --now spamassassin.service
cd ~
git clone https://git.askiiart.net/askiiart/gpg-email-helper
cd -
2024-03-17 20:31:51 -05:00
elif command_exists "dnf"; then
sudo dnf install spamassassin claws-mail claws-mail-plugins-pgp claws-mail-plugins-spamassassin claws-mail-plugins-rssyl
sudo systemctl enable --now spamassassin.service
cd ~
git clone https://git.askiiart.net/askiiart/gpg-email-helper
cd -
2024-07-10 13:21:06 -05:00
elif command_exists "rpm-ostree"; then
if ! command_exists "spamassassin"; then
rpm-ostree install spamassassin claws-mail claws-mail-plugins-pgp claws-mail-plugins-spamassassin claws-mail-plugins-rssyl
read -p "Press enter to reboot, then run do-everything.bash again"
reboot
else
sudo systemctl enable --now spamassassin.service
cd ~
git clone https://git.askiiart.net/askiiart/gpg-email-helper
cd -
fi
elif command_exists "xbps-install"; then
sudo xbps-install claws-mail spamassassin
ln -s /etc/sv/spamd /var/service/
sv start spamd
2024-02-28 13:14:13 -06:00
else
echo "IDK"
fi