Commit Graph

59 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
965f91ad80 Fix wrong assignment of default subject 2019-10-28 19:14:45 +01:00
Patrick Ulbrich
6a9e0d7fb3 Remove bonkers _format_header_field() function 2019-10-27 18:01:59 +01:00
Patrick Ulbrich
63f21bf10c Replace MailCollector._convert() function by much shorter and more robust version by razer 2019-10-27 17:36:40 +01:00
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
Patrick Ulbrich
d576a6ba7a Merge pull request #165 from tikank/accountmembers
Refactorings related to Account class
2018-06-01 17:41:30 +02:00
Timo Kankare
74e987c94d Changed MailCollector._get_id() not to use server and user attributes of Account class, because not every account has those defined. Instead Account.get_id() is used. 2018-05-05 17:07:06 +03:00
Timo Kankare
00e91edf19 Removed reference to Accounts idle member. 2017-08-19 16:55:41 +03:00
Patrick Ulbrich
43cac375f3 Don't allow to re-open accounts (hack, not needed anymore) 2016-09-17 12:23:45 +02: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
1a0b2c9371 Removed duplicate code from mails.py. 2016-09-06 17:39:30 +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
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
d7ee148912 Don't suppress exceptions occuring in Account.get_connection() 2015-04-18 16:44:23 +02:00
Patrick Ulbrich
1288e531fa Rename srv into conn for the sake of consistancy 2015-04-18 14:09:52 +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
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
72425ef05e renamed Reminder into Memorizer 2014-05-29 19:54:51 +02: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
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
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
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
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
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
13bbe63365 re-enable watching of multiple folders - except for IDLE accounts 2012-01-15 14:09:29 +01:00
Patrick Ulbrich
b406602d80 marked members as private where appropriate 2012-01-08 13:37:33 +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
38ae5981f1 marked some methods as private 2011-12-27 15:06:18 +01:00