executable_lists.sh 292 B

123456789101112131415
  1. #!/bin/sh
  2. # Get mailing list
  3. origin=/tmp/"$1"-origin
  4. rsync -rltpHS --delete-excluded rsync://lists.gnu.org/mbox/"$1"/ "$origin"
  5. for file in "$origin"/*; do
  6. [ -e "$file" ] || continue
  7. basefile="$(basename "$file")"
  8. mkdir -p "$basefile"
  9. mb2md -s "$file" -d "$basefile"
  10. done