Commit Graph

151 Commits

Author SHA1 Message Date
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
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
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
f160c3bc1f bumped up version for release 2014-06-28 16:02:26 +02:00
Patrick Ulbrich
84a1cc0b73 pythons dynamic type system sucks. closes issue #71 2014-06-28 15:30:21 +02:00
Patrick Ulbrich
c958718055 bumped up version for another pre-release 2014-06-22 11:01:14 +02:00
Patrick Ulbrich
79eb4d7c54 added get_data_paths() function needed by upcoming icon theme commit 2014-06-21 13:40:46 +02:00
Patrick Ulbrich
b4e4c1feef changed account section names to lowercase 2014-05-30 14:16:40 +02:00
Patrick Ulbrich
e892564db6 enable libnotify plugin by default 2014-03-01 10:50:31 +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
Patrick Ulbrich
a71c7bce30 read imap idle timeout from the config file, just like the pop3 poll interval (fixes issue #60) 2014-01-07 20:31:06 +01:00
Patrick Ulbrich
11130ca093 fixed plugin paths 2013-10-22 00:35:15 +02:00
Patrick Ulbrich
df1a8c4d43 removed some unnecessary braces 2013-10-04 17:10:14 +02:00
Patrick Ulbrich
c5bdb66231 subproc: specified timeout on function call, removed comment 2013-10-04 15:56:03 +02:00
Patrick Ulbrich
c7c926996b subproc: added a further lock, comments and refactoring 2013-10-03 13:10:40 +02:00
Patrick Ulbrich
6f40812ac5 subproc: return pid of started process 2013-09-15 17:46:28 +02:00
Patrick Ulbrich
19d21598e1 make sure the _procs dictionary contains valid data when
start_subprocess returns

(as of now threads only wait for process termination)
2013-09-01 19:45:51 +02:00
Patrick Ulbrich
b99cc664ff don't leak thread objects 2013-08-25 18:00:41 +02:00
Patrick Ulbrich
663dc50057 terminate subprocesses on shutdown (e.g. on shutdown via dbus or SIGTERM)
* fixes program hang on shutdown
* improves consistency - terminating Mailnag via CTRL+C always did this
2013-08-25 15:38:35 +02:00
Patrick Ulbrich
b8c2ef9343 don't start logging before an existing mailnag instance has been shut down 2013-08-10 15:03:34 +02:00
Patrick Ulbrich
0beba139ed logging and config dir related fixes
replaced stdout redirection by propper logging
only create the config dir when it is actually needed
2013-08-10 14:39:29 +02:00
Patrick Ulbrich
047724c894 replaced remaining occurences of 'mailnag_config' 2013-08-05 21:11:42 +02:00
Patrick Ulbrich
214adfb9ba mail sender related changes
removed sender_format from config
store both, sender name and address in mail objects
mailcollector: removed error messages from subject and sender strings
user script plugin: fixed script arg
2013-08-05 19:28:32 +02:00
Patrick Ulbrich
9b53a3d33e renamed [general] settings section to [core] 2013-08-02 19:52:40 +02:00
Patrick Ulbrich
4aec44f2b3 set default manual mail check interval to 10 mins 2013-08-02 19:40:07 +02:00
Patrick Ulbrich
b51225b216 added optional shell arg to start_subprocess function 2013-07-29 20:33:04 +02:00
Patrick Ulbrich
da05dd8656 added comments 2013-07-29 20:31:58 +02:00
Patrick Ulbrich
77490bd881 added start_subprocess() function 2013-07-27 14:39:01 +02:00
Patrick Ulbrich
5a27dbfd4b create imap idle accounts by default 2013-07-24 19:16:17 +02:00
Patrick Ulbrich
74a5e02dc2 plugin hook api changes, enabled single notification mode and misc other fixes
mailchecker, plugins: pass both, new and all mails to MAILS_ADDED hook
mailchecker: fixed wrong count for filtered new mails
libnotify plugin: added some constants, enabled single notification mode, uncommented notification_id
spamfilter plugin: renamed variable
2013-07-22 20:37:29 +02:00
Patrick Ulbrich
5834521431 merged related classes into mudules 2013-07-17 20:11:28 +02:00
Patrick Ulbrich
cf2a3fb0fb added soundplugin 2013-07-14 18:07:40 +02:00