gmailgem / gmail

A Rubyesque interface to Gmail, with all the tools you'll need.
Other
397 stars 119 forks source link

witing attachment from file give me additional new line characters after each line #172

Closed Cansiano closed 9 years ago

Cansiano commented 9 years ago

when saving the attachment: newFile = File.open(File.join(dir, f.filename), "w") contents = f.body.decoded newFile << contents newFile.close

I see added new line character after each line in comperison with attachment. I tried to change encoding in begging of script or while saving but it didn't help.

johnnyshields commented 9 years ago

The Mail gem does our attachment handling, so if there's an issue it's probably within the Mail gem. I will reopen this issue if you can come back with evidence that Gmail gem is doing something wrong.