8ec6980c96
As reported in https://github.com/spaetz/offlineimap/pull/2, we would fail when files are empty because file.read() would throw attribute errors. Fix this by removing the superfluous read() check and additionally log some warning message. Reported-by: Ralf Schmitt Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>