<span style='font-family:Verdana'><span style='font-size:12px'><span style="font-family:Verdana"><span style="font-size:12px">----- Original Message -----</span></span><br />
<blockquote style="border-left: 1px solid #CCC; padding-left: 5px; margin-left: 5px; margin-bottom: 0px; margin-top: 0px; margin-right: 0px;" type="cite">
<p style="margin:0px; padding:0px;" >
<span style="font-family:Verdana"><span style="font-size:12px">From: awg1@gmx.com</span></span></p>
<p style="margin:0px; padding:0px;" >
<span style="font-family:Verdana"><span style="font-size:12px">Sent: 12/28/12 09:02 AM</span></span></p>
<p style="margin:0px; padding:0px;" >
<span style="font-family:Verdana"><span style="font-size:12px">To: offlineimap-project@lists.alioth.debian.org</span></span></p>
<p style="margin:0px; padding:0px;" >
<span style="font-family:Verdana"><span style="font-size:12px">Subject: folder structure and nametrans using Dovecot and Evolution</span></span></p>
<br />
<div>
<span style="font-family:Verdana"><span style="font-size:12px">I have the following folder structure on Dovecot:<br />
<br />
.INBOX<br />
.DRAFTS<br />
.SENT<br />
.FOLDER1<br />
.FOLDER1.SUBFOLDER1<br />
.FOLDER1.SUBFOLDER1.SUBFOLDER2<br />
etc<br />
.FOLDERN.SUBFOLDER1<br />
.FOLDERN.SUBFOLDER1.SUBFOLDER2<br />
<br />
When I do an initial sync using "offlineimap.conf.minimal" the leading period ('.') gets removed. This has the effect of removing the directory structure when I view mails with Evolution (and Thunderbird). So instead of, for example, FOLDER1 at the top level, then FOLDER1/SUBFOLDER1 and then FOLDER1/SUBFOLDER1/SUBFOLDER2 (where the subfolders are nested), I get a flat structure of three folders on the same level: FOLDER1, FOLDER1.SUBFOLDER1, FOLDER1.SUBFOLDER1, FOLDER1.SUBFOLDER1.SUBFOLDER2.<br />
<br />
It seem like the absence of a leading period is the problem (if I manually append one to a local folder, the directory structure reappears). I'm wondering though, why is the leading period being removed if I have no nametrans rules in place?<br />
<br />
Absent an answer to that question, I've tried dabbling with nametrans. I've added the following rule to the remote repository to add back the ".": "lambda f: "." + f". However I'm not sure regarding the reverse nametrans, the reason being my "forward" nametrans rule is not actually changing what's on the server, rather it's making an adjustment to conform with what's on the server (e.g: .FOLDER1 is synced as FOLDER1; this is "forward" transed to ".FOLDER1" which is already on the server). I've played around with some reverse trans rules, namely removing the period but this isn't what I want to do as it seems I should be leaving Dovecot's structure alone. Additionally, I keep getting the infinite folder creation warning.<br />
<br />
To summarise then:<br />
* why does the "." at the front of folder names get removed in the first place<br />
* if this is something I have to live with, what are the correct nametrans and reverse nametrans rules to deal with this.<br />
* I hesitate in adding this point but I should note, while Evolution and Thunderbird don't like the absence of a leading ".", when I use Mutt, it can't view the subfolders unless the leading "." is removed. However I'm thinking one thing at a time and best to get to the bottom of what's actually happening first<br />
<br />
P.S. I'm new to this but have spent the last two days trying to find an answer so, while this may suggest I'm a complete dunce, I would like to point out I've done a lot of reading and experimenting before making this post.</span></span><br />
<br />
</div>
</blockquote>
<p style="margin:0px; padding:0px;" >
<br />
<br />
Sorry for the second mail but I forget to mention, I've also tried using "sep = /" in the config file. These seems to work for an initial sync but if I try again, I get a message saying:<br />
<br />
"ERROR: Creating folder .Folder.subfolder.subfolder on repository Remote Folder '.Folder.subfolder.subfolder'[Remote] could not be created. Server responded: ('NO', ["Character not allowed in mailbox name: '.'"])"</p>
<br />
<br />
</span></span>