offlineimap and Kmail

Written by schmart on August 9, 2009 – 2:21 pm

After using offlineimap a lot to backup my mailaccounts without having the mail accessible in KMail I’ve managed to see the backup in KMail
KDE version is KDE4.x, offlineimap is 6.1.2, Disto is ArchLinux and this is what I’ve done:
Setup of .offlineimaprc:

[general]
metadata = ~/.offlineimap
accounts = martin

[Account martin]
localrepository = martin_local
remoterepository = martin_remote

[Repository martin_local]
type = Maildir
localfolders = ~/Dokumente/MailBackup/MartinAtSchmart
sep = /

[Repository martin_remote]
type = IMAP
remotehost =
remoteuser =
remotepass =
maxconnections = 1

Run offlineimap.
Then:

  1. Create a folder named “Backup” in KMail/Local Folders
  2. go to ~/.kde4/share/apps/kmail/mail and create a symlink to ~/Dokumente/MailBackup/MartinAtSchmart with the name .Backup.directory
  3. Restart KMail

Now the mails should be accessible via the “Backup”-folder. If not try to rebuild the index (right-click on the folder name).


Tags: ,
Posted in Technisches | No Comments »