OfflineIMAP settings for King’s College London email account
Same as in the previous post … the information you need is in fact already available here, but if you want to just cut-and-paste this into your ~/.offlineimaprc, see below. (For those who don’t know, offlineimap is an incredibly useful tool that syncs local maildirs with IMAP accounts. You get all the benefits of being able to access mail remotely, from different machines, while getting the speed of local access, and being able to access all old mail while offline, because you in fact point your mail client at your local maildirs.)
For the stuff below, some settings are obviously optional or a matter of taste, man offlineimap. I’ll note just these:
- Replace YOURKCLLOGIN and YOURPASSWORD (duh)
localfolders = ~/maildir/kcl: This is you local maildir location, you’ll probably have to change that, and that folder must already exist before you run offlineimapfolderfilter = lambda foldername: foldername in ['INBOX']: This now just syncs your Inbox! I have this set because I actually archive mail to a different mail server. If you want to create IMAP folders on the KCL server, you’ll obviously have to omit this or fiddle with it — there seem to be quite a lot of folders there by default that seem to be related to MS exchange.
[Account kcl] localrepository = kcl_local remoterepository = kcl_remote autorefresh = 2 quick = 7 [Repository kcl_local] type = Maildir localfolders = ~/maildir/kcl [Repository kcl_remote] type = IMAP ssl = yes port = 993 maxconnections=2 remotehost = kclimap.kcl.ac.uk remoteuser = kclad\YOURKCLLOGIN remotepass = YOURPASSWORD folderfilter = lambda foldername: foldername in ['INBOX']
Addendum
I had holdconnectionopen = true in the settings for kcl_remote when I posted this. OfflineIMAP crashed a lot, and it seems when I take out this setting this happens a lot less.
March 21st, 2010 at 22:19
how do i setup outlook express to receive my kcl mail via imap?
March 22nd, 2010 at 11:57
Sorry, I don’t use Outlook.
March 28th, 2010 at 20:08
Thanks anyway. I managed to find out from purdue.edu