summaryrefslogtreecommitdiff
path: root/.config/imapfilter/accounts.lua
blob: 1eb6b177ccc9923c3651701cc059e265bf0e6cbe (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
-- function get_inria_handle()
--   return IMAP {
--     server = 'zimbra.inria.fr',
--     username = get_imap_username('inria'),
--     password = get_imap_password('inria'),
--     ssl = 'ssl3',
--   }
-- end

-- function get_ensl_handle()
--   return IMAP {
--     server = 'imaps.ens-lyon.fr',
--     username = get_imap_username('ensl'),
--     password = get_imap_password('ensl'),
--     ssl = 'ssl3',
--   }
-- end

function get_inria_handle()
  return IMAP {
    server   = 'localhost',
    username = 'inria',
    password = '',
    port     = 10143,
  }
end

function get_ensl_handle()
  return IMAP {
    server   = 'localhost',
    username = 'ens',
    password = '',
    port     = 10143,
  }
end

function get_archives_handle()
  return IMAP {
    server   = 'localhost',
    username = 'archives',
    password = '',
    port     = 10143,
  }
end