[bug-66301] Add a method to properly write the header necessary for a MSG attachment. Thanks to Lyn Evans.