Reformail Command

for i in cur/*; do reformail -x Message-ID: <$i; done | wc -l

List and count Message-ID from email.

for i in cur/*; do reformail -x Message-ID: <$i; done | sort -u | wc -l

Sort out and count non duplicate email

rm -f /tmp/dups
for i in cur/*; do reformail -D 20000 /tmp/dups <$i && echo $i; done | wc -l

Find and count duplicate email by reformail command

rm -f /tmp/dups
for i in cur/*; do reformail -D 20000 /tmp/dups <$i && rm -vf $i; done

Delete duplicate email



Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.