Formatting changes to main()
Fixed errno check in mailer_format_addr