extract get_message_ctime to handle bad tz info and add --creds= argument to allow credentials from a file

Signed-off-by: Pamela McA'Nulty <pamela@webreply.com>