is($urlized_directory,$test_file->{dirname},'Test case: '.$test_file->{test_case}.' - Directory where urlized parts are stored correctly escaped.');
ok(!-f$home_dir.'/'.$test_list_name.'/urlized/'.$urlized_directory.'/msg.0.bin','Test case: '.$test_file->{test_case}.' - The text of the message has not been converted to binary attachment.');
ok(!-f$home_dir.'/'.$test_list_name.'/urlized/'.$urlized_directory.'/msg.0.txt','Test case: '.$test_file->{test_case}.' - The text of the message has not been converted to text attachment.');
my@expected_files;
foreachmy$file(@{$test_file->{attachments}}){
ok(-f"$home_dir/$test_list_name/urlized/$urlized_directory/$file->{name}",'Test case: '.$test_file->{test_case}.' - The attachment '.$file->{name}.' has been stored on the filesystem.');
is($found_url_to_attachment,1,'Test case: '.$test_file->{test_case}.' - The attachment '.$file->{name}.' stored on the filesystem has an URL to retrieve it in the new message.');
is($#found_files,$#expected_files,'Test case: '.$test_file->{test_case}.' - Found the urlized attachments (total: '.$total_expected_files.') and only them.');