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 exec(rc, environment) 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.

Looking for hackers with the skills:

Nothing? Add some keywords!

This project is part of:

Hack Week 19 Hack Week 20

Activity

  • almost 2 years ago: jgrassler started this project.
  • almost 2 years ago: jgrassler originated this project.

  • Comments

    • jgrassler
      almost 2 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

    • jgrassler
      almost 2 years ago by jgrassler | Reply

      The updated package has landed in Factory. Enjoy!

    • jgrassler
      9 months 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 in mailprocessing.mail.base helpful. Please do not use this code on anything important just, yet. There's tons of bugs to be ironed out, still.

    • jgrassler
      9 months ago by jgrassler | Reply

      Bad URL above, my apologies. That's the correct one: https://github.com/mailprocessing/mailprocessing/tree/add-filter-module

    • jgrassler
      9 months 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.<folder name> 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.

    • jgrassler
      8 months ago by jgrassler | Reply

      Didn't finish everything due to unrelated distractions. Expect the half-finished pieces of code to get completed and trickle in bit by bit over the coming weeks/months.

    Similar Projects

    This project is one of its kind!