Complete.Org: Mailing Lists: Archives: offlineimap: February 2003:
Re: Newbie questions
Home

Re: Newbie questions

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: John Goerzen <jgoerzen@xxxxxxxxxxxx>
Cc: offlineimap@xxxxxxxxxxxx
Subject: Re: Newbie questions
From: Randy Orrison <randy@xxxxxxxxxxx>
Date: Mon, 24 Feb 2003 21:47:19 +0000

On Sat, Feb 22, 2003 at 11:42:47AM -0600, John Goerzen wrote:
| On Fri, Feb 21, 2003 at 01:42:54PM -0000, Randy Orrison wrote:
| > Courier IMAP server, but couldn't get it to work.  I have folders that
| > look like this:
| >   ~/Maildir (my inbox)
| >   ~/Maildir/.MailingLists.debian-user
| >   ~/Maildir/.Trash
| 
| Right.  Courier uses this weird maddening scheme.  
| 
| I might suggest you try this approach:
| 
| Have OfflineIMAP sync into someplace like ~/Mailboxes.  Then set up Maildir
| with symlinks from things like ~/Maildir/.MailingLists.debian-user to
| ~/Mailboxes/INBOX.debian-user.

Ummm... that sounds painful to maintain with 79 folders at present...

| >   nametrans = lambda foldername: re.sub('^INBOX', '', foldername)
| > and got ... nothing!  Well, offlineimap connected to the server and told
| > me about the folders it found, but it didn't copy a single message.  (I'm
| > at work at present, so I can't give the exact output.)  Why didn't it do
| > anything?
| 
| That is indeed a mystery.  Can you run it with IMAP debug mode (-d imap) and
| let me know what happens?

It failed saying '' is an invalid folder name -- presumably what it got left
with with for INBOX.  I've done a few experiments and it's now working for
my subfolders using

  nametrans = lambda foldername: re.sub('^INBOX.', '.', foldername)

which obviously fails for INBOX (it leaves it alone).  Is there some easy
way that I can do both: change 'INBOX.foo' to '.foo' and 'INBOX' to '.'?
(I suppose I could do it with a real python function, but I don't know any
python at all.)

Thanks!

Randy


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