From 21332e9eb15f8b1c55af21ad4a87716a0735d740 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 26 Mar 2003 10:31:59 +0200 Subject: [PATCH] Support for mailfront. --HG-- branch : HEAD --- src/imap/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/imap/main.c b/src/imap/main.c index ecbbdf0a25..f2a7c03183 100644 --- a/src/imap/main.c +++ b/src/imap/main.c @@ -14,7 +14,7 @@ #include #define IS_STANDALONE() \ - (getenv("LOGGED_IN") == NULL) + (getenv("LOGGED_IN") == NULL && getenv("IMAPLOGINTAG") == NULL) struct ioloop *ioloop; unsigned int max_custom_flag_length, mailbox_check_interval; @@ -128,6 +128,10 @@ static void main_init(void) client_send_line(client, t_strconcat( "* PREAUTH [CAPABILITY "CAPABILITY_STRING"] " "Logged in as ", user, NULL)); + } else if (getenv("IMAPLOGINTAG") != NULL) { + /* Support for mailfront */ + client_send_line(client, t_strconcat(getenv("IMAPLOGINTAG"), + " OK Logged in.", NULL)); } } -- 2.47.3