rawlog.c revision d54ef607275c4899e082fbeeb210346484d2e85f
965ed6ea3fc8f7637bd0d159d2fdb283a191ce34Timo Sirainen/* Copyright (C) 2002 Timo Sirainen */
10c5fd417af4ee30b68c967f5e7d5a49f4f149b5Timo Sirainen#define TIMESTAMP_FORMAT " * OK [RAWLOG TIMESTAMP] %Y-%m-%d %H:%M:%S\n"
10c5fd417af4ee30b68c967f5e7d5a49f4f149b5Timo Sirainenstatic int client_in, client_out, imap_in, imap_out;
965ed6ea3fc8f7637bd0d159d2fdb283a191ce34Timo Sirainen if (last_lf && ioloop_time - last_write > TIMESTAMP_WAIT_TIME) {
965ed6ea3fc8f7637bd0d159d2fdb283a191ce34Timo Sirainen if (strftime(buf, sizeof(buf), TIMESTAMP_FORMAT, tm) <= 0)
965ed6ea3fc8f7637bd0d159d2fdb283a191ce34Timo Sirainen } while (r_ret == 0);
965ed6ea3fc8f7637bd0d159d2fdb283a191ce34Timo Sirainen /* disconnected */
if (s_ret < 0) {
} while (r_ret > 0);
if (pid < 0)
if (pid > 0) {
(int)parent_pid));
lib_deinit();
exit(0);