summary refs log tree commit diff
path: root/msetseq
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-20 19:21:53 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-20 19:21:53 +0200
commit0a8f79d057b8c0a9e6be26bc81977268bac8c3c0 (patch)
tree376bf6cdeeb2ac6ba5b1a9f9d85b089556e7e56b /msetseq
parent9ddcd7787f78466f1f43261c6c3d52da18ae70ad (diff)
downloadmblaze-0a8f79d057b8c0a9e6be26bc81977268bac8c3c0.tar.gz
mblaze-0a8f79d057b8c0a9e6be26bc81977268bac8c3c0.tar.xz
mblaze-0a8f79d057b8c0a9e6be26bc81977268bac8c3c0.zip
msetseq: save previous map
Diffstat (limited to 'msetseq')
-rwxr-xr-xmsetseq1
1 files changed, 1 insertions, 0 deletions
diff --git a/msetseq b/msetseq
index 03fb512..e404e0f 100755
--- a/msetseq
+++ b/msetseq
@@ -8,5 +8,6 @@ if [ "$1" = -a ]; then
 else
 	cat >"${MAILMAP}-"
 fi
+mv "${MAILMAP}" "${MAILMAP}.old" || true
 mv "${MAILMAP}-" "${MAILMAP}"
 [ -t 1 ] || cat "${MAILMAP}"