globals.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Constants, that don't rely on anything else in the module
  2. # Copyright (C) 2012- Sebastian Spaeth & contributors
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  17. from io import StringIO
  18. default_conf = StringIO("""[general]
  19. #will be set automatically
  20. metadata =
  21. accounts = test
  22. ui = quiet
  23. [Account test]
  24. localrepository = Maildir
  25. remoterepository = IMAP
  26. [Repository Maildir]
  27. Type = Maildir
  28. # will be set automatically during tests
  29. localfolders =
  30. [Repository IMAP]
  31. type=IMAP
  32. # Don't hammer the server with too many connection attempts:
  33. maxconnections=1
  34. folderfilter= lambda f: f.startswith('INBOX.OLItest') or f.startswith('INBOX/OLItest')
  35. """)