Adjusted conditions for type=email
Added attributes to From_Writer::init()