I already have offlineimap + mutt properly set up, but I am subscribed to lots of mailing lists that I don't know how to sort to their proper folder. I do it manually from mutt by filtering them by pattern (Shift + T and then ;s to save them to the proper location), but I understand there's a way to do this automatically with procmail or sieve, but I couldn't find anything. Is there a way procmail can be integrated with offlineimap as a postsynchook ?
I am looking at the same thing currently and I found one guy who does it like that:
Link to his repo: https://github.com/dabrahams/feedme
He's running it on a Mac, but I guess it should work on Linux too. I hope that helps at least a bit.