commit c8bbef5b88e0ac1b19ef712651318a968fc32f4a
parent f92000e5ed8d393de8f02093afebdb5ab69a1861
Author: Luke Smith <luke@lukesmith.xyz>
Date: Wed, 7 Jul 2021 21:42:53 -0400
Merge pull request #735 from phirecc/hostname
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