view move-if-change @ 88273:d30c56339f08

(rmail): Go back to using find-file for reading in the mail file. This avoids gratuitous modification of the file. (rmail-decode-region): Doc string, cleanup. (rmail-decode-by-content-type): New function. (rmail-decode-messages): Use it. Add FROM and TO args and only process messages in that region. (rmail-get-new-mail): Call `rmail-decode-region' before `rmail-process-new-messages'.
author Henrik Enberg <henrik.enberg@telia.com>
date Sun, 22 Jan 2006 05:45:47 +0000
parents 354e0c45cedf
children 14a97ab281d5
line wrap: on
line source

#!/bin/sh
if
test -r $2
then
if
cmp $1 $2 > /dev/null
then
echo $2 is unchanged
rm -f $1
else
mv -f $1 $2
fi
else
mv -f $1 $2
fi