Re: patch to prevent mkdir '.'
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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?
- Re: patch to prevent mkdir '.',
John Goerzen <=
|
|