cyrusimap / cassandane

Other
6 stars 11 forks source link

JMAPEmail: do not QP-encode text headers if they only need folding #172

Closed rsto closed 2 years ago

elliefm commented 2 years ago

Though, I think it would be good to also have a test in here for the case where a very long header does contain whitespace, but if we only folded there then the folded lines would still be too long, such that we need to encode anyway. Something like ("x" x 80) . " " . ("x" x 80)

Skimming the corresponding PR, I think this is already handled correctly (by the various comparisons against 74). But a regression test would be nice in case we break it somehow in the future.

rsto commented 2 years ago

Thanks. I added an according test.