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

Contents of /trunk/mailman2mbox.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 21 - (show annotations)
Mon Apr 10 16:53:25 2006 UTC (17 years, 10 months ago) by dpavlin
File MIME type: application/x-sh
File size: 332 byte(s)
fix From and From: headers in generated mbox with a little perl magic

1 #!/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 | perl -pe 's/^(From.+?) at (.+)$/$1\@$2/g' >> mbox
20 done

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26