Commit Graph

19 Commits

Author SHA1 Message Date
Patrick Ulbrich
8464a5261a Remove uneccessary stuff from copyright headers 2019-10-22 19:13:15 +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
Timo Kankare
a2939fd1c7 Replaced references to Account idle and imap members with supports_notifications
query.
2017-08-19 16:55:41 +03:00
Timo Kankare
0f058a83c7 Updated authors in modified files. 2016-09-16 17:52:40 +03:00
Timo Kankare
279cbd5efa Some cleanup. Renaming. Docstrings. Unused code removed. 2016-09-08 23:06:23 +03:00
Timo Kankare
45677d081d Replaced protocol specific close with Account.close(). 2016-09-06 22:37:19 +03:00
Patrick Ulbrich
a0371a0ee2 Remove accidently commited test output 2015-04-18 16:37:43 +02:00
Patrick Ulbrich
ab71cf6304 Fix unitilized conn bug 2015-04-18 13:55:06 +02: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
dc8f1480f1 Misc improvements
* Remove bash scripts and start mailnag python scripts directly
  - Prevents duplicate process names
  - Fixes missing app icon in taskmanager
* Remove background startup functionality
  - Should be handled by modern init systems like systemd
    (see new-style-daemon: http://www.freedesktop.org/software/systemd/man/daemon.html)
  - Enables program termination via CTRL+C when running mailnag in a terminal
  - Doesn't hide the commandline prompt when running with options like --help (reported in issue #87)
  - Fixes wrapping issues in the log output
* Rename mailnagd into mailnag again
* Remove --backround option
* Fix and reorder module imports
* setup.py: patch BIN_DIR in dist_cfg
2014-12-19 21:22:45 +01:00
Patrick Ulbrich
7408cafe8c Improved connectivity tests, other fixes. Closes #86, #87
* Replace unreliable connectivity test by configurable ConnectivityTest
class
* Move connectivity check from main into MailnagDaemon
  (does no longer block if another instance tries to shutdown Mailnag)
* Fix crash occuring on failing Idler reconnect
* Log warning instead of error if no internet connection is available
2014-12-13 17:02:54 +01:00
Patrick Ulbrich
7a3843d932 Allow plugins to remove accounts 2014-12-07 21:01:50 +01:00
Patrick Ulbrich
d9a5291817 Don't pass the original AccountsList object to the ACCOUNTS_LOADED plugin hook
Prevents plugins from
* loading and saving accounts
* storing an internal reference to the original accounts list
* accessing the original accounts list after MailnagDaemon.dispose() has been called
2014-12-06 16:51:49 +01:00
Patrick Ulbrich
dece0102a8 Add ACCOUNTS_LOADED plugin hook, support OAuth2 authentication
* In preparation for GNOME Online Accounts Plugin
* Partially fixes #46
2014-12-06 16:40:16 +01:00
Patrick Ulbrich
72425ef05e renamed Reminder into Memorizer 2014-05-29 19:54:51 +02:00
Patrick Ulbrich
692649db16 only allow manual mail checks for non-idle accounts
(manually checking an idling account does abort the current idle state and results in two checks)
2014-03-23 17:02:59 +01:00
Patrick Ulbrich
9690234084 implemented mark-as-read feature, other fixes
implemented mark-as-read feature
refactored reminder class
don't write mailnag.dat on every mail check (only if its contend has changed)
minor other fixes
2014-02-23 19:13:54 +01:00
Patrick Ulbrich
113b3a1506 massive refactoring
* primary goal: reduce global vars, slim down main file
  (only do initialization of global stuff here, move everything else to a daemon class)
* properly close all open pop3/imap connections on shutdown
* throw/catch meaningful exceptions
* renamed IdleRunner/Idler run() methods to start() since 'run' suggests a blocking call (as in dialog.run())
2014-02-01 21:44:07 +01:00