email attachment processign - work in progress