I tried this:
folder-hook . 'color index green black "~B \"Content-disposition: attachment;\""'
but got nothing except exceptionally slow rendering of the inbox.
Is there any way to do this, or generally anything that will allow me to see messages with attachments in the index (flags etc..) that can be solved by configuration and not patching.