read-only remove account for one-way sync
Tom Fernandes
anyaddress at gmx.net
Thu Mar 22 14:58:55 GMT 2012
Hi,
I would like to one-way-sync an account from an old courier server (remote:imap)
to dovecot (local:maildir). i.e. if delete or move some messages on the local
repo I would like to have an exact copy of the remote repo locally again after
doing the sync.
When using "readonly = TRUE" in the remote repo I would expect offlineimap not
to try to write either mails nor folders to the remote repo. From looking at the
logs it does try to though.
It also seems to not sync anything (remote -> local) like this. I deleted some
mails on the local repo (via IMAP and filesystem) and when running offlineimap
it does not copy the mails from remote back to local again.
Is this a bug or am I misunderstanding or missing something?
warm regards,
Tom
------------------------- config --------------------------------
[general]
accounts = tom
[Account tom]
localrepository = Local-tom
remoterepository = Remote-tom
[Repository Local-tom]
type = Maildir
localfolders = /var/vmail/example.com/tom/Maildir
[Repository Remote-tom]
read-only = True
type = IMAP
remotehost = 192.168.58.4
remoteuser = tom
remotepass = PASSWORD
nametrans = lambda foldername: re.sub('^INBOX\.*', '.', foldername)
folderfilter = lambda foldername: foldername not in ['INBOX.Spam',
'INBOX.Trash', 'INBOX.Papierkorb', 'INBOX.Gel&APY-schteObjekte']
maxconnections = 2
------------------------- log -----------------------------------
2012-03-22 15:48:06 INFO: OfflineImap 6.5.2.1 starting...
Python: 2.6.6 Platform: linux2
Args: /home/tom/migration/offlineimap-source/offlineimap/offlineimap.py -u
basic -c /home/tom/migration/offlineimap/tom -l /home/tom/migration/migration-
logs/tom
2012-03-22 15:48:06 INFO: *** Processing account tom
2012-03-22 15:48:06 INFO: Establishing connection to 192.168.58.4:143
2012-03-22 15:48:06 INFO: Creating new IMAP folder '.Webmailer.Trash' on server
Remote-tom
2012-03-22 15:48:06 INFO: ERROR: Creating folder .Webmailer.Trash on repository
Remote-tom
Folder '.Webmailer.Trash'[Remote-tom] could not be created. Server responded:
('NO', ['Invalid mailbox name.'])
2012-03-22 15:48:07 INFO: ERROR: Folder '.Webmailer.Trash'[Remote-tom] could not
be created. Server responded: ('NO', ['Invalid mailbox name.'])
2012-03-22 15:48:07 INFO: *** Finished account 'tom' in 0:00
2012-03-22 15:48:07 WARNING: ERROR: Exceptions occurred during the run!
2012-03-22 15:48:07 WARNING: ERROR: Creating folder .Webmailer.Trash on
repository Remote-tom
Folder '.Webmailer.Trash'[Remote-tom] could not be created. Server responded:
('NO', ['Invalid mailbox name.'])
2012-03-22 15:48:07 WARNING: ERROR: Folder '.Webmailer.Trash'[Remote-tom] could
not be created. Server responded: ('NO', ['Invalid mailbox name.'])
More information about the OfflineIMAP-project
mailing list