blob: a45d33f8f28fefe49d2bdcebb852cfe24dacf007 (
plain) (
tree)
|
|
#!/bin/sh
NMUTT_CONFIGURATION_FILE="${HOME}/.config/neomutt/credentials-personal"
get_param() {
grep "${2}" "${1}" |
head -n 1 |
rev |
cut -d " " -f 1 |
rev |
tr -d '"'
}
export MAIL_SERVER=$(get_param "${NMUTT_CONFIGURATION_FILE}" "my_server")
export MAIL_USERNAME=$(get_param "${NMUTT_CONFIGURATION_FILE}" "my_user")
export MAIL_PASSWORD=$(get-pass "mailbox")
notmuch new >/dev/null 2>&1 &
neomutt ${@}
notmuch new >/dev/null 2>&1 &
|