Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't force imap.host to be set when imap.tunnel is set
The documentation for git-imap-send suggests a tunnel setting such as Tunnel = "ssh -q [email protected] /usr/bin/imapd ./Maildir 2> /dev/null" which works wonderfully and doesn't require a username, password or port setting. However, git-imap-send currently requires that the imap.host variable be set in the config even when it was unused. This patch changes imap-send to only require that the imap.host setting is set if imap.tunnel is not set. Otherwise, server.host is set to "tunnel" for reporting purposes. Acked-by: Andy Parkins <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
- Loading branch information