aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--imap.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/imap.c b/imap.c
index 90a48f6f..6e57a185 100644
--- a/imap.c
+++ b/imap.c
@@ -864,7 +864,12 @@ static int imap_logout(int sock, struct query *ctl)
const static struct method imap =
{
"IMAP", /* Internet Message Access Protocol */
- 143, /* standard IMAP2bis/IMAP4 port */
+#if INET6
+ "imap",
+#else /* INET6 */
+ 143, /* standard IMAP2bis/IMAP4 port */
+#endif /* INET6 */
+ TRUE, /* this is a tagged protocol */
TRUE, /* this is a tagged protocol */
FALSE, /* no message delimiter */
imap_ok, /* parse command response */