David Gessel
2015-Apr-14 01:11 UTC
Problem: mail moved by thunderbird script is invisible to mail clients, but in cur directory
Over the last year I've had a script moving old mail (120 days) into my annual archive folder. This is the first year I've done this with Dovecot, previously it was running against Cyrus. There's nothing particularly clever: a few conditions to match, then "move message to" the appropriate archive folder. There's one for every year from 2000 to 2015. 2015 is just barely ahead of need. 2014 has about a year's mail in the cur directory. The 2000-2013 folders were filled by Cyrus and were migrated over using IMAP Migrate. They're fine, and read normally. The 2014 layout looks normal to me # ls cur dovecot-uidlist dovecot.index.cache dovecot.index.log.2 new dovecot-keywords dovecot.index dovecot.index.log maildirfolder tmp Permissions are the same as every other folder, as is owner: drw-r----- 2 vmail vmail 9.6K Apr 12 21:13 cur and # ls | wc -l 9822 I've checked with Thunderbird, Mulberry, Claws, and Sylpheed - none can read the directory. The files look normal: 2014/cur 1426411329.M123928P26360.host.domain.com,S=3523,W=3591:2,R More or less the same as a working directory: 2013/cur 1405500734.M958596P27867.host.domain.com,S=794,W=819:2,RS I've run # doveadm force-resync -u user .archives.2014 and nothing changed. I'm at a bit of a loss since no client can read them, something like moving them to another folder and back is a little complicated. Any hints?
Steffen Kaiser
2015-Apr-14 06:07 UTC
Problem: mail moved by thunderbird script is invisible to mail clients, but in cur directory
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 14 Apr 2015, David Gessel wrote:> There's nothing particularly clever: a few conditions to match, then "move > message to" the appropriate archive folder. There's one for every year from > 2000 to 2015. 2015 is just barely ahead of need. 2014 has about a year's > mail in the cur directory. > > The 2000-2013 folders were filled by Cyrus and were migrated over using IMAP > Migrate. They're fine, and read normally. > > The 2014 layout looks normal to me > # ls > cur dovecot-uidlist dovecot.index.cache > dovecot.index.log.2 new > dovecot-keywords dovecot.index dovecot.index.log > maildirfolder tmp > > Permissions are the same as every other folder, as is owner: > drw-r----- 2 vmail vmail 9.6K Apr 12 21:13 cur > > I've checked with Thunderbird, Mulberry, Claws, and Sylpheed - none can read > the directory.What does Dovecot log? - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBVSyuunz1H7kL/d9rAQKRRAf/fn3KoLeLyjgZcB3r6TV7WuothiUg513/ Nf/eTbyu/Xe1dR24oFyWVSE7yOKPttwSKsSFHZqVs75MOGRCv9j0441WEXnDFiqE TJ8JZ8KQfkgjaS7YEIO2loZJfJa4ValcTWsL2kO23UCmITsedIQLwqtO5n+1yhUT 5InO2FC2TsEuD0kmWjEnFoNq0jpqkwCZhRDYrW3eZC/dFr95mNAxS7PlQe2Ps5n+ 4NEVLPSfBCuM02iL+Gni+SgFGGo3iCtxeacfYLx5wCNDIV4kwX0WAwaKagGQdcGF ZNm8dOZJ1L5BVBOj+MbE6THc0RW3Dq3UDbL107MS8FsKhmKcYDEalg==X1/v -----END PGP SIGNATURE-----
David Gessel
2015-Apr-14 16:59 UTC
Problem: mail moved by thunderbird script is invisible to mail clients, but in cur directory
-------- Original Message -------- Subject: Re: Problem: mail moved by thunderbird script is invisible to mail clients, but in cur directory From: Steffen Kaiser <skdovecot at smail.inf.fh-brs.de> To: David Gessel <gessel at blackrosetech.com> Date: Tue Apr 14 2015 09:07:54 GMT+0300 (Arabic Standard Time)> On Tue, 14 Apr 2015, David Gessel wrote: > >> There's nothing particularly clever: a few conditions to match, then "move message to" the appropriate archive folder. There's one for every year from 2000 to 2015. 2015 is just barely ahead of need. 2014 has about a year's mail in the cur directory. > >> The 2000-2013 folders were filled by Cyrus and were migrated over using IMAP Migrate. They're fine, and read normally. > >> The 2014 layout looks normal to me >> # ls >> cur dovecot-uidlist dovecot.index.cache dovecot.index.log.2 new >> dovecot-keywords dovecot.index dovecot.index.log maildirfolder tmp > >> Permissions are the same as every other folder, as is owner: >> drw-r----- 2 vmail vmail 9.6K Apr 12 21:13 cur > >> I've checked with Thunderbird, Mulberry, Claws, and Sylpheed - none can read the directory. > > What does Dovecot log? > > > -- Steffen KaiserNothing useful as I tried to list it, but just to make sure, I tried copying a new file in and got the immensely useful: Apr 14 09:48:15 imap(user at domain): Error: rename(/mail/domain/user//.archives.2014/tmp/1429030095.M674819P29788.shiofuki, /mail/domain/user//.archives.2014/cur/1405004806.M943913P44906.shiofuki.domain,S=36977,W=37882:2,S) failed: Permission denied And checking again I see the above permissions are accurate but incorrect. 640 isn't right for cur, it should be 740. Curiously, this directory was created by t-bird, but a simple # chmod 740 cur and the folder opens correctly. Thank you, Steffen, for the help! -David
Seemingly Similar Threads
- Problem: mail moved by thunderbird script is invisible to mail clients, but in cur directory
- Sieve permissions issue following update
- Sieve permissions issue following update
- Sieve permissions issue following update [solved]
- Problem: mail moved by thunderbird script is invisible to mail clients, but in cur directory