I assume that mutt is already configured for gmail.

Start mutt
The mails are shown.
Enter view attachment mode: v
Navigate, and tag each with: t
Now save them: ; s
Press Enter for each file