Open emersion opened 4 years ago
I can work on it on the next days! :D
My idea is to write two simple functions, one to fold h
and one for b
(that we already have).
Nice!
I think to fold h
, it'll probably be simpler to do it before turning the list into a string, ie. in formatTagList
:
Nice!
I think to fold
h
, it'll probably be simpler to do it before turning the list into a string, ie. informatTagList
:
Thats right, but I then need to change some piece of code in the middle, I thinks that it would be simpler by just use Strings.split
in
By the way, #30 fixed the h= wrapping as well.
With https://github.com/emersion/go-msgauth/pull/29 we no longer generate broken signatures with FWS where they shouldn't be. However we could still improve our folding algorithm. Given these constraints:
We may want to fix these:
h=
params if they are very longb=
params at 75 chars, but we don't need to