I need to look for a specif subject and save attachment

ie. something like

If subject contains ACC::name-INV::invno
save x:\data\acc\invno.pdf
End

How do I get at the subject and attachment