Once more mailprocessing has developed some bitrot, namely this recent crash:
Traceback (most recent call last):
File "/usr/bin/imapproc", line 11, in
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
exec(rc, environment)
File "", line 65, in
File "", 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.
Looking for hackers with the skills:
Nothing? Add some keywords!
This project is part of:
Hack Week 19 Hack Week 20
Comments
-
almost 5 years ago by jgrassler | Reply
Ok, all merged and I fixed a bit of a bug that caused
imapproc
to crash when encountering empty inboxes while I was at it. New PyPI release is out and I updated the package in the development project as well. Request against Factory submitted: https://build.opensuse.org/request/show/773711 -
almost 4 years ago by jgrassler | Reply
https://github.com/mailprocessing/mailprocessing/pull/new/add-filter-module has the new utility module now. The bulk of the new code is the mailing list handling class in
mailprocessing.filter.list
, but you may also find the new methods inmailprocessing.mail.base
helpful. Please do not use this code on anything important just, yet. There's tons of bugs to be ironed out, still. -
almost 4 years ago by jgrassler | Reply
Today I got sidetracked into battling an old arch nemesis of mine: the IMAP LIST command. Among other things that command is useful for determining an IMAP servers folder prefix (on some IMAP servers, folders are named
INBOX.
and folder name separator (on some servers folders are separated by/
, others use.
). The handling code for that turned out to only work on a bare mail box with no subfolders on my local dovecot instance. Post filtering there would be subfolders of course, breaking prefix/separator detection. That should be fixed now, but YMMV.
Similar Projects
This project is one of its kind!