#!/bin/bash #Usage: resend file addr@ess #Resends all Mixmaster and Cypherpunk messages in file, which is a mail folder, #to addr@ess. #If you don't have srm, use rm instead. #Do not run two instances at once in the same directory. sed -ne '/::/,/-----END/p' $1 >tmpsplit csplit -n 4 -f splittmp. tmpsplit /::/ {*} #split -l690 tmpsplit splittmp. for x in splittmp.* do mail $2 < $x srm $x done srm tmpsplit