Commit Graph

56 Commits

Author SHA1 Message Date
Patrick Ulbrich
85855a35af Also fix assignments of that commit... 2019-10-28 19:31:15 +01:00
Patrick Ulbrich
4c18970e43 Fix lambda syntax of last commit 2019-10-28 19:27:10 +01:00
Patrick Ulbrich
210078447c Remove sort_mails() function 2019-10-28 19:24:50 +01:00
Patrick Ulbrich
48e589f678 Fix integer division in dbus plugin 2019-10-25 19:18:40 +02:00
Patrick Ulbrich
8464a5261a Remove uneccessary stuff from copyright headers 2019-10-22 19:13:15 +02:00
Patrick Ulbrich
584c4d343f Fix packing of filechooser widget in userscript plugin 2019-10-22 19:01:30 +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
59cddfa686 Prevent dbusplugin from crashing on mails with timestamps > MAX_INT32 2017-10-01 16:06:44 +02:00
Patrick Ulbrich
bbbd22b9dd Fix GTK warnings (fixes #105) 2016-05-23 19:26:56 +02:00
Patrick Ulbrich
89a06a4dac Fix i18n in userscript plugin 2016-03-24 15:27:39 +01:00
Patrick Ulbrich
bce5ba541c UserScript plugin: pass accountname to userscripts 2016-02-03 19:08:05 +01:00
Patrick Ulbrich
546f1f7078 Add accountname to the Mail class and expose it via dbus
As requested in #84 and #96
2016-01-02 19:49:15 +01:00
Patrick Ulbrich
c97b6bf11f libnotifyplugin (short summary): begin body in lowercase 2015-12-27 18:27:10 +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
a70d622017 libnotify plugin: add short summary notification mode
* New default notification mode
* Recommended for GNOME 3
* Fixes issue #103
2015-12-20 14:28:58 +01:00
Patrick Ulbrich
a23b83f505 libnotifyplugin: Don't remove notifications (except on program shutdown)
* From now on notifications are used for _new_ mails only
* Updating notifications if mails are gone is confusing - it is only possible to remove an existing summary
  notification if _all_ mails are gone. It's not possible to update an existing summary notification silently
  if the mail count decreases.
* Other notification systems (e.g. on Android) don't update notifications when mails are gone either
* On most desktops (e.g. Ubuntu Unity) notifications appear temporarily anyway (can't be accessed at a later time)
* Managing mail lists (appending/removing mails) should be handled in desktop extensions (like mailnag-gnome-shell)
2015-12-13 18:23:37 +01:00
Patrick Ulbrich
87a8020c9e Spamfilterplugin: Enforce min height of scrolled window (fixes too small winwow in GNOME 3.16) 2015-04-18 18:13:08 +02:00
Patrick Ulbrich
7386dc6f03 Soundplugin: fix path of soundfile 2015-01-31 14:16:12 +01:00
Patrick Ulbrich
897aabf158 Bump plugin versions due to internal mailnag api changes 2015-01-31 12:49:19 +01:00
Patrick Ulbrich
36543a269a Check if the environ key exists before accessing it (fixes #90) 2014-12-20 15:11:00 +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
bca8ef1530 shorten mail notification strings
fixes issue #72
2014-07-30 21:32:23 +02:00
Patrick Ulbrich
53ea7f4f7c don't use features of newer gtk versions 2014-06-28 17:00:05 +02:00
Patrick Ulbrich
2d3c158628 libnotify plugin: make max visible mails configurable 2014-05-30 14:19:24 +02:00
Patrick Ulbrich
e647ea9ed7 fixed plugin names 2014-03-25 19:27:07 +01:00
Patrick Ulbrich
59afdd67b4 libnotify plugin: better support for non-gnome desktops
- only use actions, multiline sender/subject layout and pango markup in GNOME-Shell notifications
- use single line sender/subject layout in notifications on other desktops
2014-03-23 17:26:59 +01:00
Patrick Ulbrich
5238228ee8 make libnotifyplugin use Ubuntu's OSD notifications 2014-03-01 10:42:55 +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
7749ba50d2 dbus plugin: interface changes 2013-12-22 15:17:47 +01:00
Patrick Ulbrich
78eea21752 libnotify plugin: explicitly put new mails on top (potentially fixes #57) 2013-12-21 15:14:15 +01:00
Patrick Ulbrich
c95ca04086 fixed spelling 2013-10-21 21:13:02 +02:00
Patrick Ulbrich
11b772ed1a removed support for GNOME's do-not-disturb mode (not available anymore in GNOME 3.10) 2013-10-12 20:10:34 +02:00
Patrick Ulbrich
8661a7236a fixed add_action call (libnotify 0.7.6 introces API changes) 2013-10-12 20:07:49 +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
9fb3126227 userscript plugin: more rubust script execution 2013-08-11 19:15:04 +02:00
Patrick Ulbrich
6918c1bce2 fixed libnotifyplugin 2013-08-10 16:14:44 +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
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
cb30ff69a8 fixed typo 2013-08-04 13:31:00 +02:00
Patrick Ulbrich
5a166a28ee added userscript plugin 2013-07-29 20:43:20 +02:00
Patrick Ulbrich
83b7e43caa spamfilter plugin: increased spacing in config ui 2013-07-29 20:34:50 +02:00
Patrick Ulbrich
86fb8db99b libnotify plugin: added config ui and single notification mode 2013-07-28 17:18:55 +02:00
Patrick Ulbrich
f84abdc4d5 spamfilter plugin: removed unnecessary imports 2013-07-28 16:03:20 +02:00
Patrick Ulbrich
ce4544a0ef libnotify plugin: make sure the linotify daemon is available before notifying 2013-07-28 14:46:23 +02:00
Patrick Ulbrich
394156a6b2 fixed misnamed function call 2013-07-28 12:15:25 +02:00
Patrick Ulbrich
056889b411 libnotify plugin: open default mail reader on click, prevent race conditions, refactoring 2013-07-28 12:12:28 +02:00
Patrick Ulbrich
ee5f7ed6c9 sort mails ascending in single notification mode 2013-07-23 19:55:15 +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