On Sat, 16 Jul 2016 08:53:27 +0200 Luigi Rosa lists@luigirosa.com wrote:
Mark Foley wrote on 16/07/2016 07:43:
Our office had a user leave. Another user is taking over her duties and needs reference to the departing user's email. I've copied that entire departed user's Maildir structure to the current user:
mv olduser/Maildir/.* curuser/Maildir/.olduser
I did change permission and ownership on curuser/Maildir/.olduser to be the target user. I did not bring over the olduser/Maildir/dovecot* files (indexes, subscriptions, etc.) as I thought that would be bad.
Maildir has no nested folders.
If you want a subtree structure in maildir you must create each folder at the first level
in the new user you must have something like:
.olduser.INBOX .olduser.Sent .olduser.Trash .olduser.Drafts .olduser.whatever
Each directory with tmp, newm cur subdirs only (ad dovecot files, of course)
--
Ciao, luigi
/ +--[Luigi Rosa]-- \
Understanding is a three-edged sword. --Kosh, "Deathwalker"
OK, I believe I've done as you suggested, but still nothing showing on the target users mail client. Here's what part of the Maildir looks like with the 1st set of folders belonging to the target user and those beginning with .bpatterson from the old user. Does this look right as you've advised? Perhaps I need to do something else?
.INBOX.Travel/ .INBOX.UPS/ .INBOX.US\ Bank/ .INBOX.United\ Health\ Care-Employee/ .INBOX.VRC/ .INBOX.Website/ .INBOX.Website.Mouse\ Pad\ Insert/ .INBOX.iLink/ .Junk\ E-mail/ .Sent\ Items/ .Templates/ .bpatterson.Deleted\ Items/ .bpatterson.Drafts/ .bpatterson.INBOX.2011\ Investment\ Confirmation\ Responses/ .bpatterson.INBOX.2011\ and\ 2012\ KCR\ Audit/ .bpatterson.INBOX.2012\ Investment\ Confirmation\ Responses/ .bpatterson.INBOX.2013\ Health\ Care\ Changes\ -\ Information/ .bpatterson.INBOX.2013\ Investment\ Confirmation\ Responses/
At the top level, the target user has (in email client):
Inbox Drafts Templates Sent Items Junk E-mail Deleted Items
I'm expecting to see "bpatterson" appear in that list.
Thanks --Mark