Messages in this thread | | | Date | Wed, 06 Apr 2011 15:09:50 -0700 | From | "H. Peter Anvin" <> | Subject | tip: New "Link:" tag to replace "LKML-Reference:" |
| |
Hi all,
At Linus' request, I have modified the tip-bot to recognize a new form of email archive references, which should work as clickable links. Instead of:
LKML-Reference: <message-id>
use, instead:
Link: http://lkml.kernel.org/r/message-id
The entire bit "Link: http://lkml.kernel.org/r/" is a literal; the rest is the message-id from the original message, *without* angle brackets. This points to a redirection service on kernel.org, which currently bounces to marc.info, but which we can redirect in the future.
I changed the name from LKML-Reference: to Link: to make the width of the string tolerable, and since the link itself contains an explicit reference to the specific archive used.
Please note that message-ids sometimes contain characters which have to be escaped to fit in valid URI syntax! The characters @ and $ which are very common in message-ids do not, however, need to be escaped in this particular context (even though they are not part of the URI safe character set, and so most library functions will escape them.) The characters # ; & % as well as whitespace are definitely unsafe either for use in an URI or for programs to recognize them as part of one, and should definitely be escaped.
The tip-bot will recognize the *exact* form above (including URI escaping) and should do the message threading correctly. To keep people from injecting malicious links, however, there is sanity filtering on the unescaped content, so in theory a legal-but-weird message-id might be rejected.
-hpa
| |