docker-offlineimap/offlineimap
Sebastian Spaeth 0ccf06d5e6 Implement clean CTRL-C termination
Previously, we would simply bail out in an ugly way, potentially leaving
temporary files around etc, or while writing status files. Hand SIGINT
and SIGTERM as an event to the Account class, and make that bail out
cleanly at predefined points. Stopping on ctrl-c can take a few seconds
(it will e.g. finish to transfer the ongoing message), but it will shut
down cleanly.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2012-01-04 19:31:27 +01:00
..
folder Implement clean CTRL-C termination 2012-01-04 19:31:27 +01:00
repository Don't append trailing slash to maildir foldernames 2011-12-01 17:01:43 +01:00
ui Curses UI: Simplify text buffer handling 2011-11-08 13:51:36 +01:00
__init__.py Release v6.4.2 2011-12-01 17:14:52 +01:00
accounts.py Implement clean CTRL-C termination 2012-01-04 19:31:27 +01:00
CustomConfig.py Remove deprecated calls to apply() 2011-09-27 13:00:12 +02:00
error.py Introduce new error level FOLDER_RETRY 2011-09-06 19:00:21 +02:00
imaplib2.py Bump bundled imaplib2 to 2.29 2011-11-02 10:55:42 +01:00
imaplibutil.py Fix mbox.select(foldername) readonly parameter comparison 2011-11-02 08:57:01 +01:00
imapserver.py Remove unused imapserver getdelim() 2011-12-01 10:12:54 +01:00
imaputil.py Do not fail calling dequote() with empty string 2011-09-26 15:16:59 +02:00
init.py Implement clean CTRL-C termination 2012-01-04 19:31:27 +01:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py explicitly define symbols to import instead of 'import *' 2011-05-09 22:43:03 +02:00
syncmaster.py Exit "infinite" monitorloop when SyncRunner thread exits 2011-11-02 11:55:05 +01:00
threadutil.py Exit "infinite" monitorloop when SyncRunner thread exits 2011-11-02 11:55:05 +01:00