Commit Graph

105 Commits

Author SHA1 Message Date
Patrick Ulbrich
5578c98e7b identtify mails by message-id again
set date of mails without date to zero (instead of current date)
refactoring
added comments
2013-12-20 21:46:01 +01:00
Patrick Ulbrich
41d90f8a76 discard mails with identical ids (both, imap and pop3)
added comments
2013-12-18 13:53:02 +01:00
Patrick Ulbrich
eca1269219 use a dict instead of a list for faster id lookup 2013-12-18 13:23:17 +01:00
Patrick Ulbrich
8eeba44f7a has_key() is deprecated 2013-12-18 13:16:24 +01:00
Patrick Ulbrich
3d52b106cf imap msg dict doesn't seem to throw a keyerror, so throw it explicitely 2013-12-17 17:59:17 +01:00
Patrick Ulbrich
524e6d5654 refactored mails class 2013-12-17 16:51:18 +01:00
Patrick Ulbrich
80cf60e4a3 identify mails (both, imap and pop3) via MD5 hash.
(IMAP Message-Id doesn't seem to reliable. Fixes #57.
2013-12-01 20:11:31 +01:00
Patrick Ulbrich
ad63208c15 don't select INBOX folder if another folder does not exist 2013-10-24 19:16:02 +02:00
Patrick Ulbrich
e8d5125d97 added some whitespace to MailSyncer class 2013-10-24 19:02:50 +02:00
Patrick Ulbrich
11df47e6b1 fixed logging message 2013-09-08 18:25:23 +02:00
Patrick Ulbrich
ce73ef32de added datetime to log 2013-08-10 15:28:31 +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
81f3771e40 use identical types in extracted and fallback mail times (int) 2013-08-05 19:43:54 +02:00
Patrick Ulbrich
a89d3365ef include datetime when generating a hashed fallback id 2013-08-05 19:40:35 +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
3f4c71b228 mail sorting related refactoring, added comment 2013-07-23 19:54:13 +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
8b1bd8183e renamed some classes 2013-07-20 12:41:01 +02:00
Patrick Ulbrich
5834521431 merged related classes into mudules 2013-07-17 20:11:28 +02:00
Patrick Ulbrich
c31f9fd84e only call MAILS_ADDED hooks if there are actually mails after filtering 2013-07-14 16:56:14 +02:00
Patrick Ulbrich
211db22ce4 added plugin framework and converted dbusservice into a plugin 2013-07-14 15:53:01 +02:00
Patrick Ulbrich
c54f9992f2 s/env python/env python2/g 2013-06-15 16:42:54 +02:00
Patrick Ulbrich
5d7c1ac9c8 stripped down Mailnag to a core functionality
overhauled config gui that reflects the changes and introduces plugins
disable/restart daemon via dbus call when closing the config gui
refactoring
2013-06-15 16:15:28 +02:00
Patrick Ulbrich
47fdd466d0 use constants for DBUS busname and object path 2013-06-13 16:30:01 +02:00
Patrick Ulbrich
68d4f92825 shutdown existing Mailnag instance via dbus instead of pkill
fixed cleanup function
2013-06-13 16:23:07 +02:00
Patrick Ulbrich
7631dabb15 added dbus service, removed notifications (sound and popups) from daemon 2013-06-10 20:29:19 +02:00
Patrick Ulbrich
d12d2c5c5e comment cleanup 2012-12-23 14:13:10 +01:00
Patrick Ulbrich
2f8e6b75c9 removed unnecessary reconnect introduced in commit 8cc98be 2012-12-05 14:45:53 +01:00
Patrick Ulbrich
d02a99b86f removed messagetray label since it is not visible in GNOME 3.6 2012-10-20 18:35:09 +02:00
Patrick Ulbrich
8cc98be269 shutdown callback thread before opening a new imap connection, other imap related fixes, refactoring 2012-07-30 19:51:59 +02:00
Patrick Ulbrich
42a82b04d0 STFU if gnome-shell notifications are disabled 2012-04-21 18:13:07 +02:00
Patrick Ulbrich
86ba283637 tweaked stdout output on idler reconnection 2012-01-21 16:34:43 +01:00
Patrick Ulbrich
04e367fc27 make sure idlers can't have a connection nullptr 2012-01-20 19:40:02 +01:00
Edwin Smulders
1c0d16f674 Make sure creating the connection succeeded 2012-01-20 15:28:58 +01:00
Patrick Ulbrich
13bbe63365 re-enable watching of multiple folders - except for IDLE accounts 2012-01-15 14:09:29 +01:00
Patrick Ulbrich
a77cf3800b print count of accounts to be checked 2012-01-12 23:45:16 +01:00
Patrick Ulbrich
b406602d80 marked members as private where appropriate 2012-01-08 13:37:33 +01:00
Patrick Ulbrich
e1a88d242c moved notification cleanup to mailchecker.dispose() 2012-01-03 21:07:05 +01:00
Patrick Ulbrich
6d68a191c9 mass commit
fixed imap idle implementation (reuse open imap connections and don't poll unaffected accounts)
reconnect if a connection has been lost (e.g. after standby)
moved connection check from startup script to mailnag.py
removed unused/unnecessary code
refactoring, fixed exception handling
2012-01-02 20:33:42 +01:00
Patrick Ulbrich
3c365bb22e refactored firstcheck logic 2011-12-27 16:15:26 +01:00
Patrick Ulbrich
38ae5981f1 marked some methods as private 2011-12-27 15:06:18 +01:00
Patrick Ulbrich
3de50a0e96 don't block mailchecker.mailcheck_lock if no internet connection is available 2011-12-27 14:28:05 +01:00
Patrick Ulbrich
a15b53956b moved gettext handling in i18n module 2011-12-01 20:04:13 +01:00
Patrick Ulbrich
2ebe89b6db use translatable no-subject string 2011-12-01 19:40:08 +01:00
Patrick Ulbrich
da8293632b removed mailclient configuration 2011-11-28 17:52:31 +01:00
Patrick Ulbrich
fb32f75ca5 rewritten account stuff (unfortunately this breaks existing config files) 2011-11-26 20:23:24 +01:00
Patrick Ulbrich
41abf09cc1 play notification sound using gstreamer instead of aplay 2011-11-19 15:53:43 +01:00
Patrick Ulbrich
4b9b861885 don't print unicode strings 2011-11-19 14:24:31 +01:00
Patrick Ulbrich
490567dfb5 check returnvalue of account.get_connection() in Idlers class 2011-11-15 22:04:53 +01:00