Nemo bis has uploaded a new change for review. https://gerrit.wikimedia.org/r/92066
Change subject: Archives are downloaded in .txt.gz format, fix matching and opening ...................................................................... Archives are downloaded in .txt.gz format, fix matching and opening Change-Id: I1ce8ca1dec07642182278301e6a88cd56cefb0de --- M mail-lists/ScanMail.pl 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/analytics/wikistats refs/changes/66/92066/1 diff --git a/mail-lists/ScanMail.pl b/mail-lists/ScanMail.pl index f12b686..01ac8f7 100644 --- a/mail-lists/ScanMail.pl +++ b/mail-lists/ScanMail.pl @@ -237,7 +237,7 @@ } else { - if ($file !~ /\.txt$/) + if ($file !~ /\.txt.gz$/) { next ; } $filecnt++ ; @@ -281,7 +281,7 @@ if ( ($folder eq "Wikimedia-l") && ($period < 2012*12+4) ) { return ($continue) ; } - open "FILE_ARCHIVE", "<", $file || abort ("File '$file' could not be opened.") ; + open "FILE_ARCHIVE", "gunzip -c $file |" || abort ("File '$file' could not be opened.") ; $continue = $true ; while (($line = <FILE_ARCHIVE>) && $continue) { -- To view, visit https://gerrit.wikimedia.org/r/92066 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1ce8ca1dec07642182278301e6a88cd56cefb0de Gerrit-PatchSet: 1 Gerrit-Project: analytics/wikistats Gerrit-Branch: master Gerrit-Owner: Nemo bis <federicol...@tiscali.it> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits