Commit Graph

27 Commits

Author SHA1 Message Date
Patrick Ulbrich
9c6798cb43 Fix mutf7 testcase 2019-10-28 19:43:01 +01:00
Patrick Ulbrich
f26c95f01b Also run '2to3 -W -n' on testcases 2019-10-28 19:38:15 +01:00
Patrick Ulbrich
d576a6ba7a Merge pull request #165 from tikank/accountmembers
Refactorings related to Account class
2018-06-01 17:41:30 +02:00
Patrick Ulbrich
f2ba86a48d Merge pull request #166 from tikank/get_id_fix
Get id fix
2018-06-01 17:37:23 +02:00
Patrick Ulbrich
21341c4b18 Merge pull request #167 from tikank/mailsyncer_tests
Test cases for MailSyncer class
2018-06-01 17:37:01 +02:00
Timo Kankare
f162f05b1e Updated copyright year. 2018-05-06 16:06:25 +03:00
Timo Kankare
af13a779ff Added test cases for AccountManager to load and save configuration with and without credential store. 2018-05-06 15:33:21 +03:00
Timo Kankare
44d9b41697 Added test cases for MailSyncer class. 2018-05-05 17:57:41 +03:00
Timo Kankare
5e332c9c9d Fixed Account get_id method to generate id from account name only.
Previous implementation used attributes from Account class which were not supported in all mailbox types, for example mbox and maildir do not have user or server attributes.
2018-05-05 16:58:21 +03:00
Timo Kankare
d76367d933 Added query method to Account and backend classes to ask if account supports
notifications. Currently only IMAP supports notifications, but only if idle parameter 
is true.
2017-08-19 16:55:41 +03:00
Timo Kankare
274c3fb70c Defined mailbox type to be '' (empty string) for new account. 2016-10-20 22:44:39 +03:00
Timo Kankare
133e0932c2 Added set_config method to Account class, so that existing account can be reconfigured. 2016-10-18 22:56:49 +03:00
Timo Kankare
98d12c2af0 Test to check that encode_mutf7 requires unicode parameter. 2016-10-12 22:42:14 +03:00
Timo Kankare
7517d93dfc Sample test cases to figure out how mutf7 encodes and decodes strings. 2016-10-11 17:30:59 +03:00
Timo Kankare
c2c0709435 Simplified maildir folder handling to support only root folder and subfolders directly
below mailidir directory. Maildir subfolders should now be expressed as
'folder.subfolder.subfolderssubfolder'.
2016-10-04 22:35:34 +03:00
Timo Kankare
e3a71039dd Review fixes. Instance fields marked as private. reopen argument removed from
open method. Closed maildir after use.
2016-10-04 22:18:11 +03:00
Timo Kankare
94047bc3f6 Added test case to ensure that unicode folder names work. 2016-10-02 22:22:26 +03:00
Timo Kankare
459e57a4b0 Fixed json folder test case. 2016-10-02 18:11:02 +03:00
Timo Kankare
0700575997 Implementation for listing messages from the subfolders of maildir. 2016-10-02 14:43:53 +03:00
Timo Kankare
1bb85ec714 Local backend tests refactored. Tests are now arraged to classes and sample mailboxes
are created in fixtures.
2016-10-02 09:59:20 +03:00
Timo Kankare
e133cf59fd Preliminary maildir implementation. Folder support is still incomplete 2016-09-30 23:01:30 +03:00
Timo Kankare
8395792c7c Changed mbox list_request to raise an exceptions, since folders are not supported. 2016-09-22 22:15:50 +03:00
Timo Kankare
cdbd3f0a94 Integrated mbox mailbox to the set of backends. 2016-09-20 22:54:31 +03:00
Timo Kankare
84abf559e9 mbox backend implementation. 2016-09-20 22:26:27 +03:00
Timo Kankare
068f6339b4 Using backend specific parameter definitions to store backend settings. 2016-09-20 22:06:48 +03:00
Timo Kankare
eba3c1b933 Defined mailbox backend specific parameters and helper function use them.
Using parameter specifications to read backend parameters.
Unit tests.
2016-09-18 22:39:05 +03:00
Timo Kankare
ad5c1dce17 Basic test cases for backends. 2016-09-17 22:12:14 +03:00