You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import subprocess
import datetime
import re
def mailpasswd():
return subprocess.check_output('pass REDACTED',
shell='/bin/bash').strip()
def folderfilter(x):
match = re.match('archive\.(\d\d\d\d).(\d\d)', x)
if match:
return abs(datetime.date.today() -
datetime.date(int(match.group(1)), int(match.group(2)), 1)
).days <= 31*6
else:
return not x.startswith('archive') and not (x == "INBOX.Junk")
Logs, error
For every synced mailbox I get:
ERROR: ERROR in syncfolder for net folder REDACTED: Traceback (most recent call last):
File "/usr/share/offlineimap/offlineimap/accounts.py", line 599, in syncfolder
ui.syncingfolder(remoterepos, remotefolder, localrepos, localfolder)
File "/usr/share/offlineimap/offlineimap/ui/Curses.py", line 431, in syncingfolder
self.gettf().setcolor('cyan')
File "/usr/share/offlineimap/offlineimap/ui/Curses.py", line 210, in setcolor
self.display()
File "/usr/share/offlineimap/offlineimap/ui/Curses.py", line 217, in display
self.ui.exec_locked(locked_display)
File "/usr/share/offlineimap/offlineimap/ui/Curses.py", line 94, in exec_locked
target(*args, **kwargs)
File "/usr/share/offlineimap/offlineimap/ui/Curses.py", line 214, in locked_display
self.window.addch(self.y, self.x, '@', self.curses_color)
error: addch() returned ERR
addch() returned ERR
Steps to reproduce the error
Run offlineimap -o with the blinkenlights UI
Have a terminal with very little columns (mine was only 28 columns wide)
addch errors when the coordinates are outside of the window, this happens if the screen is very very small.
The text was updated successfully, but these errors were encountered:
addch() and addstr() throw an exception if text has to be printed
outside of the window. This may occur if the terminal is very small.
Such erroneous prints are no-ops now.
Signed-off-by: Mart Lubbers <mart@martlubbers.net>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
Github-ref: #595
General informations
Debian GNU/Linux buster/sid x86
offlineimap -V
):offlineimap v7.2.2, imaplib2 v2.57 (system), Python v2.7.15+, OpenSSL 1.1.1a 20 Nov 2018
Python v2.7.15+
offlineimap -o
Configuration file offlineimaprc
pythonfile (if any)
Logs, error
For every synced mailbox I get:
Steps to reproduce the error
offlineimap -o
with the blinkenlights UIaddch
errors when the coordinates are outside of the window, this happens if the screen is very very small.The text was updated successfully, but these errors were encountered: