Moving Maildir folders
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.
Nevertheless, the curuser cannot see this new olduser folder (which should be at the same level as Inbox, Junk Mail, etc.). I did manually add olduser to the curuser/Maildir/subscriptions file, but still nothing.
So, what did I do wrong and how do I fix it?
THX -- Mark
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"
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
How did you verify that dovecot doesn't show these folders? Couldn't this be a client problem? In Thunderbird e.g. it might be necessary to update the list of displayed folders.
Am 16. Juli 2016 19:07:39 MESZ, schrieb Mark Foley mfoley@ohprs.org:
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
-- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Hey!! It is now showing the former users' folders at the top level of the current user. Great! Perhaps dovecot just needed time to "index" the new messages? Anyway, Luigi's suggestion on moving and renaming the folders apparently worked.
Thanks!!!! --Mark
-----Original Message-----
Subject: Re: Moving Maildir folders From: Frank-Ulrich Sommer f-u.s@gmx.net Date: Sat, 16 Jul 2016 20:41:10 +0200 To: dovecot@dovecot.org
How did you verify that dovecot doesn't show these folders? Couldn't this be a client problem? In Thunderbird e.g. it might be necessary to update the list of displayed folders.
Am 16. Juli 2016 19:07:39 MESZ, schrieb Mark Foley mfoley@ohprs.org:
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
-- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Not quite there yet. The folders show up, but I cannot see the mail inside the folders unless (in the Thunderbird client) I uncheck the setting "Show only subscribed folders". Still, the top-level folder is shown as grayed-out/italics as well as the the sub-folder INBOX. All other sub-folder at the same level as INBOX are not grayed-out, nor are folders subordinate to INBOX:
user@mydom.org <-- topmost "real" account folder
+Inbox
Drafts
Templates
send Items
Junk E-mail
Deleted Items
+bpatterson <-- added Maildir folders from former user, grayed-out, italics
+INBOX <-- grayed out, italic
Payabled <-- not grayed
Health Care <-- not grayed
:
:
Sent <-- not grayed
Sent Items <-- not grayed
Templates <-- not grayed
Trash <-- not grayed
Mozilla has a reference to this phenomenon http://kb.mozillazine.org/Grey_italic_folders, but this seems to have to do with GMAIL accounts. Mine is a local IMAP server and the link has no apparent remedy.
Furthermore, if I attempt to delete e.g. "Trash" I get an error, presumably from Dovecot: "The current command did not succeed. The mail server for account user@mydom.org responded: [ALREADYEXISTS] Target mailbox already exists." Seem like an odd error when trying to delete.
My theory is that if I can designated these folders as 'subcribed' everything would work normally. I don't know if that's true. I've tried added these folders to the 'subscriptions' file in the user's Maildir folder, an excerpt of which:
INBOX.Directed Brokerage INBOX.Directed Brokerage.Abel Noser INBOX.Investments-Active.Kayne INBOX.Pending - Open Projects Deleted Items.Oath INBOX.Board Info.New Trustee-Oath of Office INBOX.Rule Filing-Rule Changes 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
where the 1st 7 listed are part of the user's existing list and the next ones are what I added for the former user's mail folders. This did not work.
Ideas?
--Mark
-----Original Message----- From: Mark Foley mfoley@ohprs.org Date: Sat, 16 Jul 2016 15:05:33 -0400 Organization: Ohio Highway Patrol Retirement System To: dovecot@dovecot.org Subject: Re: Moving Maildir folders
Hey!! It is now showing the former users' folders at the top level of the current user. Great! Perhaps dovecot just needed time to "index" the new messages? Anyway, Luigi's suggestion on moving and renaming the folders apparently worked.
Thanks!!!! --Mark
-----Original Message-----
Subject: Re: Moving Maildir folders From: Frank-Ulrich Sommer f-u.s@gmx.net Date: Sat, 16 Jul 2016 20:41:10 +0200 To: dovecot@dovecot.org
How did you verify that dovecot doesn't show these folders? Couldn't this be a client problem? In Thunderbird e.g. it might be necessary to update the list of displayed folders.
Am 16. Juli 2016 19:07:39 MESZ, schrieb Mark Foley mfoley@ohprs.org:
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
-- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Am 17.07.2016 um 02:36 schrieb Mark Foley:
Not quite there yet. The folders show up, but I cannot see the mail inside the folders unless (in the Thunderbird client) I uncheck the setting "Show only subscribed folders". Still, the top-level folder is shown as grayed-out/italics as well as the the sub-folder INBOX. All other sub-folder at the same level as INBOX are not grayed-out, nor are folders subordinate to INBOX:
user@mydom.org <-- topmost "real" account folder +Inbox Drafts Templates send Items Junk E-mail Deleted Items +bpatterson <-- added Maildir folders from former user, grayed-out, italics +INBOX <-- grayed out, italic Payabled <-- not grayed Health Care <-- not grayed : : Sent <-- not grayed Sent Items <-- not grayed Templates <-- not grayed Trash <-- not grayed
Mozilla has a reference to this phenomenon http://kb.mozillazine.org/Grey_italic_folders, but this seems to have to do with GMAIL accounts. Mine is a local IMAP server and the link has no apparent remedy.
Furthermore, if I attempt to delete e.g. "Trash" I get an error, presumably from Dovecot: "The current command did not succeed. The mail server for account user@mydom.org responded: [ALREADYEXISTS] Target mailbox already exists." Seem like an odd error when trying to delete.
My theory is that if I can designated these folders as 'subcribed' everything would work normally. I don't know if that's true. I've tried added these folders to the 'subscriptions' file in the user's Maildir folder, an excerpt of which:
INBOX.Directed Brokerage INBOX.Directed Brokerage.Abel Noser INBOX.Investments-Active.Kayne INBOX.Pending - Open Projects Deleted Items.Oath INBOX.Board Info.New Trustee-Oath of Office INBOX.Rule Filing-Rule Changes 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
where the 1st 7 listed are part of the user's existing list and the next ones are what I added for the former user's mail folders. This did not work.
Ideas?
--Mark Hi Mark,
Try to subscribe in thundebird via your accounts right click context menu. The greyed out folders may not contain mails (missing .cur etc. suubfolders). Sometimes it is neccessary to clean the ImapMail folder in the thunderbird user profile (as an last resort).
achim~
On Sun, 17 Jul 2016 03:44:05 +0200 Achim Gottinger achim@ag-web.biz wrote:
Am 17.07.2016 um 02:36 schrieb Mark Foley:
Not quite there yet. The folders show up, but I cannot see the mail inside the folders unless (in the Thunderbird client) I uncheck the setting "Show only subscribed folders". Still, the top-level folder is shown as grayed-out/italics as well as the the sub-folder INBOX. All other sub-folder at the same level as INBOX are not grayed-out, nor are folders subordinate to INBOX:
user@mydom.org <-- topmost "real" account folder +Inbox Drafts Templates send Items Junk E-mail Deleted Items +bpatterson <-- added Maildir folders from former user, grayed-out, italics +INBOX <-- grayed out, italic Payabled <-- not grayed Health Care <-- not grayed : : Sent <-- not grayed Sent Items <-- not grayed Templates <-- not grayed Trash <-- not grayed
Mozilla has a reference to this phenomenon http://kb.mozillazine.org/Grey_italic_folders, but this seems to have to do with GMAIL accounts. Mine is a local IMAP server and the link has no apparent remedy.
Furthermore, if I attempt to delete e.g. "Trash" I get an error, presumably from Dovecot: "The current command did not succeed. The mail server for account user@mydom.org responded: [ALREADYEXISTS] Target mailbox already exists." Seem like an odd error when trying to delete.
My theory is that if I can designated these folders as 'subcribed' everything would work normally. I don't know if that's true. I've tried added these folders to the 'subscriptions' file in the user's Maildir folder, an excerpt of which:
INBOX.Directed Brokerage INBOX.Directed Brokerage.Abel Noser INBOX.Investments-Active.Kayne INBOX.Pending - Open Projects Deleted Items.Oath INBOX.Board Info.New Trustee-Oath of Office INBOX.Rule Filing-Rule Changes 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
where the 1st 7 listed are part of the user's existing list and the next ones are what I added for the former user's mail folders. This did not work.
Ideas?
--Mark Hi Mark,
Try to subscribe in thundebird via your accounts right click context menu. The greyed out folders may not contain mails (missing .cur etc. suubfolders). Sometimes it is neccessary to clean the ImapMail folder in the thunderbird user profile (as an last resort).
achim~
From dovecot-bounces@dovecot.org Sat Jul 16 21:44:27 2016 X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.98.6 at mail X-Spam-Checker-Version: SpamAssassin 3.3.2-_revision__1.20__ (2011-06-06) on mail.hprs.local X-Spam-Level: X-Spam-Status: No, score=-102.7 required=3.0 tests=LOCAL_FROM_WORDS5, USER_IN_WHITELIST,USER_IN_WHITELIST_TO autolearn=no version=3.3.2-_revision__1.20__ X-Original-To: dovecot@dovecot.org Delivered-To: dovecot@dovecot.org Subject: Re: Moving Maildir folders To: dovecot@dovecot.org From: Achim Gottinger achim@ag-web.biz Date: Sun, 17 Jul 2016 03:44:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0 Content-Type: text/plain; charset=windows-1252; format=flowed X-Authenticated-Sender: achim@ag-web.biz X-Virus-Scanned: Clear (ClamAV 0.99.2/21916/Sun Jul 17 00:49:18 2016) X-BeenThere: dovecot@dovecot.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Dovecot Mailing List dovecot@dovecot.org List-Id: Dovecot Mailing List
List-Unsubscribe: http://dovecot.org/cgi-bin/mailman/options/dovecot, mailto:dovecot-request@dovecot.org?subject=unsubscribe List-Archive: http://dovecot.org/pipermail/dovecot/ List-Post: mailto:dovecot@dovecot.org List-Help: mailto:dovecot-request@dovecot.org?subject=help List-Subscribe: http://dovecot.org/cgi-bin/mailman/listinfo/dovecot, mailto:dovecot-request@dovecot.org?subject=subscribe Errors-To: dovecot-bounces@dovecot.org Sender: "dovecot" dovecot-bounces@dovecot.org X-Spam-Report:
- -100 USER_IN_WHITELIST From: address is in the user's white-list
- 3.3 LOCAL_FROM_WORDS5 From contains words in reject list
- -6.0 USER_IN_WHITELIST_TO User is listed in 'whitelist_to'
Am 17.07.2016 um 02:36 schrieb Mark Foley:
Not quite there yet. The folders show up, but I cannot see the mail inside the folders unless (in the Thunderbird client) I uncheck the setting "Show only subscribed folders". Still, the top-level folder is shown as grayed-out/italics as well as the the sub-folder INBOX. All other sub-folder at the same level as INBOX are not grayed-out, nor are folders subordinate to INBOX:
user@mydom.org <-- topmost "real" account folder +Inbox Drafts Templates send Items Junk E-mail Deleted Items +bpatterson <-- added Maildir folders from former user, grayed-out, italics +INBOX <-- grayed out, italic Payabled <-- not grayed Health Care <-- not grayed : : Sent <-- not grayed Sent Items <-- not grayed Templates <-- not grayed Trash <-- not grayed
Mozilla has a reference to this phenomenon http://kb.mozillazine.org/Grey_italic_folders, but this seems to have to do with GMAIL accounts. Mine is a local IMAP server and the link has no apparent remedy.
Furthermore, if I attempt to delete e.g. "Trash" I get an error, presumably from Dovecot: "The current command did not succeed. The mail server for account user@mydom.org responded: [ALREADYEXISTS] Target mailbox already exists." Seem like an odd error when trying to delete.
My theory is that if I can designated these folders as 'subcribed' everything would work normally. I don't know if that's true. I've tried added these folders to the 'subscriptions' file in the user's Maildir folder, an excerpt of which:
INBOX.Directed Brokerage INBOX.Directed Brokerage.Abel Noser INBOX.Investments-Active.Kayne INBOX.Pending - Open Projects Deleted Items.Oath INBOX.Board Info.New Trustee-Oath of Office INBOX.Rule Filing-Rule Changes 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
where the 1st 7 listed are part of the user's existing list and the next ones are what I added for the former user's mail folders. This did not work.
Ideas?
--Mark Hi Mark,
Try to subscribe in thundebird via your accounts right click context menu. The greyed out folders may not contain mails (missing .cur etc. suubfolders). Sometimes it is neccessary to clean the ImapMail folder in the thunderbird user profile (as an last resort).
achim~
These could possibly be excellent suggestions, but I've no idea how to do what you suggest. What do you mean "subscribe via [my] accounts right click context menu"?
How would I "clean the ImapMail folder"?
THX -- Mark
Am 2016-07-17 um 02:36 schrieb Mark Foley:
Not quite there yet. The folders show up, but I cannot see the mail inside the folders unless (in the Thunderbird client) I uncheck the setting "Show only subscribed folders". Still, the top-level folder is shown as grayed-out/italics as well as the the sub-folder INBOX. All other sub-folder at the same level as INBOX are not grayed-out, nor are folders subordinate to INBOX:
user@mydom.org <-- topmost "real" account folder +Inbox Drafts Templates send Items Junk E-mail Deleted Items +bpatterson <-- added Maildir folders from former user, grayed-out, italics +INBOX <-- grayed out, italic Payabled <-- not grayed Health Care <-- not grayed : : Sent <-- not grayed Sent Items <-- not grayed Templates <-- not grayed Trash <-- not grayed
Furthermore, if I attempt to delete e.g. "Trash" I get an error, presumably from Dovecot: "The current command did not succeed. The mail server for account user@mydom.org responded: [ALREADYEXISTS] Target mailbox already exists." Seem like an odd error when trying to delete.
Ideas?
With Maildir and path separator "." one can have incomplete paths: eg. bpatterson.INBOX.2011 will say that there is 2011 within INBOX within bpatterson -- while it is possible, that both bpatterson and bpatterson.INBOX do not exist! Thunderbird will render the missing folders gray in the UI, you probably cannot subscribe to those, even from the subscribe dialogue. You should be able to create them though.
Also, you cannot delete a folder, when there is already a folder with the same name inside of your Trash, i.e. Trash.Trash?
-- peter
Peter Chiochetti wrote on 17/07/2016 11:01:
With Maildir and path separator "." one can have incomplete paths: eg. bpatterson.INBOX.2011 will say that there is 2011 within INBOX within bpatterson -- while it is possible, that both bpatterson and bpatterson.INBOX do not exist! Thunderbird will render the missing folders gray in the UI, you probably cannot subscribe to those, even from the subscribe dialogue. You should be able to create them though.
That is correct.
If you want to create the "path" Somename/Foo/Bar/Baz (as seen by the IMAP client), even if only Somename and Baz contains messages, you must have the entire "path", that is tour mailbox directory must contain the directories:
.Somename .Somename.Foo .Somename.Foo.Bar .Somename.Foo.Bar.Baz
Of course each of the directories will contain cur, tmp, new and Dovecot files
--
Ciao, luigi
/ +--[Luigi Rosa]-- \
Britain reveals plans for high-speed rail link that could get people the hell out of Scotland and into the civilized world in less than two hours. --fark.com
On Date: Sun, 17 Jul 2016 12:24:04 +0200 Luigi Rosa lists@luigirosa.com wrote:
Peter Chiochetti wrote on 17/07/2016 11:01:
With Maildir and path separator "." one can have incomplete paths: eg. bpatterson.INBOX.2011 will say that there is 2011 within INBOX within bpatterson -- while it is possible, that both bpatterson and bpatterson.INBOX do not exist! Thunderbird will render the missing folders gray in the UI, you probably cannot subscribe to those, even from the subscribe dialogue. You should be able to create them though.
That is correct.
If you want to create the "path" Somename/Foo/Bar/Baz (as seen by the IMAP client), even if only Somename and Baz contains messages, you must have the entire "path", that is tour mailbox directory must contain the directories:
.Somename .Somename.Foo .Somename.Foo.Bar .Somename.Foo.Bar.Baz
Of course each of the directories will contain cur, tmp, new and Dovecot files
Ciao, luigi
That was probably my problem. While I moved the entire Maildir structure from the old user's Maildir hierarchy, I just created
.bpatterson.Foo.Bar/ .bpatterson.Foo.raB/ etc
I never did create
.bpatterson/ .bpatterson.Foo/
etc.
Good to know. I'll sort that out better next time. Meanwhile, before reading this message, I created a new folder in Tbird, then dragged the folders out of the .bpatterson hierarchy to the new folder. That worked, but was a bit time consuming.
I supposed I was thrown off because the destination user's Maildir has no .INBOX/ directory, only:
.INBOX.this/ .INBOX.that/
but, I suppose INBOX is a special case since the rest of the top-level folders (Drafts, Templates, Sent Items, ...) do have directories. Next time!
Thanks --Mark
Mark Foley wrote on 18/07/2016 00:56:
I supposed I was thrown off because the destination user's Maildir has no .INBOX/ directory, only:
.INBOX.this/ .INBOX.that/
but, I suppose INBOX is a special case since the rest of the top-level folders (Drafts, Templates, Sent Items, ...) do have directories. Next time!
Creating the folders before is a good idea, if you are not familiar with Maildir structure
INBOX is the root dir of Maildir: if you look at the root dir, you will find the IMAP folders that begins with a "." AND cur,tmp,new dir: that three dirs are the INBOX
--
Ciao, luigi
/ +--[Luigi Rosa]-- \
That the automobile has practically reached the limit of its development is suggested by the fact that during the past year no improvements of a radical nature have been introduced. --Scientific American, 1909
On Jul 17, 2016, at 4:56 PM, Mark Foley mfoley@ohprs.org wrote:
.bpatterson.Foo.Bar/ .bpatterson.Foo.raB/ etc
I never did create
.bpatterson/ .bpatterson.Foo/
Neither of these are needed. The path delimiter for IMAP is a . And you do not put maildir folders under maildir folders.
INBOX is the top level maildir folder, and is not normally named INBOX on the filesystem.
Here’s the folder structure for one of my accounts:
drwx------ 5 1004 1004 512 May 22 2015 ,Junk drwx------ 5 1004 1004 512 Jul 18 02:14 .Archive drwxr-xr-x 5 1004 1004 512 Jun 26 13:25 .Archive.OLD drwx------ 5 1004 1004 512 Jul 18 02:15 .Drafts drwx------ 5 1004 1004 512 Jul 18 01:40 .Junk drwx------ 5 1004 1004 512 Jul 18 02:12 .Sent drwx------ 5 1004 1004 512 Jun 9 20:05 .Trash drwx------ 5 1004 1004 512 Jul 17 15:15 .bbedit drwx------ 5 1004 1004 512 Jul 18 01:47 .bind drwx------ 5 1004 1004 512 Jul 18 02:14 .dovecot drwx------ 5 1004 1004 512 Jul 18 02:14 .httpd drwx------ 5 1004 1004 512 Jul 18 01:47 .macosx drwx------ 5 1004 1004 512 Jul 18 01:47 .postfix drwx------ 5 1004 1004 512 Jul 18 01:40 .spamassassin drwx------ 5 1004 1004 512 Jul 18 01:40 .swift drwx------ 5 1004 1004 512 Jul 18 02:12 .tidbits drwx------ 5 1004 1004 512 Jul 19 2015 .tidbits.2014.archive drwxr-xr-x 2 1004 1004 512 Jun 15 15:00 cur -rw------- 1 1004 1004 44 Aug 19 2013 dovecot-keywords -rw------- 1 1004 1004 365 Jun 17 21:12 dovecot-uidlist -rw------- 1 1004 1004 8 Jul 18 01:45 dovecot-uidvalidity -rw------- 1 1004 1004 520 Jun 7 09:33 dovecot.index -rw------- 1 1004 1004 9824 Jul 17 14:18 dovecot.index.cache -rw------- 1 1004 1004 28008 Jul 3 09:45 dovecot.index.log -rw------- 1 1004 1004 3120 Jul 10 00:44 dovecot.mailbox.log -rw------- 1 1004 1004 4200 May 29 07:50 dovecot.mailbox.log.2 drwxr-xr-x 2 1004 1004 512 Jun 13 07:36 new -rw------- 1 1004 1004 43 Jul 10 00:43 subscriptions drwxr-xr-x 2 1004 1004 512 Jul 11 19:01 tmp
Notice that .tidbits.2104.archive is three levels down, and the middle level doesn’t exist on its own.
The folders new, tmp, and cur are the Maildir folders for INBOX.
-- Don't congratulate yourself too much, or berate yourself either. You choices are half chance; so are everybody else's.
From: "@lbutlr" kremels@kreme.com To: dovecot@dovecot.org Sent: Monday, July 18, 2016 9:19 AM Subject: Re: Moving Maildir folders
The folders new, tmp, and cur are the Maildir folders for INBOX.
Every subfolder has new,tmp and cur directories. Every subfolder is a Maildir.
From http://www.courier-mta.org/imap/README.maildirquota.html?rev=1.1 :
<< Each subdirectory is a fully-fledged Maildir of its own, that is you have .Important/tmp, .Important/new, and .Important/cur. Everything that applies to the main Maildir applies equally well to the subdirectory, including automatically cleaning up old files in tmp. A Maildir++ enhancement is that a message can be moved between folders and/or the main Maildir simply by moving/renaming the file (into the cur subdirectory of the destination folder). Therefore, the entire Maildir++ must reside on the same filesystem.
Within each subdirectory there's an empty file, maildirfolder. Its existence tells the mail delivery agent that this Maildir is a really a folder underneath a parent Maildir++.>>
Although this is from the courier website, it is a definition of the maildir structure which is a standard (it's not specific to courier).
Yassine.
participants (7)
-
@lbutlr
-
Achim Gottinger
-
chaouche yacine
-
Frank-Ulrich Sommer
-
Luigi Rosa
-
Mark Foley
-
Peter Chiochetti