Skip to content

Commit

Permalink
nntp_write and nntp_read
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Sep 18, 2024
1 parent 0912657 commit 7c41b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nntp_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def nntp_read(article_id: str, newsgroup: str = "local.test") -> dict:
# stat = nntp_server.stat()
# print(f"{stat = } vs. {article_id = }")
article = nntp_server.article(article_id)
body_lines = article[1].lines[11]
body_lines = article[1].lines[11:] # Skip the header lines.
print("\n".join(line.decode("utf-8") for line in body_lines))
# print(f"{article = }")
# print(f"{article.decode("utf-8") = }")
Expand Down

0 comments on commit 7c41b34

Please sign in to comment.