summaryrefslogtreecommitdiff
path: root/.config/offlineimaprc
blob: d027001e21521d103cc7ac00a0726162077f2b06 (plain)
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
# -*- Mode: Conf -*-
[general]
accounts = ATT,Purdue

## AT&T ###############################################################

[Account ATT]
localrepository = Local-Main
remoterepository = Remote-SBCGlobal

[Repository Local-Main]
type = Maildir
localfolders = ~/Maildir
sep = .
folderfilter = lambda foldername: not re.search('(Trash|Del|-old|Draft)', foldername)
# transforms local -> remote
nametrans = lambda foldername: re.sub('^$', 'Inbox', re.sub('^'+re.escape('%(sep)s'), '', foldername))

[Repository Remote-SBCGlobal]
type = IMAP
ssl = yes
cert_fingerprint = a6ee8d759eb76dafacffffc47c4507d51f444984
remotehost = imap.mail.yahoo.com
remoteuser = lukeshu@sbcglobal.net
folderfilter = lambda foldername: not re.search('(Trash|Del)', foldername)

# transforms remote -> local
# we must assume that sep=/ on the remote IMAP server.
nametrans = lambda foldername: '/'+re.sub('^Inbox$', '', foldername)

## Purdue ############################################################

[Account Purdue]
localrepository = Local-Purdue
remoterepository = Remote-Purdue

[Repository Local-Purdue]
type = Maildir
localfolders = ~/Maildir.purdue
sep = .
folderfilter = lambda foldername: re.search('INBOX', foldername)

[Repository Remote-Purdue]
type = IMAP
ssl = yes
cert_fingerprint = 2189e7d568d93352fcdccaa24137856191703c4a
remotehost = mymail.purdue.edu
remoteuser = shumakl
folderfilter = lambda foldername: re.search('INBOX', foldername)