Commit Graph

134 Commits

Author SHA1 Message Date
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
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
Patrick Ulbrich
bbbd22b9dd Fix GTK warnings (fixes #105) 2016-05-23 19:26:56 +02:00
Patrick Ulbrich
ceb5ecd0ff Bump version 2016-03-31 12:56:35 +02:00
Patrick Ulbrich
ff77a46bf0 Add copyright info for T. Haider 2016-03-22 18:48:41 +01:00
Patrick Ulbrich
2022960005 Log warning if an unencrypt connection is detected 2016-03-19 17:13:16 +01:00
Patrick Ulbrich
492a45d654 Add comment, whitespace, update copyright 2016-03-19 15:33:30 +01:00
Thomas Haider
e6ea759896 use STARTTLS if offered 2016-03-16 21:45:30 +01:00
Patrick Ulbrich
a89133c31c Bump version number 2016-02-03 19:10:40 +01:00
Patrick Ulbrich
b97e851ac0 Add support for noification settings in GNOME-Control-Center. Closes #106 2015-12-27 18:18:19 +01:00
Patrick Ulbrich
ba76aef379 Remove obsolete comment 2015-12-25 14:00:50 +01:00
Patrick Ulbrich
7256dc6e73 Fix folder parsing. Fixes issue #108 2015-12-20 20:08:12 +01:00
Patrick Ulbrich
90d50b2a16 Vastly improved account dialog (closes issue #85)
* Show imap folders in a listbox instead of a comma separated string
* Reset form when changing the account type
* Don't identify PROVIDER_CONFIG by servername only
2015-12-13 15:47:31 +01:00
Patrick Ulbrich
d7ee148912 Don't suppress exceptions occuring in Account.get_connection() 2015-04-18 16:44:23 +02:00
Patrick Ulbrich
67fbc8fcdb Rename account.folder into account.folders and make it a list 2015-04-03 18:53:04 +02:00
Patrick Ulbrich
52b0a03c03 Move imaplib2 to common 2015-04-03 14:55:56 +02:00
Patrick Ulbrich
1ac6ac0961 GnomeCredentialStore: more solid keyring access, migrate pre 1.1 keyring items 2015-01-31 13:27:40 +01:00
Patrick Ulbrich
f01879c9c7 Add CredentialStore abstraction layer
* Add CredentialStore API
* Add CredentialStore implementation for GNOME keyring (makes GNOME keyring dependency optional)
* Further CredentialStore implementations (e.g. KDE) may be added to CredentialStore.py
* Mailnag tries to detect the supported CredentialStore backend automatically
* If no CredentialStore backend is supported on the system, Mailnag stores passwords in the config file (plaintext)
* A specific CredentialStore backend can be forced in the config file (currently one of 'auto', 'gnome', 'none')
* Closes issue #82
2015-01-27 17:07:28 +01:00
Patrick Ulbrich
151e188751 bump up version 2014-12-19 21:39:41 +01:00