Python
Finally took some time with python. Tried to understand how to bridge it to C code. Successfully wrapped up a couple of test methods and also a C defined object. Quite spiffy. Need to shake out a few details though.
Finally managed to remove my custom mutt keybinding to kill off SPAM and used spamassassin and sa-learn instead:
macro index X "unset wait_keynsa-learn --single --spamnset wait_keyn" "spam & delete" macro pager X "unset wait_keynsa-learn --single --spamnset wait_keyn" "spam & delete"