Once more mailprocessing has developed some bitrot, namely this recent crash:
Traceback (most recent call last):
File "/usr/bin/imapproc", line 11, in <module>
load_entry_point('mailprocessing==1.2.7', 'console_scripts', 'imapproc')()
File "/usr/lib/python3.8/site-packages/mailprocessing/cmd/imap.py", line 355, in main
File "<string>", line 65, in <module>
File "<string>", line 16, in listid_listname
AttributeError: 'NoneType' object has no attribute 'group'
This needs fixing, for it causes mailprocessing to crash out before it ever gets to the point where it would move any emails. Technically this is not part of mailprocessing itself but part of my local processing script, but while I'm at it, I might as well move some of the helper functions from there into a library others can use as well.
This project is one of its kind!