Hi Eric,
Post by Eric S FragaAll the proposed solutions require local imap mirroring if I understand
correctly. This is an appealing approach for a number of
reasons. However, I have been spectacularly unsuccessful in getting
either offlineimap or isync to synchronise with an MS Exchange
server. I get filename errors or the transfer simply quits without ever
managing to complete the first synchronisation. (I should nte that I
haven't tried doing this in over a year now... maybe things have
improved?) Has anybody here managed it?
I use offlineimap it for gmail (works), iCloud (works) and a university
accout where they are running ... Exchange server.
Below is the relevant part of my .offlineimaprc file.
My offlineimap synchs to a local dovecot server (lucerne indexing
working!) and puts all folders from this account into a folder named
SUN.
I do the same for my other accounts, so I easily know which ones are
From which account.
But my guess is that the configuration of the Exchange server is probably
different - but if you use imap access at the moment, it should work.
Cheers,
Rainer
--8<---------------cut here---------------start------------->8---
## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
## %% SUN %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
[Repository LocalSUN]
type = IMAP
remotehost = localhost
remoteuser = MYUSERNAME
remotepasseval = get_keychain_pass(account="MYUSERNAME")
holdconnectionopen = yes
maxconnections = 3
nametrans = lambda folder: re.sub('^SUN.', '', folder)
folderfilter = lambda folder: folder.startswith('SUN')
keepalive = 60
holdconnectionopen = yes
[Repository RemoteSUN]
type = IMAP
remotehost = imap.sun.ac.za
# port = 143
remoteuser = MYUSERNAME
remotepasseval = get_keychain_pass(account="MYUSERNAME")
######
maxconnections = 1
nametrans = lambda foldername: 'SUN.' + foldername
######
folderfilter = lambda folder: folder in ['INBOX']
## For now:
# readonly = true
# createfolders = false
######
keepalive = 60
holdconnectionopen = yes
[Account SUN]
localrepository = LocalSUN
remoterepository = RemoteSUN
######
status_backend = sqlite
######
# postsynchook = ionice -c 3 chrt --idle 0 /bin/sh -c "notmuch new"
# postsynchook = ionice -c 3 chrt --idle 0 /bin/sh -c "notmuch new && afew --tag --verbose --new"
######
######
## For daemon mode
# Minutes between syncs
autorefresh = 2
# Number of quick-syncs between autorefreshes. Quick-syncs do not update if the
# only changes were to IMAP flags
quick = 10
--8<---------------cut here---------------end--------------->8---
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982