* 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
* 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())
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