<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>82286</bug_id>
          
          <creation_ts>2005-02-16 14:56 0000</creation_ts>
          <short_desc>updating (or re-emerging) courier removes folders in /var/lib/courier</short_desc>
          <delta_ts>2005-03-04 03:51:23 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gurligebis@gentoo.org</reporter>
          <assigned_to>swtaylor@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>gurligebis@gentoo.org</who>
            <bug_when>2005-02-16 14:56:52 0000</bug_when>
            <thetext>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&apos;t have been removed, it might be an idea to make .keep 
files inside them.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gurligebis@gentoo.org</who>
            <bug_when>2005-03-03 02:55:15 0000</bug_when>
            <thetext>Created an attachment (id=52533)
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 &quot;/etc/init.d/courier restart&quot; after updating.

This info should be added to the postinstall info in the ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kalin@ThinRope.net</who>
            <bug_when>2005-03-03 12:52:29 0000</bug_when>
            <thetext>What are these files for?

I don&apos;t have them and courier-imapd-ssl is functioning perfectly well.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>gurligebis@gentoo.org</who>
            <bug_when>2005-03-03 23:42:38 0000</bug_when>
            <thetext>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).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>swtaylor@gentoo.org</who>
            <bug_when>2005-03-04 03:51:23 0000</bug_when>
            <thetext>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.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>52533</attachid>
            <date>2005-03-03 02:55 0000</date>
            <desc>courier-init.diff</desc>
            <filename>courier-init.diff</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGNvdXJpZXIub2xkCTIwMDUtMDMtMDMgMTA6MjQ6MjkuMDAwMDAwMDAwICswMDAwCisrKyBj
b3VyaWVyCTIwMDUtMDMtMDMgMTE6NDQ6NTcuMDAwMDAwMDAwICswMDAwCkBAIC00OSw2ICs0OSwz
MiBAQAogCVsgLWYgJHtzeXNjb25mZGlyfS8ke0FDQ0VTU0ZJTEV9LmRhdCBdIHx8ICR7c2JpbmRp
cn0vbWFrZXNtdHBhY2Nlc3MKIAogCVsgLWYgJHtzeXNjb25mZGlyfS8ke0FDQ0VTU0ZJTEV9LmRh
dCBdIHx8ICR7c2JpbmRpcn0vbWFrZXNtdHBhY2Nlc3MtbXNhCisKKwkjIEFmdGVyIGFuIHVwZ3Jh
ZGUsIHBvcnRhZ2UgaGFzIGEgYmFkIGhhYmJpdCBvZiByZW1vdmluZyBpbXBvcnRhbnQgZm9sZGVz
IGZyb20gL3Zhci9saWIvY291cmllcgorCisJaWYgWyAhIC1kIC92YXIvbGliL2NvdXJpZXIvbXNn
cyBdIDsgdGhlbgorCQllaW5mbyAiIENyZWF0aW5nIC92YXIvbGliL2NvdXJpZXIvbXNncyIKKwkJ
bWtkaXIgL3Zhci9saWIvY291cmllci9tc2dzCisJCWNob3duIG1haWw6bWFpbCAvdmFyL2xpYi9j
b3VyaWVyL21zZ3MKKwlmaQorCisJaWYgWyAhIC1kIC92YXIvbGliL2NvdXJpZXIvbXNncSBdIDsg
dGhlbgorCQllaW5mbyAiIENyZWF0aW5nIC92YXIvbGliL2NvdXJpZXIvbXNncSIKKwkJbWtkaXIg
L3Zhci9saWIvY291cmllci9tc2dxCisJCWNob3duIG1haWw6bWFpbCAvdmFyL2xpYi9jb3VyaWVy
L21zZ3EKKwlmaQorCisJaWYgWyAhIC1kIC92YXIvbGliL2NvdXJpZXIvdHJhY2sgXSA7IHRoZW4K
KwkJZWluZm8gIiBDcmVhdGluZyAvdmFyL2xpYi9jb3VyaWVyL3RyYWNrIgorCQlta2RpciAvdmFy
L2xpYi9jb3VyaWVyL3RyYWNrCisJCWNob3duIG1haWw6bWFpbCAvdmFyL2xpYi9jb3VyaWVyL3Ry
YWNrCisJZmkKKworCWlmIFsgISAtZCAvdmFyL2xpYi9jb3VyaWVyL3RtcCBdIDsgdGhlbgorCQll
aW5mbyAiIENyZWF0aW5nIC92YXIvbGliL2NvdXJpZXIvdG1wIgorCQlta2RpciAvdmFyL2xpYi9j
b3VyaWVyL3RtcAorCQljaG93biBtYWlsOm1haWwgL3Zhci9saWIvY291cmllci90bXAKKwlmaQog
fQogCiBzdGFydCgpIHsK
</data>        

          </attachment>
    </bug>

</bugzilla>