FWIW, I ended up with these two macros:
# extract all attachments macro index,pager X '<enter-command> set my_wk=$wait_key; unset wait_key<enter>\ <pipe-message> ripmime --paranoid -i - -d ~/tmp/attachments<enter>\ <enter-command> set wait_key=$my_wk<enter>' "save all attachments" macro attach X '<exit><enter-command> set my_wk=$wait_key; unset wait_key<enter>\ <pipe-message> ripmime --paranoid -i - -d ~/tmp/attachments<enter>\ <enter-command> set wait_key=$my_wk<enter><display-message>\ <view-attachments>' "save all attachments" Michael -- PGP-Key-ID: EEE7D043 Jabber: in...@jabber.de