在查看NNTP standard之后,我已经想出如何从邮件中提取标题,如何折叠标题,以及如何将标题标签与标题文本分开。我找不到的是标准NNTP标头的官方列表。标准列出Subject, From, Date, Message-id, Reference
但不是Groups
我知道需要在那里。
是否有正式的NNTP官方标题列表?对于奖励分数,是否有常用的非官方标题列表?
修改
我找到了list of standard headers。是否有类似的非标准但常见的标题列表?
答案 0 :(得分:4)
您没有查看正确的RFC,您链接的是一般的消息格式。
Netnews在Netnews Article Format RFC 5536中明确解决,其中列出了标题(包含定义它们的RFC的页码)
3.1. Mandatory Header Fields ...................................10
3.1.1. Date ...............................................11
3.1.2. From ...............................................11
3.1.3. Message-ID .........................................11
3.1.4. Newsgroups .........................................13
3.1.5. Path ...............................................14
3.1.6. Subject ............................................16
3.2. Optional Header Fields ....................................16
3.2.1. Approved ...........................................17
3.2.2. Archive ............................................17
3.2.3. Control ............................................17
3.2.4. Distribution .......................................18
3.2.5. Expires ............................................19
3.2.6. Followup-To ........................................19
3.2.7. Injection-Date .....................................20
3.2.8. Injection-Info .....................................20
3.2.9. Organization .......................................22
3.2.10. References ........................................22
3.2.11. Summary ...........................................23
3.2.12. Supersedes ........................................23
3.2.13. User-Agent ........................................23
3.2.14. Xref ..............................................24
3.3. Obsolete Header Fields ....................................25
3.3.1. Lines ..............................................25