Please try the proposed fix at https://github.com/OfflineIMAP/offlineimap/issues/290#issuecomment-196036356
> Ok, I think an easier solution would be to just call > curses.resize_term instead of curses.resizeterm, and possibly force > a redraw afterwards. The latter function will not ungetch an > KEY_RESIZE, resulting in this nasty loop. -- Christian Neukirchen <[email protected]> http://chneukirchen.org

