it bombs out on you because there is not file named .caf, you will need to name the file/files new-mail.caf, you can do an ls when you are in this directory /System/Library/Audio/UISounds/ to view the name of the sounds. you can also use getfile instead of putfile to have a backup of the original sound before doing a putfile.