[xmail] Re: XMail Log Archiver
On Tue, 2 May 2006, postmaster - networkoftheapes.net wrote: I've created a log archival and analysis tool for XMail. Those that are interested can check it out at http://xmlogarch.sourceforge.net It's currently a beta release as I have a tiny bit more to go before decent Win32 support. I'll be working on it as I have the chance, but volunteers are also welcome. Nice! - Davide - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: XMail Log Archiver
You are brave! It looks like either PHP_EOL isn't being set or I've got another variable with a null value in there somewhere. Try adding this line to the very top of xmlogarch.php after the license comment; define( PHP_EOL, \\n ); Apparently, PHP_EOL is Available since PHP 4.3.10 and PHP 5.0.2. If you're okay after that or not, let me know. I tried to keep to as many PHP generated constants as I could (like DIRECTORY_SEPARATOR) to inclease portability (or so I hoped). Thanks again for the bravery! It does help! It'll get fixed _and_ it looks like my error text is printing right :P Bryn - Original Message - From: Rob Arends [EMAIL PROTECTED] To: 'postmaster - networkoftheapes.net' [EMAIL PROTECTED] Date: Wed, 3 May 2006 23:42:25 +1000 Subject: RE: [xmail] XMail Log Archiver Hmmm, ok, I know I'm pushing the boundaries here a bit I have tried this on w2k/php 4.3.0 C:\PHP -v PHP 4.3.0 (cgi-fcgi), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies And I get: D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php ** UNKNOWN ERROR '' - TERMINATING (exit 255) ** Text: 'NULL'PHP_EOL History. I expanded the zip to: D:\usrbin\xmailutils\xmlogarch-0.3rc1 This is my current folder. I edited xmlogarch.php xmlogarch_conf.php only, and they are attached for reference. I restrained my editing to: $installLocation = d:/usrbin/xmailutils/xmlogarch-0.3rc1; Also tried $installLocation = d:\\usrbin\\xmailutils\\xmlogarch-0.3rc1; And various settings in the *_conf file. I tried unix format paths and windows escaped and non-escaped \ path delimiters. I tried running as: D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php -? D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f xmlogarch.php -gp -p password All gave same error. Hope this helps in the building effort. Rob :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of postmaster - networkoftheapes.net Sent: Wednesday, 3 May 2006 2:00 PM To: xmail@xmailserver.org Subject: [xmail] XMail Log Archiver I've created a log archival and analysis tool for XMail. Those that are interested can check it out at http://xmlogarch.sourceforge.net It's currently a beta release as I have a tiny bit more to go before decent Win32 support. I'll be working on it as I have the chance, but volunteers are also welcome. (for the curious, yes this is how I discovered the 'friend' client domain problem I was having) Enjoy, Bryn - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: XMail Log Archiver
Ok Bryn, I added define( PHP_EOL, \\n ); as suggested to the 2nd line of xmlogarch.php, and now I get this. D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f xmlogarch.php -- -? ** UNKNOWN ERROR '' - TERMINATING (exit 255) ** Text: 'NULL'\n Seems like you need a little section of code for older PHP, a bit like what we see for PHP in a webserver, where some HTTP variables did not exist before 4.0.3 Rob:-) -Original Message- From: postmaster - networkoftheapes.net [mailto:[EMAIL PROTECTED] Sent: Thursday, 4 May 2006 4:44 AM To: Rob Arends Cc: xmail@xmailserver.org Subject: RE: [xmail] XMail Log Archiver You are brave! It looks like either PHP_EOL isn't being set or I've got another variable with a null value in there somewhere. Try adding this line to the very top of xmlogarch.php after the license comment; define( PHP_EOL, \\n ); Apparently, PHP_EOL is Available since PHP 4.3.10 and PHP 5.0.2. If you're okay after that or not, let me know. I tried to keep to as many PHP generated constants as I could (like DIRECTORY_SEPARATOR) to inclease portability (or so I hoped). Thanks again for the bravery! It does help! It'll get fixed _and_ it looks like my error text is printing right :P Bryn - Original Message - From: Rob Arends [EMAIL PROTECTED] To: 'postmaster - networkoftheapes.net' [EMAIL PROTECTED] Date: Wed, 3 May 2006 23:42:25 +1000 Subject: RE: [xmail] XMail Log Archiver Hmmm, ok, I know I'm pushing the boundaries here a bit I have tried this on w2k/php 4.3.0 C:\PHP -v PHP 4.3.0 (cgi-fcgi), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies And I get: D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php ** UNKNOWN ERROR '' - TERMINATING (exit 255) ** Text: 'NULL'PHP_EOL History. I expanded the zip to: D:\usrbin\xmailutils\xmlogarch-0.3rc1 This is my current folder. I edited xmlogarch.php xmlogarch_conf.php only, and they are attached for reference. I restrained my editing to: $installLocation = d:/usrbin/xmailutils/xmlogarch-0.3rc1; Also tried $installLocation = d:\\usrbin\\xmailutils\\xmlogarch-0.3rc1; And various settings in the *_conf file. I tried unix format paths and windows escaped and non-escaped \ path delimiters. I tried running as: D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php -? D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f xmlogarch.php -gp -p password All gave same error. Hope this helps in the building effort. Rob :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of postmaster - networkoftheapes.net Sent: Wednesday, 3 May 2006 2:00 PM To: xmail@xmailserver.org Subject: [xmail] XMail Log Archiver I've created a log archival and analysis tool for XMail. Those that are interested can check it out at http://xmlogarch.sourceforge.net It's currently a beta release as I have a tiny bit more to go before decent Win32 support. I'll be working on it as I have the chance, but volunteers are also welcome. (for the curious, yes this is how I discovered the 'friend' client domain problem I was having) Enjoy, Bryn - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED]
[xmail] Re: XMail Log Archiver
Thanks for testing. I think I see where I may have made a mistake and will release a fix tongiht as I don't have the chance right now. For now, you can just comment out line #245 in xmlogarch.php which should read something like mex( ); Leave the if statement intact. It looks like I'm returning a FALSE somewhere where I shouldn't. It's odd that newer versions of PHP aren't complaining if I did make the mistake. There is an odd chance that $_SERVER['argv'] might not be getting populated, so double check register_argc_argv in your php.ini as well. It should be true or 1 for CLI mode stuff to work. I don't think it populated CLI stuff automatically until after 4.3. Another way to check is to try passing the --noreports option which will only verify that the script can run. if it works, argv is populated for sure. Bryn - Original Message - From: Rob Arends [EMAIL PROTECTED] To: 'postmaster - networkoftheapes.net' [EMAIL PROTECTED] Cc: xmail@xmailserver.org Date: Thu, 4 May 2006 09:27:40 +1000 Subject: [xmail] Re: XMail Log Archiver Ok Bryn, I added define( PHP_EOL, \\n ); as suggested to the 2nd line of xmlogarch.php, and now I get this. D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f xmlogarch.php -- -? ** UNKNOWN ERROR '' - TERMINATING (exit 255) ** Text: 'NULL'\n Seems like you need a little section of code for older PHP, a bit like what we see for PHP in a webserver, where some HTTP variables did not exist before 4.0.3 Rob:-) -Original Message- From: postmaster - networkoftheapes.net [mailto:[EMAIL PROTECTED] Sent: Thursday, 4 May 2006 4:44 AM To: Rob Arends Cc: xmail@xmailserver.org Subject: RE: [xmail] XMail Log Archiver You are brave! It looks like either PHP_EOL isn't being set or I've got another variable with a null value in there somewhere. Try adding this line to the very top of xmlogarch.php after the license comment; define( PHP_EOL, \\n ); Apparently, PHP_EOL is Available since PHP 4.3.10 and PHP 5.0.2. If you're okay after that or not, let me know. I tried to keep to as many PHP generated constants as I could (like DIRECTORY_SEPARATOR) to inclease portability (or so I hoped). Thanks again for the bravery! It does help! It'll get fixed _and_ it looks like my error text is printing right :P Bryn - Original Message - From: Rob Arends [EMAIL PROTECTED] To: 'postmaster - networkoftheapes.net' [EMAIL PROTECTED] Date: Wed, 3 May 2006 23:42:25 +1000 Subject: RE: [xmail] XMail Log Archiver Hmmm, ok, I know I'm pushing the boundaries here a bit I have tried this on w2k/php 4.3.0 C:\PHP -v PHP 4.3.0 (cgi-fcgi), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies And I get: D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php ** UNKNOWN ERROR '' - TERMINATING (exit 255) ** Text: 'NULL'PHP_EOL History. I expanded the zip to: D:\usrbin\xmailutils\xmlogarch-0.3rc1 This is my current folder. I edited xmlogarch.php xmlogarch_conf.php only, and they are attached for reference. I restrained my editing to: $installLocation = d:/usrbin/xmailutils/xmlogarch-0.3rc1; Also tried $installLocation = d:\\usrbin\\xmailutils\\xmlogarch-0.3rc1; And various settings in the *_conf file. I tried unix format paths and windows escaped and non-escaped \ path delimiters. I tried running as: D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php -? D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f xmlogarch.php -gp -p password All gave same error. Hope this helps in the building effort. Rob :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of postmaster - networkoftheapes.net Sent: Wednesday, 3 May 2006 2:00 PM To: xmail@xmailserver.org Subject: [xmail] XMail Log Archiver I've created a log archival and analysis tool for XMail. Those that are interested can check it out at http://xmlogarch.sourceforge.net It's currently a beta release as I have a tiny bit more to go before decent Win32 support. I'll be working on it as I have the chance, but volunteers are also welcome. (for the curious, yes this is how I discovered the 'friend' client domain problem I was having) Enjoy, Bryn - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED] For general help: send the line help in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe xmail in the body of a message to [EMAIL PROTECTED
[xmail] Re: XMail Log Archiver
I've started doing some Win32 testing ont my XP workstation as all I need really are the logs and PHP - not installed XMail. So I have a question because I don't remember: Under Win32, do log lines have LF or CR-LF format? My test logs are still *nix logs so they are LF. Thanks, Bryn - Original Message - From: postmaster - networkoftheapes.net [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: xmail@xmailserver.org Date: Wed, 03 May 2006 17:50:11 -0700 Subject: [xmail] Re: XMail Log Archiver Thanks for testing. I think I see where I may have made a mistake and will release a fix tongiht as I don't have the chance right now. For now, you can just comment out line #245 in xmlogarch.php which should read something like mex( ); Leave the if statement intact. It looks like I'm returning a FALSE somewhere where I shouldn't. It's odd that newer versions of PHP aren't complaining if I did make the mistake. There is an odd chance that $_SERVER['argv'] might not be getting populated, so double check register_argc_argv in your php.ini as well. It should be true or 1 for CLI mode stuff to work. I don't think it populated CLI stuff automatically until after 4.3. Another way to check is to try passing the --noreports option which will only verify that the script can run. if it works, argv is populated for sure. Bryn - Original Message - From: Rob Arends [EMAIL PROTECTED] To: 'postmaster - networkoftheapes.net' [EMAIL PROTECTED] Cc: xmail@xmailserver.org Date: Thu, 4 May 2006 09:27:40 +1000 Subject: [xmail] Re: XMail Log Archiver Ok Bryn, I added define( PHP_EOL, \\n ); as suggested to the 2nd line of xmlogarch.php, and now I get this. D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f xmlogarch.php -- -? ** UNKNOWN ERROR '' - TERMINATING (exit 255) ** Text: 'NULL'\n Seems like you need a little section of code for older PHP, a bit like what we see for PHP in a webserver, where some HTTP variables did not exist before 4.0.3 Rob:-) -Original Message- From: postmaster - networkoftheapes.net [mailto:[EMAIL PROTECTED] Sent: Thursday, 4 May 2006 4:44 AM To: Rob Arends Cc: xmail@xmailserver.org Subject: RE: [xmail] XMail Log Archiver You are brave! It looks like either PHP_EOL isn't being set or I've got another variable with a null value in there somewhere. Try adding this line to the very top of xmlogarch.php after the license comment; define( PHP_EOL, \\n ); Apparently, PHP_EOL is Available since PHP 4.3.10 and PHP 5.0.2. If you're okay after that or not, let me know. I tried to keep to as many PHP generated constants as I could (like DIRECTORY_SEPARATOR) to inclease portability (or so I hoped). Thanks again for the bravery! It does help! It'll get fixed _and_ it looks like my error text is printing right :P Bryn - Original Message - From: Rob Arends [EMAIL PROTECTED] To: 'postmaster - networkoftheapes.net' [EMAIL PROTECTED] Date: Wed, 3 May 2006 23:42:25 +1000 Subject: RE: [xmail] XMail Log Archiver Hmmm, ok, I know I'm pushing the boundaries here a bit I have tried this on w2k/php 4.3.0 C:\PHP -v PHP 4.3.0 (cgi-fcgi), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies And I get: D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php ** UNKNOWN ERROR '' - TERMINATING (exit 255) ** Text: 'NULL'PHP_EOL History. I expanded the zip to: D:\usrbin\xmailutils\xmlogarch-0.3rc1 This is my current folder. I edited xmlogarch.php xmlogarch_conf.php only, and they are attached for reference. I restrained my editing to: $installLocation = d:/usrbin/xmailutils/xmlogarch-0.3rc1; Also tried $installLocation = d:\\usrbin\\xmailutils\\xmlogarch-0.3rc1; And various settings in the *_conf file. I tried unix format paths and windows escaped and non-escaped \ path delimiters. I tried running as: D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php -? D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f xmlogarch.php -gp -p password All gave same error. Hope this helps in the building effort. Rob :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of postmaster - networkoftheapes.net Sent: Wednesday, 3 May 2006 2:00 PM To: xmail@xmailserver.org Subject: [xmail] XMail Log Archiver I've created a log archival and analysis tool for XMail. Those that are interested can check it out at http://xmlogarch.sourceforge.net It's currently a beta release as I have a tiny bit more to go before decent Win32 support. I'll be working on it as I have the chance, but volunteers are also welcome
[xmail] Re: XMail Log Archiver
Sweet, but for now, I'll let you know where I got to. I commented the mex( ); I changed the INI from register_argc_argv=Off to register_argc_argv=On I added a debugging line to the top, so my first 5 lines on xmlogarch.php is now. -- ?php define( PHP_EOL, \\n ); # Needed before 4.3.10 or 5.0.2 print implode( , $_SERVER['argv'] ) . PHP_EOL; /* License -- Each time I made a change I re-ran the script. Each time it got a bit better, but it still exits immediately, so I don't think it is doing anything. Results with register_argc_argv=Off and my debug line are: D:\usrbin\xmailutils\xmlogarch-0.3rc1php -d -f xmlogarch.php -- -? Content-type: text/html X-Powered-By: PHP/4.3.0 \n Results with register_argc_argv=On and my debug line are: D:\usrbin\xmailutils\xmlogarch-0.3rc1php -d -f xmlogarch.php -- -? Content-type: text/html X-Powered-By: PHP/4.3.0 xmlogarch.php -- -?\n So we are closer, but still no cigar; I tried --noreport also, by I got the same result - apart from the debug output. We should take this OT offline until fixed, then report back. Rob :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of postmaster - networkoftheapes.net Sent: Thursday, 4 May 2006 10:50 AM To: [EMAIL PROTECTED] Cc: xmail@xmailserver.org Subject: [xmail] Re: XMail Log Archiver Thanks for testing. I think I see where I may have made a mistake and will release a fix tongiht as I don't have the chance right now. For now, you can just comment out line #245 in xmlogarch.php which should read something like mex( ); Leave the if statement intact. It looks like I'm returning a FALSE somewhere where I shouldn't. It's odd that newer versions of PHP aren't complaining if I did make the mistake. There is an odd chance that $_SERVER['argv'] might not be getting populated, so double check register_argc_argv in your php.ini as well. It should be true or 1 for CLI mode stuff to work. I don't think it populated CLI stuff automatically until after 4.3. Another way to check is to try passing the --noreports option which will only verify that the script can run. if it works, argv is populated for sure. Bryn - Original Message - From: Rob Arends [EMAIL PROTECTED] To: 'postmaster - networkoftheapes.net' [EMAIL PROTECTED] Cc: xmail@xmailserver.org Date: Thu, 4 May 2006 09:27:40 +1000 Subject: [xmail] Re: XMail Log Archiver Ok Bryn, I added define( PHP_EOL, \\n ); as suggested to the 2nd line of xmlogarch.php, and now I get this. D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f xmlogarch.php -- -? ** UNKNOWN ERROR '' - TERMINATING (exit 255) ** Text: 'NULL'\n Seems like you need a little section of code for older PHP, a bit like what we see for PHP in a webserver, where some HTTP variables did not exist before 4.0.3 Rob:-) -Original Message- From: postmaster - networkoftheapes.net [mailto:[EMAIL PROTECTED] Sent: Thursday, 4 May 2006 4:44 AM To: Rob Arends Cc: xmail@xmailserver.org Subject: RE: [xmail] XMail Log Archiver You are brave! It looks like either PHP_EOL isn't being set or I've got another variable with a null value in there somewhere. Try adding this line to the very top of xmlogarch.php after the license comment; define( PHP_EOL, \\n ); Apparently, PHP_EOL is Available since PHP 4.3.10 and PHP 5.0.2. If you're okay after that or not, let me know. I tried to keep to as many PHP generated constants as I could (like DIRECTORY_SEPARATOR) to inclease portability (or so I hoped). Thanks again for the bravery! It does help! It'll get fixed _and_ it looks like my error text is printing right :P Bryn - Original Message - From: Rob Arends [EMAIL PROTECTED] To: 'postmaster - networkoftheapes.net' [EMAIL PROTECTED] Date: Wed, 3 May 2006 23:42:25 +1000 Subject: RE: [xmail] XMail Log Archiver Hmmm, ok, I know I'm pushing the boundaries here a bit I have tried this on w2k/php 4.3.0 C:\PHP -v PHP 4.3.0 (cgi-fcgi), Copyright (c) 1997-2002 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies And I get: D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php ** UNKNOWN ERROR '' - TERMINATING (exit 255) ** Text: 'NULL'PHP_EOL History. I expanded the zip to: D:\usrbin\xmailutils\xmlogarch-0.3rc1 This is my current folder. I edited xmlogarch.php xmlogarch_conf.php only, and they are attached for reference. I restrained my editing to: $installLocation = d:/usrbin/xmailutils/xmlogarch-0.3rc1; Also tried $installLocation = d:\\usrbin\\xmailutils\\xmlogarch-0.3rc1; And various settings in the *_conf file. I tried unix format paths and windows escaped and non-escaped \ path delimiters. I tried running as: D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f ./xmlogarch.php -? D:\usrbin\xmailutils\xmlogarch-0.3rc1php -f xmlogarch.php