> Rather than call filter_bad_filename twice for every MIME part, it would be > better to store the status and then check it twice: An excellent point Paul, thanks! I also added pif|com|scr|bat to the bad file extensions list. Regards, KAM