/[scripts]/trunk/mailman2mbox.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/mailman2mbox.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 41 by dpavlin, Thu Jul 26 17:17:54 2007 UTC revision 78 by dpavlin, Wed May 14 16:22:58 2008 UTC
# Line 13  if [ -e $name ] ; then Line 13  if [ -e $name ] ; then
13          exit 1          exit 1
14  fi  fi
15    
16  wget="-N -nd -nH"  wget="-nd -nH"
17    
18  mkdir /tmp/$name || exit  dir=/tmp/$name
19  cd /tmp/$name  
20    mkdir $dir || exit
21    cd $dir
22    
23    echo "*** download $url to $dir"
24    
25  wget -O index.html $wget $url  wget -O index.html $wget $url
26    
# Line 24  echo -n > $name Line 28  echo -n > $name
28    
29  grep \.txt index.html  | cut -d\" -f2 | while read file ; do  grep \.txt index.html  | cut -d\" -f2 | while read file ; do
30          echo "downloading $url/$file"          echo "downloading $url/$file"
31          wget $wget "$url/$file"          wget -N $wget "$url/$file"
32          if echo $file | grep '\.gz$' >/dev/null ; then          if echo $file | grep '\.gz$' >/dev/null ; then
33                  cat=zcat                  cat=zcat
34          else          else

Legend:
Removed from v.41  
changed lines
  Added in v.78

  ViewVC Help
Powered by ViewVC 1.1.26