From ce466d8c9448589081784072b3ff142c5e821575 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 7 Jun 2017 17:17:55 +0100 Subject: [PATCH] Restoring mutt --- src/freedombone-restore-local | 4 ++++ src/freedombone-restore-remote | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/freedombone-restore-local b/src/freedombone-restore-local index 8606962e..243bebeb 100755 --- a/src/freedombone-restore-local +++ b/src/freedombone-restore-local @@ -270,9 +270,13 @@ function restore_mutt_settings { restore_directory_from_usb $temp_restore_dir mutt/$USERNAME if [ -f $temp_restore_dir/home/$USERNAME/tempbackup/.muttrc ]; then cp -f $temp_restore_dir/home/$USERNAME/tempbackup/.muttrc /home/$USERNAME/.muttrc + sed -i '/set sidebar_delim/d' /home/$USERNAME/.muttrc + sed -i '/set sidebar_sort/d' /home/$USERNAME/.muttrc fi if [ -f $temp_restore_dir/home/$USERNAME/tempbackup/Muttrc ]; then cp -f $temp_restore_dir/home/$USERNAME/tempbackup/Muttrc /etc/Muttrc + sed -i '/set sidebar_delim/d' /etc/Muttrc + sed -i '/set sidebar_sort/d' /etc/Muttrc fi if [ ! "$?" = "0" ]; then rm -rf $temp_restore_dir diff --git a/src/freedombone-restore-remote b/src/freedombone-restore-remote index f97a9bd8..191cc672 100755 --- a/src/freedombone-restore-remote +++ b/src/freedombone-restore-remote @@ -261,9 +261,13 @@ function restore_mutt_settings { restore_directory_from_friend ${temp_restore_dir} mutt/$USERNAME if [ -f ${temp_restore_dir}/home/$USERNAME/tempbackup/.muttrc ]; then cp -f ${temp_restore_dir}/home/$USERNAME/tempbackup/.muttrc /home/$USERNAME/.muttrc + sed -i '/set sidebar_delim/d' /home/$USERNAME/.muttrc + sed -i '/set sidebar_sort/d' /home/$USERNAME/.muttrc fi if [ -f ${temp_restore_dir}/home/$USERNAME/tempbackup/Muttrc ]; then cp -f ${temp_restore_dir}/home/$USERNAME/tempbackup/Muttrc /etc/Muttrc + sed -i '/set sidebar_delim/d' /etc/Muttrc + sed -i '/set sidebar_sort/d' /etc/Muttrc fi if [ ! "$?" = "0" ]; then rm -rf ${temp_restore_dir}