Fix attachlog.txt location. Minor logging additions.

Tremendous improvements over the original scripts. (Your project is the only way to get a functional import to Thunderbird.)