Skip to content

Instantly share code, notes, and snippets.

@dukenmarga
Created August 19, 2014 04:41
Show Gist options
  • Save dukenmarga/f52082db29898f1d3abe to your computer and use it in GitHub Desktop.
Save dukenmarga/f52082db29898f1d3abe to your computer and use it in GitHub Desktop.
perform bulk fix url list in mailman
<?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