I see that 'imap4d_transcript' is set in 'imap4d_connection':
int
imap4d_connection (int fd, struct sockaddr *sa, int salen, void *data,
mu_ip_server_t srv, time_t timeout, int transcript)
{
idle_timeout = timeout;
imap4d_transcript = transcript;
However this function is not used when --foreground is used:
/* Actually run the daemon. */
if (mu_m_server_mode (server) == MODE_DAEMON)
{
mu_m_server_begin (server);
status = mu_m_server_run (server);
mu_m_server_end (server);
mu_m_server_destroy (&server);
}
else
{
/* Make sure we are in the root directory. */
chdir ("/");
status = imap4d_mainloop (fileno (stdin), stdin, stdout);
}
I'm not familiar enough with the mu_cfg stuff to know how to extract the
transcript variable from the parsed configuration. But it seems that
the last else-clause should set 'imap4d_transcript' if set in the
configuration file. Help?
/Simon
_______________________________________________
Bug-mailutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-mailutils