The POP daemon's temporary mail file has a leading dot ('.'). This was

lost in the shell script rewrite of the rmuser command.

Submitted by: Ian Smith <smithi@nimnet.asn.au>
This commit is contained in:
Mike Makonnen 2007-10-19 07:18:56 +00:00
parent c5081fcd35
commit 017568b3c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172791

View file

@ -86,10 +86,10 @@ rm_mail() {
echo -n " mailspool"
rm ${MAILSPOOL}/$login
fi
if [ -f ${MAILSPOOL}/${login}.pop ]; then
verbose && echo -n " ${MAILSPOOL}/${login}.pop" ||
if [ -f ${MAILSPOOL}/.${login}.pop ]; then
verbose && echo -n " ${MAILSPOOL}/.${login}.pop" ||
echo -n " pop3"
rm ${MAILSPOOL}/${login}.pop
rm ${MAILSPOOL}/.${login}.pop
fi
verbose && echo '.'
}