Created
August 19, 2014 04:41
-
-
Save dukenmarga/f52082db29898f1d3abe to your computer and use it in GitHub Desktop.
perform bulk fix url list in mailman
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
this script performs bulk fix url list in mailman | |
you can get url from command 'list_list -b > urlList' | |
urlList contain url per line | |
@author Duken Marga | |
*/ | |
$f=fopen('urlList', 'r'); | |
while($baris = fgets($f)){ | |
$baris = rtrim($baris); | |
passthru("withlist -l -r fix_url $baris -u new.domain.name"); | |
echo $baris."\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment