mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
13 lines
476 B
Bash
Executable File
13 lines
476 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case $1 in
|
|
gmail) SERVER="imap.gmail.com"; LOGIN="alrayyes@gmail.com";;
|
|
andthensome) SERVER="imap.gmail.com"; LOGIN="ryan@andthensome.nl";;
|
|
ryankes) SERVER="imap.mailbox.org"; LOGIN="ryan@ryankes.eu";;
|
|
rss) SERVER="rss.higherlearning.eu"; LOGIN="alrayyes";;
|
|
*) echo "Unknown argument!"; exit 1;;
|
|
esac
|
|
|
|
PATTERN="machine $SERVER login $LOGIN"
|
|
gpg2 -q --for-your-eyes-only --no-tty -d ~/.authinfo.gpg | awk -v pattern="$PATTERN" '$0~pattern {print $NF}'
|