Re: [PATCH] Add checks for new and tmp directories to mx_is_maildir()
"Kevin J. McCarthy" <[email protected]>
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <aYNGg7GVQvQvzSkw@qinghai> |
On Wed, Feb 04, 2026 at 10:30:52AM +0000, Crystal Kolipe wrote: >This could plausibly break things for anyone who has written one or more old >maildir directories to a read-only medium, and to save space has removed the >empty 'new' and 'tmp' directories. > >On the other hand, implementing this change would discourange users from doing >the same thing going forward, so overall I think it's the correct approach. > >Would it make sense to drop the check for 'new' and 'tmp' IFF 'cur' can only >be opened read-only? > >Admittedly, anybody who removes 'tmp' and 'new' has already created a >non-standard directory structure that other programs would not be guaranteed >to recognise. But that doesn't mean that somebody out there hasn't done it. > >Maybe have the 'missing new and tmp, but on a read-only medium' case throw a >warning, and see if anybody ever mentions seeing the warning. If not, remove >the workaround after a couple of years. Thanks Crystal. I appreciate your thinking through possible problems! However, I don't think that potential case is a big enough issue to add the extra code, or delay fixing by a couple years (with a warning). :-) I'll add an entry to the UPDATING file to let people know about the change, but after hearing others got confused by the same weird behavior I'd rather just fix it now. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmmDRoMACgkQre92hIAx a9qZrw/+IBCdvpoP8oKB1dno2DYcjFfgPaGxn1vBpgJ+qFYaV9iw7hKG8wDPupR+ aq2Kg+1zVFwJyv+J7bphxHHFus3g6bwEDDuWr94phjN4MQUqzEH9vEFE2MIxEA4c AcRqfUAS24iE4UejIyblv1RPNGx8FZKULf8hSiEh79qe/wdl2mwU0/1Kv/bb7PsL mVtTHSqgxU8r50ekZHaq/TePcsYjQNKjkVzPm1qDRWZ28iXvTXggKuJuqpDXSoiu K3f2UZBmIDIs/4s9G3ACEi9/njps2Q+Ck/GST5f8or6mTLzCZ1KpzMwB3ItBb8NF QD7HwdpnMIjQctbyoRM42KIajMVvdkLJ5aEe12N+dOM2fDuxDpRlzhwK6Ff6QTSz Iy0R/D5vACExV7TtgdrOMAAmDCAu4tduVgoPVJJh8t6oclAfW/9X4juzEoNLKLU1 rJJTzuA9Hb0hG9N5DtwhqLjw/0Rn8qiyAgbiDecH8tP9otFaD0fTg/D/fin28dcZ qy6f0RgAEyCyv4RQeijag7a4shAtmt/yUvlcSWaguQJIULLw0nMJCAdtWdg6JE8m Ue14BuRSPvq6LSwio8GJZSnIlRiRDkc4qXYBvGZDCUT8QtUDyC6SzQRrg1QhODRf FfPi2fLJTZuaU7pGVQ3jv3sgYs5r8lakNSaKiVSnFmsqsGfuHRg= =iL9+ -----END PGP SIGNATURE-----