CVS commit by ossi: make compat wrapper default to current user for imap login
M +6 -0 main.c 1.8 --- isync/src/compat/main.c #1.7:1.8 @@ -23,4 +23,5 @@ #include <sys/types.h> #include <sys/stat.h> +#include <sys/param.h> #include <stdlib.h> #include <unistd.h> @@ -168,4 +169,9 @@ main( int argc, char **argv ) /* XXX the precedence is borked: it's defaults < cmdline < file instead of defaults < file < cmdline */ +#ifdef BSD + global.user = getenv( "USER" ); +#else + global.user = getenv( "LOGNAME" ); +#endif global.port = 143; global.box = "INBOX"; ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel