mime icon indicating copy to clipboard operation
mime copied to clipboard

Allow tabs as separators between attributes

Open FliegendeWurst opened this issue 7 years ago • 5 comments

An example of this can be seen in the updated test :)

I am actually not sure whether this should be allowed or not..

FliegendeWurst avatar Jan 06 '17 16:01 FliegendeWurst

I somehow didn't notice this pull request, I'm so sorry!

Is there a situation you find where mime types include tabs? Quickly looking in the specs, it doesn't seem to mention tabs...

seanmonstar avatar Jun 09 '17 21:06 seanmonstar

I remember Yahoo returning some in their mail headers.

FliegendeWurst avatar Jun 09 '17 22:06 FliegendeWurst

I'd love to see an example, if you have one.

seanmonstar avatar Jun 09 '17 23:06 seanmonstar

Sadly I dont have an example anymore :(

FliegendeWurst avatar Jun 10 '17 10:06 FliegendeWurst

Mime in Mail can actually have tabs in practice[1] (and "\r\n " / "\r\n\t" sequences if the content type is split over multiple lines...).

For mail " " is basically equivalent to "\t", so if a mail program does insert WSP before or after after the ";" having "\t" is totally possible, just a rare choice.

So supporting it is a good idea for robustness.

[1]: and I think in the standard too, just that you have to cross read more than one standard to be sure :=(

rustonaut avatar Oct 24 '17 19:10 rustonaut