-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.offlineimap
55 lines (37 loc) · 1.13 KB
/
README.offlineimap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
* Send the emails
* Account on local computer
Host: 151.236.222.88
User: pybossa
* Get the emails to local computer
We want a tool that can automatically access the gmail account and
store all (new) messages on our local server.
Using offlineimap:
http://offlineimap.org/
mkdir -p ~/local/src
cd ~/local/src
git clone git://github.com/OfflineIMAP/offlineimap.git
offlineimap-git
Simple config file in ~/.offlineimaprc.
-----
[general]
accounts = SyriaSpeaking
[Account SyriaSpeaking]
localrepository = Local
remoterepository = Remote
[Repository Local]
type = Maildir
localfolders = ~/SyriaSpeakingGmail
[Repository Remote]
type = Gmail
remoteuser = [email protected]
remotepass = do_not_put_in_version_control
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
folderfilter = lambda folder: folder in ['INBOX']
-----
Then simply run script to get mail:
~/local/src/offlineimap-git/offlineimap.py
and it will download messages from gmail and put them in a Maildir
format in ~/pybossa/SyriaSpeakingGmail/INBOX/.
For now, you must enter gmail password to retrieve messages. If we are
sure about security.