in reply to Extracting the few useful lines from HTML garble

I guess "Name of email" is the variable part? Then this might do
open F, '<', $yourfile or die "Couldn't open file: $!"; while (<F>) { print $1 if ( m{/Inbox/(.+)\.EMI}xms ); }
UPDATE: Forgot closing bracket