26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
|
|
#! /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
|