On Sun, 23 May 2004 23:04:18 -0400, Alejandro Mery <[EMAIL PROTECTED]> wrote:
Henry Baragar wrote:
On Sun, 23 May 2004 22:57:13 -0400 (CLT), Alejandro Mery
<[EMAIL PROTECTED]> wrote:
( this is hand writter not pasted, it can contain deep errors )
--- from run script --
/opt/vmailmgr/bin/checkvpw \
/opt/bincimap/bin/vmailmgr_wrapper \
Maildir \
/opt/bincimap/bin/bincimapd
Does this work? When we were experimenting with checkvpw we found
that it clobbered the last argument on the command line
(/opt/bincimap/bin/bincimapd) regardless of what it contained.
from authenticate/checkvpw.cc:
unsigned find_maildir(int argc, const char* args[])
{
for(int arg = 0; arg < argc; arg++) {
if(strcasestr(args[arg], config->maildir_arg_str().c_str()))
return arg;
}
return argc-1;
}
---
config->maildir_arg_str() has a default value of "maildir".
and it works... you can check the strace attached to the first mail if
you are not convinced. ;-)
I see that you are correct... but if there is no 'maildir' on the line,
then checkvpw clobbers the last argument. This is confusing if you use
name other than 'maildir' for your directory (I use IMAPdir).
Thanks,
Henry:-)
Alejandro
Henry:-)
--
Henry Baragar
Instantiated Software Inc.
http://www.instantiated.ca