emersion / go-msgauth

🔏 A Go library and tools for DKIM, DMARC and Authentication-Results
MIT License
162 stars 51 forks source link

Solve #23: header with extra blank line generated in some rare cases #24

Closed ludusrusso closed 4 years ago

ludusrusso commented 4 years ago

Closes #23

ludusrusso commented 4 years ago

The issue is generated when

len(header) % 75 == 74

codecov-io commented 4 years ago

Codecov Report

Merging #24 into master will not change coverage by %. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #24   +/-   ##
=======================================
  Coverage   66.50%   66.50%           
=======================================
  Files           7        7           
  Lines         827      827           
=======================================
  Hits          550      550           
  Misses        208      208           
  Partials       69       69           
Impacted Files Coverage Δ
dkim/header.go 93.10% <100.00%> (ø)

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 322c864...bf7c84c. Read the comment docs.