<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.30.3">
</HEAD>
<BODY>
On Fri, 2010-11-05 at 21:07 -0700, Dominic LoBue wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On Fri, Nov 5, 2010 at 7:42 AM, Philippe LeCavalier
<<A HREF="mailto:support@plecavalier.com">support@plecavalier.com</A>> wrote:
> Hi All,
>
> First post to this list...I was turned on to this project from a contact on
> the Evo mailing list when looking for more robust / scalable filtering and
> syncing options in Evo. I must say combining Offlineimap and IMAPfilter is
> *exactly* what I was looking for.
>
> that said, I do have a minor issue with namespace. When I create the maildir
> account in Evo it automatically creates an "Inbox" along with a few other
> folders. I've looked into nametrans and have managed to get what I want ie
> nametrans = lambda foldername: re.sub('^INBOX\.', '', foldername) but
> despite that I still end up with two inboxes (INBOX and Inbox). I don't know
> if I'm making any sense here perhaps I could provide a screenshot if nobody
> knows what I referring to. I should also mention that I agree this may be
> more of an Evo thing than an Offlineimap thing.
>
> Thanks in advance,
> Phil
> _______________________________________________
> OfflineIMAP-project mailing list
> <A HREF="mailto:OfflineIMAP-project@lists.alioth.debian.org">OfflineIMAP-project@lists.alioth.debian.org</A>
> <A HREF="http://lists.alioth.debian.org/mailman/listinfo/offlineimap-project">http://lists.alioth.debian.org/mailman/listinfo/offlineimap-project</A>
>
> OfflineIMAP homepage: <A HREF="http://software.complete.org/offlineimap">http://software.complete.org/offlineimap</A>
>

Here's the real question: do you really have multiple folders named
inbox with different capitalization on the IMAP server? Because if
there is, you do not want to change one name to another without
resolving the conflict first!
</PRE>
</BLOCKQUOTE>
Well, if I login to webmail I only see one mailbox. Also:<BR>
1 OK LOGIN Ok.<BR>
2 LIST<BR>
2 NO Error in IMAP command received by server.<BR>
2 LIST """%"<BR>
* LIST (\Marked \HasChildren) "." "INBOX"<BR>
2 OK LIST completed
<BLOCKQUOTE TYPE=CITE>
<PRE>

If there isn't, and there is nothing in the "Inbox" folder, then the
below configuration line will do what you want:
nametrans = lambda foldername: foldername == 'INBOX' and foldername.title()
</PRE>
</BLOCKQUOTE>
I did something yesterday that seems to have fixed the issue for the moment but your suggestion maybe be more 'proper'. I figured that since Courier IMAP defaults to INBOX as the root and all other folders are subs I could point Evo to INBOX as the root rather than just ~/Mail as I had done.<BR>
This fixed the display issue. Now I only have the one showing as "Inbox". If INBOX is truly the root then I'm not mising anything by starting the folder tree there right?<BR>
<BR>
Phil
<BLOCKQUOTE TYPE=CITE>
<PRE>

</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>