config.sample.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. // set your time zone:
  3. date_default_timezone_set('Europe/Paris');
  4. // set locale (see supported locales: https://github.com/fightbulc/moment.php#switch-locale)
  5. $config['locale'] = 'en_US';
  6. // enable in production:
  7. error_reporting(0);
  8. // enable while testing:
  9. //ini_set('display_errors', 1);
  10. //ini_set('display_startup_errors', 1);
  11. //error_reporting(E_ALL);
  12. // Change IMAP settings (check SSL flags on http://php.net/manual/en/function.imap-open.php)
  13. $config['imap']['url'] = '{imap.example.com:993/imap/ssl}INBOX';
  14. $config['imap']['username'] = "myuser";
  15. $config['imap']['password'] = "mypassword";
  16. // For gmail you can use '{imap.gmail.com:993/imap/ssl}INBOX'
  17. // and follow the troubleshooting at:
  18. // https://stackoverflow.com/a/25238515/79461
  19. // email domains, usually different from imap hostname:
  20. $config['domains'] = array('mydomain.com', 'example.com');
  21. // When to delete old messages?
  22. $config['delete_messages_older_than'] = '30 days ago';
  23. // Mails to those usernames can not be accessed:
  24. $config['blocked_usernames'] = array('root', 'admin', 'administrator', 'hostmaster', 'postmaster', 'webmaster');
  25. // Mails are usually show as Text and only if not available as HTML. You can turn this around to prefer HTML over text.
  26. $config['prefer_plaintext'] = true;