-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmail_copy.inc.php_dist
More file actions
27 lines (21 loc) · 1.06 KB
/
mail_copy.inc.php_dist
File metadata and controls
27 lines (21 loc) · 1.06 KB
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
<?php
date_default_timezone_set('America/Chicago');
// Must be an array, name or ip's of source servers
$config['src_servers'] = array('pop.myserver.com');
// Must be an array, name or ip's of destination servers
$config['dst_servers'] = array('imap1.yourserver.com','imap2.yourserver.com');
// This clears the destination box of ALL mail before attempting the copy
$config['clear_destination'] = false;
// This copies the mail without reguard for what's been copied in the past
$config['do_copy_anyway'] = false;
// Attempt to keep overall status in sync. Read the README before you use this
$config['attempt_sync'] = false;
//Ensure These Flags Are Syncd
$config['flags'] = array('flagged','answered','deleted','seen','draft');
//DB creds so we can save a history of copied messages
$config['db_dsn'] = array('phptype' => 'mysqli',
'username' => 'mailbox_copy_pass',
'password' => 'mailbox_copy_pass',
'hostspec' => 'db.myserver.com',
'database' => 'mailbox_copy_db');
?>