这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Necoro
Copy link
Contributor

@Necoro Necoro commented Apr 21, 2020

CreateWriter does set Content-Type to multipart/mixed unconditionally.
This forces some mail clients into showing that attachments exist -- even if there are none (the multipart only contains one part).

As I still need a multipart/alternative, using CreateSingleInlineWriter is not sufficient. Thus I added CreateInlineWriter (returning an *InlineWriter) as the (missing) middle course.

@codecov-io
Copy link

Codecov Report

Merging #83 into master will decrease coverage by 0.48%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #83      +/-   ##
==========================================
- Coverage   79.97%   79.49%   -0.49%     
==========================================
  Files          15       15              
  Lines         989      995       +6     
==========================================
  Hits          791      791              
- Misses        122      128       +6     
  Partials       76       76              
Impacted Files Coverage Δ
mail/writer.go 66.66% <0.00%> (-8.89%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fee642d...d0c8556. Read the comment docs.

Copy link
Owner

@emersion emersion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@emersion emersion merged commit 8c6ac6b into emersion:master Apr 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants