Skip to content

Instantly share code, notes, and snippets.

View liutgnu's full-sized avatar

liutgnu liutgnu

View GitHub Profile
@bonzini
bonzini / mbox_split.py
Last active March 30, 2024 02:40
Split a mailbox into separate patch files, stripping the transfer encoding and minimizing the headers along the way.
#! /usr/bin/env python3
# mbox_split.py
#
# Split a mailbox into separate patch files, stripping the transfer encoding
# and minimizing the headers along the way.
#
# Written by Paolo Bonzini <pbonzini@redhat.com>
import argparse