commit 8171e6327c2c1b4088da441ced4186d0934bc888
parent f92000e5ed8d393de8f02093afebdb5ab69a1861
Author: phire <me@phire.cc>
Date: Thu, 8 Jul 2021 01:38:41 +0200
Set hostname variable
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/bin/mw b/bin/mw
@@ -91,6 +91,7 @@ set folder = \"$folder\"
set header_cache = $cachedir/$fulladdr/headers
set message_cachedir = $cachedir/$fulladdr/bodies
set mbox_type = Maildir
+set hostname = \"$hostname\"
$extra
bind index,pager gg noop
@@ -193,6 +194,7 @@ askinfo() { \
read -r smtp
[ "$sport" = 465 ] && tlsline="tls_starttls off"
[ -z "$realname" ] && realname="${fulladdr%%@*}"
+ hostname="$(echo "$fulladdr" | cut -d @ -f 2)"
login="${login:-$fulladdr}"
if [ -n "${password+x}" ]; then
createpass