Patrick Ulbrich
3a9bd9f34b
Use proper enums
2019-11-04 20:11:38 +01:00
Patrick Ulbrich
ac84ecf297
Remove execute flag from imaplib2.py
2019-11-02 11:56:41 +01:00
Patrick Ulbrich
6896d650df
Make python version in header of imaplib2 explicit
2019-11-02 11:55:27 +01:00
Patrick Ulbrich
82f3e74963
Bump version to 2.0 (mailnag >= 2.0 requires python 3
2019-10-30 18:09:13 +01:00
Patrick Ulbrich
4ebdc13227
Replace imaplib2 with python3 version from https://github.com/imaplib2/imaplib2
2019-10-25 19:46:34 +02:00
Patrick Ulbrich
fb8d7a8d0d
fix unicode/byte issues in mutf7.py
2019-10-25 19:16:47 +02:00
Patrick Ulbrich
054c36ddc6
Remove more uneccessary stuff from copyright headers
2019-10-22 19:18:31 +02:00
Patrick Ulbrich
8464a5261a
Remove uneccessary stuff from copyright headers
2019-10-22 19:13:15 +02:00
Patrick Ulbrich
224fdd7c55
Don't write config files in binary mode
2019-10-19 18:18:42 +02:00
Patrick Ulbrich
77022172af
Fix problems related to unicode strings
2019-10-19 18:07:19 +02:00
Patrick Ulbrich
9e0d09e107
Fix reading of default sections in pyhon3
2019-10-19 18:06:41 +02:00
Patrick Ulbrich
c599706fb9
s/python2/python3/g
2019-10-19 17:28:32 +02:00
Patrick Ulbrich
d10831a995
Run '2to3 -W -n' on python files
2019-10-19 17:17:33 +02:00
Patrick Ulbrich
b6b9efdba1
Bump version
2019-05-04 14:46:38 +02:00
Patrick Ulbrich
ea5b0d2eca
Port to GTKApplication, headerbars
2019-03-10 17:21:36 +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
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
Patrick Ulbrich
013fe3d230
Small fixes
2017-05-14 16:21:05 +02:00
Timo Kankare
e49d4d9927
Closing backend in set_config if it is open.
2016-11-04 19:28:22 +02: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
Patrick Ulbrich
68b611e161
Add (optional) priority argument to HookRegistry.register_hook_func
...
In preparation for #139
2016-10-12 20:21:56 +02:00
Timo Kankare
cdbd3f0a94
Integrated mbox mailbox to the set of backends.
2016-09-20 22:54:31 +03:00
Timo Kankare
fcef81c6c8
Moved backend creation to Account class.
2016-09-20 22:25:21 +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
d89ef65573
Added type field to configuration. Moved backend creation to backends package.
2016-09-17 22:10:20 +03:00
Patrick Ulbrich
f6907a96d4
Bump version
2016-09-17 14:23:40 +02:00
Patrick Ulbrich
43cac375f3
Don't allow to re-open accounts (hack, not needed anymore)
2016-09-17 12:23:45 +02:00
Patrick Ulbrich
67e9aa7790
Comment fixes
2016-09-16 21:51:49 +02:00
Timo Kankare
ff9702ea83
Renamed IMAP and POP3 backends as MailboxBackends.
2016-09-16 20:38:48 +03:00
Timo Kankare
0f058a83c7
Updated authors in modified files.
2016-09-16 17:52:40 +03:00
Timo Kankare
169b5a72d3
Fixed correct exception in POP3Backend. Removed unused _conn variable from Account.
2016-09-12 16:31:46 +03:00
Timo Kankare
279cbd5efa
Some cleanup. Renaming. Docstrings. Unused code removed.
2016-09-08 23:06:23 +03:00
Timo Kankare
3bdb85952d
IMAP code moved from idlers.py to backends/imap.py.
...
Folder is always selected when new connection is opened, not only for idle accounts.
Callback is set using Account.notify_next_change method.
Connection abort checking in callback is moved to IMAP backend.
2016-09-07 22:46:50 +03:00
Timo Kankare
94e3e6705e
Removed unnecessary code from Account class, because both POP3 and IMAP is now
...
handled same way.
2016-09-06 17:35:24 +03:00
Timo Kankare
f9dde27aff
Extracted list_message code to account and backends.
2016-09-05 22:35:34 +03:00
Timo Kankare
c96d8fc8b7
Extracted close to account and backends.
2016-09-05 22:10:44 +03:00
Timo Kankare
b6cbf7b9de
Moved IMAP and POP3 related code to backends from account module.
...
Added backend creation to account dialog so that the folder request can be done.
2016-09-04 22:54:39 +03:00
Timo Kankare
211105d979
Added backends package and skeletons for IMAP and POP3 backends.
...
Backend is initialized to the Account in AccountManager.
2016-09-04 16:32:03 +03:00
cheshire-mouse
81fa02b82d
fix ascii range
2016-08-16 13:12:13 +03:00
cheshire-mouse
d257f70b67
check folder option format
2016-08-16 12:26:08 +03:00
cheshire-mouse
43856eacca
use JSON format to save folders configuration
2016-08-16 10:55:43 +03:00
cheshire-mouse
44d250e321
fix non-ascii folder names encoding in the configuration menu
2016-08-16 10:53:58 +03:00
Patrick Ulbrich
574e350da2
Fix regex folder matching. Fixes #128
2016-08-04 18:25:33 +02:00
Patrick Ulbrich
e113012e1d
Remove debug output
2016-08-04 18:24:50 +02:00
Patrick Ulbrich
19ed4745e3
Add debug log output for raw folder format
2016-08-04 12:25:41 +02:00
Patrick Ulbrich
a0c8cab354
Move init_logging() to utils
2016-08-04 12:24:38 +02:00
Patrick Ulbrich
f446bc58ea
Parse folders via regex. Fixes #127
2016-08-02 19:45:47 +02:00