|
@@ -12,12 +12,14 @@ msmtprc="${XDG_CONFIG_HOME:-$HOME/.config}/msmtp/config" |
|
|
msmtplog="${XDG_CACHE_HOME:-$HOME/.cache}/msmtp/msmtp.log" |
|
|
msmtplog="${XDG_CACHE_HOME:-$HOME/.cache}/msmtp/msmtp.log" |
|
|
mbsyncrc="${MBSYNCRC:-$HOME/.mbsyncrc}" |
|
|
mbsyncrc="${MBSYNCRC:-$HOME/.mbsyncrc}" |
|
|
mpoprc="${XDG_CONFIG_HOME:-$HOME/.config}/mpop/config" |
|
|
mpoprc="${XDG_CONFIG_HOME:-$HOME/.config}/mpop/config" |
|
|
|
|
|
imapnotify="${XDG_CONFIG_HOME:$HOME/.config}/imapnotify" |
|
|
mpoptemp="$muttshare/mpop-temp" |
|
|
mpoptemp="$muttshare/mpop-temp" |
|
|
mbsynctemp="$muttshare/mbsync-temp" |
|
|
mbsynctemp="$muttshare/mbsync-temp" |
|
|
mutttemp="$muttshare/mutt-temp" |
|
|
mutttemp="$muttshare/mutt-temp" |
|
|
msmtptemp="$muttshare/msmtp-temp" |
|
|
msmtptemp="$muttshare/msmtp-temp" |
|
|
onlinetemp="$muttshare/online-temp" |
|
|
onlinetemp="$muttshare/online-temp" |
|
|
notmuchtemp="$muttshare/notmuch-temp" |
|
|
notmuchtemp="$muttshare/notmuch-temp" |
|
|
|
|
|
imapnotifytemp="$muttshare/imapnotify-temp" |
|
|
# With the use of templates, it's impossible to use parameter substitution. |
|
|
# With the use of templates, it's impossible to use parameter substitution. |
|
|
# Therefore, some default variables that might be otherwise overwritten are set |
|
|
# Therefore, some default variables that might be otherwise overwritten are set |
|
|
# here. |
|
|
# here. |
|
@@ -64,6 +66,8 @@ prepmbsync() { mkdir -p "${mbsyncrc%/*}" ; [ -f "$mbsyncrc" ] && echo >> "$mbsyn |
|
|
|
|
|
|
|
|
prepmpop() { mkdir -p "${mpoprc%/*}" ; envsubst < "$mpoptemp" >> "$mpoprc" ;} |
|
|
prepmpop() { mkdir -p "${mpoprc%/*}" ; envsubst < "$mpoptemp" >> "$mpoprc" ;} |
|
|
|
|
|
|
|
|
|
|
|
prepimapnotify() { mkdir -p "${imapnotify%/*}" ; envsubst < "$imapnotifytemp" >> "$imapnotify/$fulladdr.conf" ;} |
|
|
|
|
|
|
|
|
prepmutt() { mkdir -p "${muttrc%/*}" "$accdir" |
|
|
prepmutt() { mkdir -p "${muttrc%/*}" "$accdir" |
|
|
envsubst < "$mutttemp" > "$accdir/$fulladdr.muttrc" |
|
|
envsubst < "$mutttemp" > "$accdir/$fulladdr.muttrc" |
|
|
[ ! -f "$muttrc" ] && echo "# vim: filetype=neomuttrc" > "$muttrc" |
|
|
[ ! -f "$muttrc" ] && echo "# vim: filetype=neomuttrc" > "$muttrc" |
|
@@ -90,6 +94,7 @@ getprofiles() { \ |
|
|
prepmsmtp |
|
|
prepmsmtp |
|
|
prepmutt |
|
|
prepmutt |
|
|
prepnotmuch |
|
|
prepnotmuch |
|
|
|
|
|
prepimapnotify |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
parsedomains(){ serverinfo="$(grep "^${fulladdr#*@}" "$muttshare/domains.csv" 2>/dev/null)" |
|
|
parsedomains(){ serverinfo="$(grep "^${fulladdr#*@}" "$muttshare/domains.csv" 2>/dev/null)" |
|
|