Re: [Dovecot] Dovecot + Cygwin the 2nd

2007-12-28 Thread Timo Sirainen
On Thu, 2007-12-27 at 02:08 +0100, Ronny wrote: > So PROCESS_UID is never set using env_put() till the point where it is > looked for! The code path to set it is in src/master/login-process.c: login_processes_init() -> login_processes_start_missing() timeout -> login_group_start_missings() -> cr

Re: [Dovecot] Dovecot + Cygwin the 2nd

2007-12-26 Thread Ronny
OK, so the problem is Dovecot master process isn't passing environment variables to child processes it creates. Well, i added some code to env_put() to log all the environment variables passed to it. void env_put(const char *env) { ... printf("env_put()\n"); FILE *file; file = fopen("/tmp/

Re: [Dovecot] Dovecot + Cygwin the 2nd

2007-12-20 Thread Ronny
OK, so the problem is Dovecot master process isn't passing environment variables to child processes it creates. Does this change anything: No, still $ telnet localhost 143 Trying 127.0.0.1... Connected to zoidberg. Escape character is '^]'. FBUG: PROCESS_UID environment not given Connection clo

Re: [Dovecot] Dovecot + Cygwin the 2nd

2007-12-20 Thread Timo Sirainen
On Thu, 2007-12-20 at 19:10 +0100, Ronny wrote: > > What happens when you change this: > > > > diff -r d81c10f9b8ec src/login-common/main.c > > --- a/src/login-common/main.c Tue Dec 11 21:00:14 2007 +0200 > > +++ b/src/login-common/main.c Thu Dec 20 18:52:15 2007 +0200 > > @@ -359,7 +359,7 @@

Re: [Dovecot] Dovecot + Cygwin the 2nd

2007-12-20 Thread Ronny
What happens when you change this: diff -r d81c10f9b8ec src/login-common/main.c --- a/src/login-common/main.c Tue Dec 11 21:00:14 2007 +0200 +++ b/src/login-common/main.c Thu Dec 20 18:52:15 2007 +0200 @@ -359,7 +359,7 @@ int main(int argc __attr_unused__, char int i, fd = -1, master

Re: [Dovecot] Dovecot + Cygwin the 2nd

2007-12-20 Thread Timo Sirainen
On Tue, 2007-12-18 at 13:15 +0100, Ronny wrote: > Account: 'localhost', Server: 'localhost', Protokoll: POP3, > Serveranswer: 'Fatal: EOF while reading environment from master', Port: > 110, Secure (SSL): No, error on server: 0x800CCC90, Fehlernummer: 0x800CCC90 What happens when you change this

Re: [Dovecot] Dovecot + Cygwin the 2nd

2007-12-18 Thread Ronny
Can't sure about this but maybe this problem because different types of EOF symbols used in Unix and Windows systems. So it trying to read from master but unable to do so, because receive EOF symbol from beginning. > Cygwin uses Ctrl-D for EOF like all POSIX. (from Cygwin list)

Re: [Dovecot] Dovecot + Cygwin the 2nd

2007-12-18 Thread Nikolay Shopik
On 18.12.2007 22:57, Ronny wrote: Can you get greeting text if you simply telnet to server? I get the same error: $ telnet localhost 143 Trying 127.0.0.1... Connected to zoidberg. Escape character is '^]'. Fatal: EOF while reading environment from master Connection closed by foreign host. $ t

Re: [Dovecot] Dovecot + Cygwin the 2nd

2007-12-18 Thread Ronny
Can you get greeting text if you simply telnet to server? I get the same error: $ telnet localhost 143 Trying 127.0.0.1... Connected to zoidberg. Escape character is '^]'. Fatal: EOF while reading environment from master Connection closed by foreign host. $ telnet localhost 110 Trying 127.0.0.

Re: [Dovecot] Dovecot + Cygwin the 2nd

2007-12-18 Thread Nikolay Shopik
On 18.12.2007 15:15, Ronny wrote: Hi, i still try to get dovecot to run under cygwin. After a post on the cygwin list i am able tu run dovecot. Under Cygwin you have to run dovecot by inetd. Starting the binary "dovecot.exe" does not work. Well the server is running but answers with a fatal e

Re: [Dovecot] Dovecot + Cygwin the 2nd

2007-12-18 Thread Ronny
Sorry i forgot: $ dovecot -n # 1.0.9: /etc/dovecot.conf base_dir: /var/run/dovecot/ log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot.log protocols: imap pop3 ssl_disable: yes disable_plaintext_auth: no login_dir: /var/run/dovecot//login login_executable(default): /usr/libexec/doveco

[Dovecot] Dovecot + Cygwin the 2nd

2007-12-18 Thread Ronny
Hi, i still try to get dovecot to run under cygwin. After a post on the cygwin list i am able tu run dovecot. Under Cygwin you have to run dovecot by inetd. Starting the binary "dovecot.exe" does not work. Well the server is running but answers with a fatal error. Account: 'localhost', Serve