about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--git-fetch-email.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-fetch-email.sh b/git-fetch-email.sh
index 83243c7..168dd7a 100644
--- a/git-fetch-email.sh
+++ b/git-fetch-email.sh
@@ -73,7 +73,7 @@ fi
 description() {
 	cat <<-EOF
 		protocol=imaps
-		host=${user#*@}
+		host=${host:-${user#*@}}
 		username=${user%@*}
 		${pass:+password=${pass}}
 	EOF