summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-11-28 01:58:06 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-11-28 01:58:06 -0500
commitf4fd940ab17494d9d6e91facf150178e0f9d8d41 (patch)
tree6916cd27b3312e5621fe39744b71a37e93241a0b
parentbc871dbc38d4e1729bfe8696bac0eb86b4d8b7b8 (diff)
fix problems with maildups
-rw-r--r--maildups.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/maildups.sh b/maildups.sh
index d5521da..d309e9e 100644
--- a/maildups.sh
+++ b/maildups.sh
@@ -7,5 +7,7 @@ msgid_file=`mktemp`
grep -rH -m1 '^[Mm]essage-[Ii][Dd]:' "$maildir"|sort -n>"$msgid_file"
< "$msgid_file" sed 's/:.*//'|uniq -d|while read msgid; do
- sed -n "s/^$msgid://p"|sed 1d|xargs -d'\n' rm -f
+ sed -n "s/^$msgid://p"|sed 1d|xargs -d'\n' rm -fv
done
+
+rm -f "$mktemp"