Complete.Org: Mailing Lists: Archives: offlineimap: January 2008:
Re: patch to prevent mkdir '.'
Home

Re: patch to prevent mkdir '.'

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: offlineimap@xxxxxxxxxxxx
Cc: "David L. Emerson" <demerson3x@xxxxxxxxxxxxx>
Subject: Re: patch to prevent mkdir '.'
From: John Goerzen <jgoerzen@xxxxxxxxxxxx>
Date: Thu, 3 Jan 2008 10:17:13 -0600

On Thu December 27 2007 1:52:27 pm David L. Emerson wrote:
> I was having trouble getting offlineimap to play nice with dovecot and
> kmail, and I ended up making an oddball nametrans that changes the name
> of the inbox folder to '.'
> dovecot_kmail_re = re.compile('^\.?(inbox[./])?', re.IGNORECASE)
> # fn is folder name
> def fix_dovecot_kmail (fn):
>     if fn.lower() in ('inbox', '.inbox', '.'):
>         return '.'
>     return dovecot_kmail_re.sub('.INBOX.', fn, 1)


OK, I'm a bit confused on this here...

Couldn't you point localfolders to the parent dir of your folder hierarchy, 
then have the name start with, say, "folders/" or "folders/.INBOX"?

I'm not sure the patch does the right thing.  What if the top-level Maildir 
really doesn't exist?  What error are you getting?




[Prev in Thread] Current Thread [Next in Thread]