[Kolab-devel] [issue2541] openpkg rpm -e imapd removes annotations.db and mailboxes.db

Thomas Arendsen Hein kolab-issues at intevation.de
Tue Mar 11 12:31:05 CET 2008


New submission from Thomas Arendsen Hein <thomas at intevation.de>:

imapd-2.3.9-20071015 and imapd-2.3.11-20080101 both remove annotations.db and
mailboxes.db when deinstalled via 'openpkg rpm -e imapd --nodeps'.
I haven't tried older versions.

This is unexpected and causes data loss!

The mail spool stays intact and even the config files are saved as .rpmsave, but
these two important databases are not.

imapd.spec contains this code:

%preun
    #   before erase, stop service and remove log and temporary files
    if [ $1 -eq 0 ]; then
        %{l_rc} imapd stop 2>/dev/null
        rm -f  $RPM_INSTALL_PREFIX/var/imapd/*.db       >/dev/null 2>&1 || true
        rm -f  $RPM_INSTALL_PREFIX/var/imapd/db.backup* >/dev/null 2>&1 || true
        rm -f  $RPM_INSTALL_PREFIX/var/imapd/log/*.log  >/dev/null 2>&1 || true
        rm -f  $RPM_INSTALL_PREFIX/var/imapd/socket/*   >/dev/null 2>&1 || true
        rm -rf $RPM_INSTALL_PREFIX/var/imapd/tmp/*      >/dev/null 2>&1 || true
    fi
    exit 0

----------
assignedto: thomas
messages: 14031
nosy: bernhard, martin, steffen, thl, thomas, wilde, wrobel
priority: critical
status: unread
title: openpkg rpm -e imapd removes annotations.db and mailboxes.db
topic: server
___________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://www.intevation.de/roundup/kolab/issue2541>
___________________________________________________




More information about the devel mailing list