Hello Peter,
I tried to run your script and I had an error.
Since I am newbie, I would like to ask your help.
Number of email parts : 3
write_file '' - sysopen: No such file or directory at ./test2.pl line 33
Thank you!
Have you looked at line 33? What is in line 33? Maybe some filename given there is not writable on your system. Note also, that this heavily depends on the attachments of your mails.