Skip to content

Instantly share code, notes, and snippets.

@Antnetman
Antnetman / head-test.py
Created December 16, 2025 14:12
Python message header parsing
# Parsing different styles of email address in a header line.
# Some are invalid and may throw an exception. See:
# https://github.com/python/cpython/issues/75171
from email.parser import Parser
from email.policy import default
headers = [
'From: me<me@example.net>',
'From: me<me@example.>',
@Antnetman
Antnetman / here.md
Last active December 10, 2025 11:16

The thing didn't happen here

@Antnetman
Antnetman / test.txt
Last active December 13, 2025 11:29
A Test
🎷 This is not a pipe.
It is a gist.