|
|
|
|
248
|
rm /usr/bin/bdsmail_domain
|
248
|
rm /usr/bin/bdsmail_domain
|
249
|
sed -i '/bdsmail_distribute/d' /etc/crontab
|
249
|
sed -i '/bdsmail_distribute/d' /etc/crontab
|
250
|
rm /usr/bin/bdsmail_distribute
|
250
|
rm /usr/bin/bdsmail_distribute
|
|
|
251
|
+ if [ -f /etc/skel/.mutt/bdsmail ]; then
|
|
|
252
|
+ rm /etc/skel/.mutt/bdsmail
|
|
|
253
|
+ fi
|
251
|
}
|
254
|
}
|
252
|
|
255
|
|
253
|
function install_bdsmail {
|
256
|
function install_bdsmail {
|
|
|
|
|
387
|
$BDSMAIL_DIR/bin/mailtool $BDSMAIL_DIR/config.ini admin $BDSMAIL_DIR/Maildir/i2p/admin "$bdsmail_admin_password"
|
390
|
$BDSMAIL_DIR/bin/mailtool $BDSMAIL_DIR/config.ini admin $BDSMAIL_DIR/Maildir/i2p/admin "$bdsmail_admin_password"
|
388
|
|
391
|
|
389
|
# Create mutt configuration
|
392
|
# Create mutt configuration
|
390
|
- mkdir /etc/skel/.mutt
|
|
|
|
|
393
|
+ if [ ! -d /etc/skel/.mutt ]; then
|
|
|
394
|
+ mkdir /etc/skel/.mutt
|
|
|
395
|
+ fi
|
391
|
echo 'set mbox_type=Maildir' > /etc/skel/.mutt/bdsmail
|
396
|
echo 'set mbox_type=Maildir' > /etc/skel/.mutt/bdsmail
|
392
|
echo "set smtp_url=smtp://admin:${bdsmail_admin_password}@127.0.0.1:$I2P_SMTP_PORT/" >> /etc/skel/.mutt/bdsmail
|
397
|
echo "set smtp_url=smtp://admin:${bdsmail_admin_password}@127.0.0.1:$I2P_SMTP_PORT/" >> /etc/skel/.mutt/bdsmail
|
393
|
echo 'set use_from=yes' >> /etc/skel/.mutt/bdsmail
|
398
|
echo 'set use_from=yes' >> /etc/skel/.mutt/bdsmail
|