folders not visible on copied mail folders

Steffen Kaiser skdovecot at inf.h-brs.de
Tue Jul 17 09:06:24 EEST 2018


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 16 Jul 2018, Mark Foley wrote:

> We had a user quit recently.  Three days ago I copied his entire Maildir folder to another user
> to that user's Maildir/.JoesEmail.  I changed ownership and made the permission 'chmod -R
> og-rwx .', just like all the other files/directories of the new owner.  This didn't work to show
> the new folder.  Today, in his Thunderbird client, I subscribed to the 'JoesEmail' folder.  I
> restarted dovecot and restarted Thunderbird.
>
> In Thunderbird, the 'JoesEmail' folder now shows, but it is empty and shows none of the
> subordinate mail folders.  I ran 'doveadm index -u newowner JoesEmail' and
> 'doveadm force-resync -u newowner JoesEmail'.  This didn't help.
>
> I did this once before with a previous user who quit and only changed ownership, no
> subscribing, no doveadm, and that worked.
>
> What am I doing wrong?

Your description might be interpreted one way or another, esp. "copied his 
entire Maildir folder ... to that user's Maildir/.JoesEmail".

Also, it depends on how you have configured mail_location.

If this means that you have:
Maildir/.JoesEmail/{new,cur,tmp} 
Maildir/.JoesEmail/.mailbox/{new,cur,tmp} 
Maildir/.JoesEmail/.mailbox.submailbox/{new,cur,tmp}
now, that will clash with the standard Maildir format: 
https://wiki2.dovecot.org/MailboxFormat/Maildir

You would need to move the subfolders with a leading dot of .JoesEmail 
into:
Maildir/.JoesEmail/{new,cur,tmp} 
Maildir/.JoesEmail.mailbox/{new,cur,tmp} 
Maildir/.JoesEmail.mailbox.submailbox/{new,cur,tmp}

If you use :LAYOUT=fs to mail_location, .JoesEmail should spell JoesEmail

Subscription is needed only, if the mail client "displays subscribed 
folders only" or does not "display all folders". The meaning of the 
setting varies from client to client.

Another way would to keep the other account and share it via ACLs: 
https://wiki2.dovecot.org/SharedMailboxes/Shared


- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEVAwUBW02HYMQnQQNheMxiAQKykggAsmr3CfQNaw0K+vx/OhyH5VUbJ/RI5vvG
92ZmNdrkQf0qB8/NADCljz7vYa5aRGFlEjOjEn5Piww6238uQBce/m/aN1v7ax4+
asF22sPF5G+Q2DZhBVvm4sGrWvgzNt2xhPF3jedF0oRZ5PZ0GEH88ZO1JEy/Xj/p
1IJuFlU8b8kUNDmaR2cZcIucJLBp7067UJWY/4VPfA19yK9HJKIY0IkeDeFBG/pT
Sg7Au9MiiIxxhmqRbmOi4nbUkc8mZ9WpCAxEVhDIDeOjn8d+o/xzJ7Cdv9EA2Rj4
1ViL2ET0yIsaiSvL95sMr3kO0eRutAXP6aHV5arjfGkXQWDD5zthmA==
=gn2m
-----END PGP SIGNATURE-----


More information about the dovecot mailing list