Merge pull request #561 from mikedewar/unpack

added label to unpack
fixed toEmail tls
Merge pull request #562 from jprobinson/master

fixed toEmail tls
a bit more error checking on toEmail
Merge pull request #563 from mikedewar/email

a bit more error checking on toEmail
fixed a bug in unpack