This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/dotfiles/scripts/_mutt_get-mail

31 lines
524 B
Bash
Executable File

#!/bin/sh
my_path="$1"
my_name="$2"
my_user="$3"
my_host="$4"
my_pass=`_pass_get "$my_host"`
cat <<EOF
set realname = "$my_name"
set from = "${my_name}@${my_host}"
set smtp_url = 'smtps://${my_user}@${my_host}'
set smtp_pass = '$my_pass'
# set Mailboxes
set folder = ~/.local/share/mail/${my_path}/
set spoolfile = "+INBOX"
set record = "+Sent"
set postponed = "+Drafts"
set trash = "+Trash"
unmailboxes *
mailboxes \
`echo ~/.local/share/mail/${my_path}/INBOX*` \
"=Sent" \
"=Drafts" \
"=Trash" \
EOF