Dnešná relácia otázok a odpovedí sa k nám pridelí zdvorilosťou SuperUser - podskupiny Stack Exchange, skupín webových stránok týkajúcich sa otázok a odpovedí.
Foto s láskavým dovolením od Judith E. Bell (Flickr).
Otázka
Čítač SuperUser dpdt chce vedieť, prečo dostal e-mail s nezmyselnou hlavičkou:
I recently received an email with the following title:
Prečo niektoré e-maily majú nezmyselné reťazce znakov ako hlavičky?
Odpoveď
Používateľ Super3server user313114 nám odpovedal:
What you have is some header text encoded with a failed attempt at RFC 2047.
RFC 2047 is the standard governing the embedding of non-ASCII characters in email headers. It says that headers which do not comply (exactly) with the RFC 2047 standard should be displayed as-is rather than any decoding being attempted. So your email software is seeing the bad header and displaying it “correctly” (as required by the standard).
No mainstream software flouts RFC 2047 so badly as that, so it is probably coming from some dodgy bulk mailing software. The software is making encoded words too long (the line length limit is 76 characters), which is forbidden (RFC 2047 says “MUST NOT”).
Despite being too long, it can be decoded manually. It looks like some sort of recruiter spam:
Máte niečo doplniť vysvetlenie? Znížte komentáre. Chcete si prečítať viac odpovedí od iných používateľov technológie Stack Exchange? Pozrite sa na celý diskusný príspevok tu.