Bjoern | 15 Dec 2005 18:45
Favicon
Gravatar

offlineimap and local courier-imap

Hello, 
i want to use offlineimap with a local courier-imap server but have some
problems with the folder naming. I know the command from the documentation:

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

But it doesn't work.

I get a lot of error messages like:
imap: imapsplit() called with input: (\HasNoChildren) "." "INBOX.foo.bar"
imap: imapsplit() returning: ['(\\HasNoChildren)', '"."', '"INBOX.foo.bar"']
imap: imapsplit() called with input: \HasNoChildren
imap: imapsplit() returning: ['\\HasNoChildren']
imap: dequote() called with input: "INBOX.foo.bar"
imap: dequote() returning: INBOX.foo.bar
imap: dequote() called with input: INBOX.foo.bar

I think the problem is that i have a deeper folder structures, but how
can i make offlineimap work with this structures?

Or can you recommend another imap-server who doesn't need the '.' in
front of every folder name?

Thanks
Bjoern

John Goerzen | 15 Dec 2005 19:46
Favicon

Re: offlineimap and local courier-imap

On Thu, Dec 15, 2005 at 06:45:47PM +0100, Bjoern wrote:
> Hello, 
> i want to use offlineimap with a local courier-imap server but have some
> problems with the folder naming. I know the command from the documentation:

Are you saying that you are pointing offlineimap at the local IMAP
server, and having it communicate directly with it, or that you are
wanting OfflineIMAP to generate files with a compatible naming scheme?

> I get a lot of error messages like:

Which server are these from?

Bjoern | 15 Dec 2005 19:58
Favicon
Gravatar

Re: offlineimap and local courier-imap

John Goerzen <jgoerzen <at> complete.org> wrote:
> Are you saying that you are pointing offlineimap at the local IMAP
> server, and having it communicate directly with it, or that you are
> wanting OfflineIMAP to generate files with a compatible naming scheme?

until now i have tried to generate files with a compatible naming
scheme with offlineimap. As i understood this is the only way, or can
offlineimap communicate directly with the local imap-server?

This is my config:

[general]
accounts = fastmail
ui = Curses.Blinkenlights
maxsyncaccounts = 3

[Account fastmail]
localrepository = MailLocal
remoterepository = MailRemote

[Repository MailLocal]
type = Maildir
localfolders = ~/Maildir
sep = /

[Repository MailRemote]
type = IMAP
ssl = yes
remotehost = mail.messagingengine.com
remoteuser = xxx
(Continue reading)

John Goerzen | 15 Dec 2005 20:25
Favicon

Re: offlineimap and local courier-imap

On Thu, Dec 15, 2005 at 07:58:09PM +0100, Bjoern wrote:
> John Goerzen <jgoerzen <at> complete.org> wrote:
> > Are you saying that you are pointing offlineimap at the local IMAP
> > server, and having it communicate directly with it, or that you are
> > wanting OfflineIMAP to generate files with a compatible naming scheme?
> 
> until now i have tried to generate files with a compatible naming
> scheme with offlineimap. As i understood this is the only way, or can
> offlineimap communicate directly with the local imap-server?

Yes, OfflineIMAP can talk to an IMAP server on both ends.  That may be
the easiest for you.

-- John

Bjoern | 15 Dec 2005 21:09
Favicon
Gravatar

Re: offlineimap and local courier-imap

John Goerzen <jgoerzen <at> complete.org> wrote:
> Yes, OfflineIMAP can talk to an IMAP server on both ends.  That may be
> the easiest for you.

thank you, works great!

if someone will have the same problem, i have just changed my config
to:

[general]
accounts = fastmail
ui = Curses.Blinkenlights
maxsyncaccounts = 3

[Account fastmail]
localrepository = MailLocal
remoterepository = MailRemote

[Repository MailLocal]
type = IMAP
remotehost = 127.0.0.1
remoteuser = xxx
remotepass = xxx

[Repository MailRemote]
type = IMAP
ssl = yes
remotehost = mail.messagingengine.com
remoteuser = xxx
remotepass = xxx
(Continue reading)

Kevin Geiss | 31 Dec 2005 20:00

problem with multiple accounts

I'm trying to use offlineimap with 2 different imap servers at the same time, my work email and my personal email.

here's my .offlineimaprc. my plan was to have it use both the ticketmaster and
desertsol  accounts when I'm at work or on the vpn, and just desertsol
otherwise. but when I use the 'accounts' line with 2 accounts, it only prompts
me for the password for the ticketmaster account. what am I missing?

I'm using the ubuntu package of offlineimap 4.0.10ubuntu1.

[general]
#accounts = ticketmaster, desertsol
accounts = desertsol

[Account ticketmaster]
localrepository = tm_maildir
remoterepository = tm_imap
autorefresh = 1.5

[Repository tm_maildir]
type = Maildir
localfolders = ~/tm_maildir

[Repository tm_imap]
type = IMAP
remotehost = lamail2.office.tmcs
remoteuser = "kevin geiss"

[Account desertsol]
localrepository = ds_maildir
remoterepository = ds_imap
(Continue reading)


Gmane