diff options
author | phire <me@phire.cc> | 2021-07-08 01:38:41 +0200 |
---|---|---|
committer | phire <me@phire.cc> | 2021-07-08 01:38:41 +0200 |
commit | 8171e6327c2c1b4088da441ced4186d0934bc888 (patch) | |
tree | ecae385ce21d7fd275e3477848a74a3d4a99d5b4 | |
parent | f92000e5ed8d393de8f02093afebdb5ab69a1861 (diff) |
Set hostname variable
-rwxr-xr-x | bin/mw | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |