Bug 82286 - updating (or re-emerging) courier removes folders in /var/lib/courier
Bug#: 82286 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: blocker Priority: P2
Resolution: FIXED Assigned To: swtaylor@gentoo.org Reported By: gurligebis@gentoo.org
Component: Applications
URL: 
Summary: updating (or re-emerging) courier removes folders in /var/lib/courier
Keywords:  
Status Whiteboard: 
Opened: 2005-02-16 14:56 0000
Description:   Opened: 2005-02-16 14:56 0000
When updating or re-emerging courier, the unmerging of the old build removes
msgs, msgq and track from /var/lib/courier .
The problem is that they are needed by courier.

Reproducible: Always
Steps to Reproduce:
1. emerge courier
2. check that /var/lib/courier/{msgs,msgq,track} exists (make them if they
dont, but they should).
3. now emerge courier again, and have a look, the folders are gone.

Actual Results:  
Courier stops working

Expected Results:  
The directories shouldn't have been removed, it might be an idea to make .keep 
files inside them.

------- Comment #1 From Bjarke Istrup Pedersen 2005-03-03 02:55:15 0000 -------
Created an attachment (id=52533) [details]
courier-init.diff

Patch that patches the courier init script, so it creates the directories in
/var/lib/courier if they does not exist.
It only requires that people runs "/etc/init.d/courier restart" after updating.

This info should be added to the postinstall info in the ebuild.

------- Comment #2 From Kalin KOZHUHAROV 2005-03-03 12:52:29 0000 -------
What are these files for?

I don't have them and courier-imapd-ssl is functioning perfectly well.

------- Comment #3 From Bjarke Istrup Pedersen 2005-03-03 23:42:38 0000 -------
I guess that you are only using the net-mail/courier-imap package, right?
The problem is with the mail-mta/courier package.
I have been able to reproduce it on 3 different machines, as soon as you reemerge or update courier, the folders gets removed, and courier stops working (at least for sender/recieving mails).

------- Comment #4 From Scott Taylor (RETIRED) 2005-03-04 03:51:23 0000 -------
keepdir had previously been run on too many directories, and that caused
collisions with baselayout. fix to cut back on those went too far. now only
a more sane set of directories are marked. should be good now.