Skip to content
Snippets Groups Projects
Commit 0de09f2b authored by Bob Mottram's avatar Bob Mottram
Browse files

Don't set smtp proxy in muttrc

parent 3bf40649
No related branches found
No related tags found
No related merge requests found
......@@ -642,10 +642,7 @@ function email_client {
echo 'set alias_file=~/.mutt-alias';
echo 'source ~/.mutt-alias';
echo 'set query_command= "abook --mutt-query \"%s\""';
echo 'macro index,pager A "<pipe-message>abook --add-email-quiet<return>" "add the sender address to abook"';
echo '';
echo '# Optional relay of SMTP via ISP';
echo '#set smtp_url="smtps://username:password@isp_mail_domain:465/"'; } > /etc/Muttrc
echo 'macro index,pager A "<pipe-message>abook --add-email-quiet<return>" "add the sender address to abook"'; } > /etc/Muttrc
if [[ "$ONION_ONLY" != 'no' ]]; then
# On onion only systems email is onion router anyway, with its
......
......@@ -1575,15 +1575,6 @@ function email_smtp_proxy {
rm -f "$data"
email_smtp_proxy_through_isp "$isp_smtp_domain" "$isp_smtp_port" "$isp_smtp_username" "$isp_smtp_password"
# change muttrc
if [ -f $MUTTRC_FILE ]; then
if grep -q "set smtp_url" "$MUTTRC_FILE"; then
if ! grep -q "#set smtp_url" "$MUTTRC_FILE"; then
sed -i 's|set smtp_url|#set smtp_url|g' "$MUTTRC_FILE"
fi
fi
fi
}
function menu_backup_restore {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment