This commit is contained in:
Bob Mottram 2018-02-13 22:58:07 +00:00
parent f0fe7828e6
commit 8b272df109
1 changed files with 6 additions and 1 deletions

View File

@ -248,6 +248,9 @@ function remove_bdsmail {
rm /usr/bin/bdsmail_domain
sed -i '/bdsmail_distribute/d' /etc/crontab
rm /usr/bin/bdsmail_distribute
if [ -f /etc/skel/.mutt/bdsmail ]; then
rm /etc/skel/.mutt/bdsmail
fi
}
function install_bdsmail {
@ -387,7 +390,9 @@ function install_bdsmail {
$BDSMAIL_DIR/bin/mailtool $BDSMAIL_DIR/config.ini admin $BDSMAIL_DIR/Maildir/i2p/admin "$bdsmail_admin_password"
# Create mutt configuration
mkdir /etc/skel/.mutt
if [ ! -d /etc/skel/.mutt ]; then
mkdir /etc/skel/.mutt
fi
echo 'set mbox_type=Maildir' > /etc/skel/.mutt/bdsmail
echo "set smtp_url=smtp://admin:${bdsmail_admin_password}@127.0.0.1:$I2P_SMTP_PORT/" >> /etc/skel/.mutt/bdsmail
echo 'set use_from=yes' >> /etc/skel/.mutt/bdsmail