Subversion Repositories sysadmin_scripts

Rev

Rev 38 | Rev 50 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 38 Rev 42
Line 1... Line 1...
1
%accounts = (
1
$config = {
2
   'me@example.org' => {
2
          'default' => {
-
 
3
                       'enabled' => 1,
-
 
4
                       'testing' => '1',
3
                              'source' => {
5
                       'source' => {
4
                                 'server'    => 'mail.example.org',
6
                                     'system' => [
5
                                 'username'  => 'me@example.org',
7
                                                   'Outbox',
6
                                 'password'  => 'SomeReallyCoolPassword',
8
                                                   'Sent Items',
7
                              },
9
                                                   'INBOX'
8
                              'target' => {
10
                                                 ],
9
                                 'server'    => 'archive.example.org',
11
                                     'server' => 'smtp.example.com',
-
 
12
                                     'ignore' => [
10
                                 'username'  => 'me_archive@example.org',
13
                                                   'Deleted Messages',
11
                                 'password'  => 'SomeReallyCoolPassword',
14
                                                   'Drafts',
12
                                 'hierarchy' => 'INBOX/%Y/%m/'
15
                                                   'Junk E-mail',
13
                              },
16
                                                   'Junk',
14
                              'age'    => floor(365*1.5), # 18 months
17
                                                   'Trash'
-
 
18
                                                 ],
15
                              'ignore' => [ 'ThisIsSpam','ThisIsNOTSpam', 'ToProcess' ],
19
                                     'age' => '18M',
16
                              'deleteOnSuccess' => 1,
20
                                     'deleteOnSuccess' => '1',
17
                              'deleteEmptyFolders' => 1,
21
                                     'deleteEmptyFolders' => '1'
18
                             },
22
                                   },
19
   'me2@example.org' => {
-
 
20
                              'source' => {
23
                       'target' => {
21
                                 'server'    => 'mail.example.org',
24
                                   'server' => 'archive.example.com',
22
                                 'username'  => 'me2@example.org',
25
                                   'hierarchy' => '<path>'
23
                                 'password'  => 'SomeReallyCoolPassword',
26
                                 },
24
                              },
27
                     },
-
 
28
          'accounts' => {
25
                              'target' => {
29
                          'user@example.com' => {
26
                                 'server'    => 'mail.example.org',
30
                                                  'testing' => '1',
27
                                 'username'  => 'me2_archive@example.org',
31
                                                  'source' => {
28
                                 'password'  => 'SomeReallyCoolPassword',
32
                                                                'system' => [
-
 
33
                                                                              'Trash'
-
 
34
                                                                            ],
-
 
35
                                                                'server' => 'smtp.example.com',
-
 
36
                                                                'username' => 'user@example.com',
29
                                 'hierarchy' => ''
37
                                                                'age' => '1Y',
-
 
38
                                                                'password' => 'imap password',
-
 
39
                                                                'ignore' => [
-
 
40
                                                                              'ThisIsSpam',
-
 
41
                                                                              'ThisIsNOTSpam',
-
 
42
                                                                              'ToProcess',
-
 
43
                                                                            ],
-
 
44
                                                                'deleteEmptyFolders' => '1',
-
 
45
                                                                'deleteOnSuccess' => '0'
30
                              },
46
                                                              },
31
                              'age'    => 365*2, # two years
47
                                                  'target' => {
32
                              'ignore' => [ 'ThisIsSpam','ThisIsNOTSpam', 'Archives', 'Archive' ],
48
                                                              'server' => 'smtp.dailydata.net',
-
 
49
                                                              'hierarchy' => '<path>^<year>^<month>',
-
 
50
                                                              'username' => 'user_archive@archive.example.com',
-
 
51
                                                              'password' => 'imap password'
-
 
52
                                                            },
33
                              'deleteOnSuccess' => 1,
53
                                                  'enabled' => 1,
-
 
54
                                                  'age' => '1.5Y'
34
                              'deleteEmptyFolders' => 1,
55
                                                }
35
                             },
56
                        }
36
               );
57
        };