rpm -e nmh fails with execution of script fails.
rpm -evv nmh produces this output:
D: opening database mode 0x82 in /var/lib/rpm
D: getting list of mounted filesystems
+ [ 0 = 0 ]
+ [ ! -L /usr/bin/mh ]
+ [ ! -L /usr/lib/mh ]
+ [ -d /etc/smrsh -a -L /etc/smrsh/slocal ]
execution of script failed
I'm not sure what /etc/smrsh is, but it's not in nmh's list of files, and
it doesn't appear to be a dependency (perhaps it should be?).
*** Bug 9652 has been marked as a duplicate of this bug. ***
FWIW, the package nmh-1.0-3 uninstalls for me, and the %pre*/%post* scriptlets
appear to be OK.
/etc/smrsh is part of the sendmail package. nmh is creating a symlink to
enable delivery to nmh agents.