/[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

Annotation of /trunk/mailman2mbox.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6 - (hide annotations)
Sat Nov 20 16:09:13 2004 UTC (19 years, 5 months ago) by dpavlin
File MIME type: application/x-sh
File size: 288 byte(s)
download mailman archives (txt.gz) from web, and convert then to mbox format

1 dpavlin 6 #!/bin/sh
2    
3     if [ -z "$1" ] ; then
4     echo "usage: $0 [URL to mailman list]"
5     exit 1
6     fi
7    
8     url=$1
9    
10     wget="-N -nd -nH"
11    
12     wget $wget $url
13    
14     echo -n > mbox
15    
16     grep txt.gz index.html | cut -d\" -f2 | while read file ; do
17     echo "downloading $url/$file"
18     wget $wget "$url/$file"
19     zcat $file >> mbox
20     done

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26