Browse Source

Set hostname variable

tags/v3.3
phire 3 years ago
parent
commit
8171e6327c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      bin/mw

+ 2
- 0
bin/mw View File

@@ -91,6 +91,7 @@ set folder = \"$folder\"
set header_cache = $cachedir/$fulladdr/headers set header_cache = $cachedir/$fulladdr/headers
set message_cachedir = $cachedir/$fulladdr/bodies set message_cachedir = $cachedir/$fulladdr/bodies
set mbox_type = Maildir set mbox_type = Maildir
set hostname = \"$hostname\"
$extra $extra


bind index,pager gg noop bind index,pager gg noop
@@ -193,6 +194,7 @@ askinfo() { \
read -r smtp read -r smtp
[ "$sport" = 465 ] && tlsline="tls_starttls off" [ "$sport" = 465 ] && tlsline="tls_starttls off"
[ -z "$realname" ] && realname="${fulladdr%%@*}" [ -z "$realname" ] && realname="${fulladdr%%@*}"
hostname="$(echo "$fulladdr" | cut -d @ -f 2)"
login="${login:-$fulladdr}" login="${login:-$fulladdr}"
if [ -n "${password+x}" ]; then if [ -n "${password+x}" ]; then
createpass createpass


Loading…
Cancel
Save