Commit 352b446b 352b446baa6e2e7b8aa29d8aac449aecbf946dab by Sergey Poznyakoff

Implement global transcript settings in imap4d and pop3d.

* imap4d/imap4d.c (imap4d_cfg_param): New global
statement 'transcript'.
(imap4d_connection): The transcript parameter overrides
global imap4d_transcript settings.
* pop3d/pop3d.c (pop3d_cfg_param, pop3d_connection): Likewise.
1 parent bc4fde46
......@@ -341,6 +341,8 @@ static struct mu_cfg_param imap4d_cfg_param[] = {
N_("List of fields to return in response to ID command.") },
{ ".server", mu_cfg_section, NULL, 0, NULL,
N_("Server configuration.") },
{ "transcript", mu_cfg_bool, &imap4d_transcript, 0, NULL,
N_("Set global transcript mode.") },
TCP_WRAPPERS_CONFIG
{ NULL }
};
......@@ -473,6 +475,7 @@ imap4d_connection (int fd, struct sockaddr *sa, int salen, void *data,
mu_ip_server_t srv, time_t timeout, int transcript)
{
idle_timeout = timeout;
if (imap4d_transcript != transcript)
imap4d_transcript = transcript;
imap4d_mainloop (fd, fdopen (fd, "r"), fdopen (fd, "w"));
return 0;
......
......@@ -156,6 +156,8 @@ static struct mu_cfg_param pop3d_cfg_param[] = {
#endif
{ ".server", mu_cfg_section, NULL, 0, NULL,
N_("Server configuration.") },
{ "transcript", mu_cfg_bool, &pop3d_transcript, 0, NULL,
N_("Set global transcript mode.") },
TCP_WRAPPERS_CONFIG
{ NULL }
};
......@@ -379,6 +381,7 @@ pop3d_connection (int fd, struct sockaddr *sa, int salen, void *data,
mu_ip_server_t srv, time_t timeout, int transcript)
{
idle_timeout = timeout;
if (pop3d_transcript != transcript)
pop3d_transcript = transcript;
pop3d_mainloop (fd, fdopen (fd, "r"), fdopen (fd, "w"));
return 0;
......