1 - Install offlineimap and mpack
Code:
sudo apt-get install offlineimap mpack
3- Create a text file and save it as ~/.offlineimaprc
This is the configuration file for offlineimap which will sync your Gmail with local maildir files, using IMAP. Add the following code to it:
Code:
[general]
accounts = GMail
ui = Noninteractive.Basic
[Account GMail]
localrepository = GMailLocalMaildirRepository
remoterepository = GMailServerRepository
[Repository GMailLocalMaildirRepository]
type = Maildir
localfolders = ~/mail/
[Repository GMailServerRepository]
type = IMAP
remotehost = imap.gmail.com
remoteuser = yourgmailaccount@gmail.com
remotepass = yourgmailpassword
ssl = yes
Code:
offlineimap && munpack /home/user/mail/LABEL/new/*
No comments:
Post a Comment