Browse Source

settings wiper, accounts bug fixed?

tags/v3.1
Luke 6 years ago
parent
commit
600a53dbdc
4 changed files with 16 additions and 2 deletions
  1. +1
    -0
      .gitignore
  2. +1
    -0
      mutt_install.sh
  3. +2
    -2
      muttrc
  4. +12
    -0
      wipe_settings.sh

+ 1
- 0
.gitignore View File

@@ -1,3 +1,4 @@
*.swp
*.gpg
accounts/
*.pyc


+ 1
- 0
mutt_install.sh View File

@@ -69,6 +69,7 @@ echo -e "1\n2\n3\n4\n5\n6\n7\n8\n9" > /tmp/mutt_all_possible
idnum=$(diff /tmp/mutt_all_possible /tmp/mutt_used | sed -n 2p | awk '{print $2}')

addAccount() {
mkdir -p "$muttdir"accounts/
# First, adding the encrypted password.
dialog --title "Luke's mutt/offlineIMAP password wizard" --passwordbox "Enter the password for the \"$title\" account." 10 60 2> /tmp/$title
gpg -r $youremail --encrypt /tmp/$title


+ 2
- 2
muttrc View File

@@ -1,6 +1,8 @@
# vim: filetype=muttrc
# This is the general mutt config which has the settings that all accounts use.
source etc/muttcol
bind index,pager i noop
bind index,pager g noop
source personal.muttrc
set sleep_time = 0
set sort = 'reverse-date'
@@ -13,8 +15,6 @@ set date_format="%m/%d %I:%M"
set index_format="%2C %Z %D %-15.15F %s (%-4.4c)"
set markers = no
set mark_old = no
bind index,pager i noop
bind index,pager g noop
auto_view text/html
auto_view application/pdf
alternative_order text/plain text/enriched text/html


+ 12
- 0
wipe_settings.sh View File

@@ -0,0 +1,12 @@
#!/bin/bash

muttdir="$HOME/.config/mutt/"

wipe () { rm $HOME/.offlineimaprc
rm -rf "$muttdir"/accounts
rm -f "$muttdir"credentials/*gpg
rm "$muttdir"personal.muttrc ;}

(dialog --defaultno --title "Wipe all custom neomutt/offlineIMAP settings?" --yesno "Would you like to wipe all of the mutt/offlineIMAP settings generated by the system?" 6 60 && wipe) || clear && exit

clear

Loading…
Cancel
Save