Bug Tracker item #2823900, was opened at 2009-07-19 17:38 Message generated for change (Comment added) made by sbajic You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2823900&group_id=250683
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: webui Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Julien Valroff (valroff) >Assigned to: Stevan Bajic (sbajic) Summary: Cannot get DSPAM version in the webui header Initial Comment: Hi, The header always displays "Unknown version" as the configure.pl script doesn't open the PIPE: It should be: # Get DSPAM version $CONFIG{'DSPAM_VERSION'} = "Unknown Version"; open(PIPE, $CONFIG{'DSPAM_BIN'}."/dspam --version|"); while(<PIPE>) { chomp; if (/^(DSPAM Anti\-Spam Suite .*)$/) { $CONFIG{'DSPAM_VERSION'} = $1; last; } } close(PIPE); I have also removed the leading "Version"... Cheers, Julien ---------------------------------------------------------------------- >Comment By: Stevan Bajic (sbajic) Date: 2009-07-19 18:01 Message: Hallo Julien I feel stupid! My original code had: ---- # Get DSPAM version information open(PIPE, "$CONFIG{'DSPAM'} --version|"); while(<PIPE>) { chomp; if (/^(DSPAM Anti\-Spam Suite .*)$/) { $CONFIG{'DSPAM_VERSION'} = $1; last; } } close(PIPE); ---- And somehow I messed it up while doing cut & paste. Stupid me. Sorry. Fixed in commit bc6270124746689453e5398b29dd63e8c5b7bf6d. Kind Regards Stevan Bajic ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2823900&group_id=250683 ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Dspam-devel mailing list Dspam-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-devel