-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.offlineimaprc
28 lines (25 loc) · 1.04 KB
/
.offlineimaprc
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
[general]
accounts = Gmail
ui = TTYUI
[Account Gmail]
localrepository = Local
remoterepository = Remote
delete = true
sync_deletes = on
[Repository Local]
type = Maildir
# Choose the location of where the downloaded emails will be stored. Make sure it matches the directory in row 29 of the mail.sh file
localfolders = /root/Maildir
[Repository Remote]
type = Gmail
remotehost = imap.gmail.com
remoteuser = [email protected]
remotepass = securepassword
ssl = yes
sslcacertfile = /etc/ssl/certs/ca-certificates.crt
realdelete = yes
# Here you can choose the trusted senders by entering email addresses
# Every email address is separated by the character "|"
# If you have non-alphanumeric characters in the email address of the trusted senders (for example "."), make sure to escape them by preceding them with a backslash "\"
# The at "@" symbol does not need to be escaped with a backslash
nametrans = lambda folder: re.sub(r'^.*\(\(FROM "(email@mydomain\.com|second\_email@gmail\.com)"\)\).*$', 'INBOX.filtered', folder) if folder != 'INBOX' else 'INBOX'