Scripts for mail
This commit is contained in:
25
.local/bin/setup/setupmutt
Executable file
25
.local/bin/setup/setupmutt
Executable file
@@ -0,0 +1,25 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
[ -z MASTERPW ] &&
|
||||||
|
export MASTERPW=$(dialog --no-cancel --passwordbox "Enter Enpass master password." 10 60 3>&1 1>&2 2>&3 3>&1 | sed 's/\s//g')
|
||||||
|
|
||||||
|
GMAIL=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort show "Google" 2>&1 | grep stofflees)
|
||||||
|
GMAILUN=$(echo "$MAIL" | grep -Po "(?<=login: )[^\s]+")
|
||||||
|
GMAILPW=$(echo "$MAIL" | grep -Po "(?<=pass : ).+(?=\")")
|
||||||
|
|
||||||
|
MMAIL=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort show "Microsoft" 2>&1 | grep cdstarling)
|
||||||
|
MMAILUN=$(echo "$MAIL" | grep -Po "(?<=login: )[^\s]+")
|
||||||
|
MMAILPW=$(echo "$MAIL" | grep -Po "(?<=pass : ).+(?=\")")
|
||||||
|
|
||||||
|
ZMAIL=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort show "Hover" 2>&1 | grep hello)
|
||||||
|
ZMAILUN=$(echo "$MAIL" | grep -Po "(?<=login: )[^\s]+")
|
||||||
|
ZMAILPW=$(echo "$MAIL" | grep -Po "(?<=pass : ).+(?=\")")
|
||||||
|
|
||||||
|
mw -a "$GMAILUN" -i smtp.gmail.com -s smtp.gmail.com -n "Chris S" -x "$GMAILPW"
|
||||||
|
mw -a "$MMAILUN" -i smtp.office365.com -s smtp.office365.com -n "Chris S" -x "$MMAILPW"
|
||||||
|
mw -a "$ZMAILUN" -i mail.hover.com -s mail.hover.com -n "Chris S" -x "$ZMAILPW"
|
||||||
|
|
||||||
|
mw -Y &
|
||||||
|
|
||||||
|
mw -T
|
||||||
7
.local/bin/setup/setupenpass → .local/bin/setup/setuppass
Normal file → Executable file
7
.local/bin/setup/setupenpass → .local/bin/setup/setuppass
Normal file → Executable file
@@ -4,6 +4,11 @@
|
|||||||
[ -z MASTERPW ] &&
|
[ -z MASTERPW ] &&
|
||||||
export MASTERPW=$(dialog --no-cancel --passwordbox "Enter Enpass master password." 10 60 3>&1 1>&2 2>&3 3>&1 | sed 's/\s//g')
|
export MASTERPW=$(dialog --no-cancel --passwordbox "Enter Enpass master password." 10 60 3>&1 1>&2 2>&3 3>&1 | sed 's/\s//g')
|
||||||
|
|
||||||
PIN=$(dialog --no-cancel --passwordbox "Enter short term PIN for master password." 10 60 3>&1 1>&2 2>&3 3>&1 | sed 's/\s//g')
|
echo "$MASTERPW" | xclip -selection clipboard -i
|
||||||
|
|
||||||
|
chmod 700 "$HOME/.config/gnupg"
|
||||||
|
|
||||||
|
gpg --full-generate-key
|
||||||
|
|
||||||
|
pass init stofflees@gmail.com
|
||||||
|
|
||||||
Reference in New Issue
Block a user