Write gmime stream without opening an existing file