[PATCH] Don't force imap.host to be set when imap.tunnel is set
From: Andy Parkins <hidden>
Date: 2016-06-15 22:44:31
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Andy Parkins <hidden>
Date: 2016-06-15 22:44:31
Subsystem:
the rest · Maintainer:
Linus Torvalds
The documentation for git-imap-send suggests a tunnel setting such as Tunnel = "ssh -q user@server.com /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 led me to have to put the following in my .gitconfig. [imap] host = dummy This patch changes imap-send to only require that the imap.host setting is set if imap.tunnel is _not_ set. Signed-off-by: Andy Parkins <redacted> --- imap-send.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/imap-send.c b/imap-send.c
index 04afbc4..e15df1e 100644
--- a/imap-send.c
+++ b/imap-send.c@@ -1302,7 +1302,7 @@ main(int argc, char **argv) fprintf( stderr, "no imap store specified\n" ); return 1; } - if (!server.host) { + if (!server.host && !server.tunnel) { fprintf( stderr, "no imap host specified\n" ); return 1; }
--
1.5.5.1.57.g5909c