export PGHOST=localhost
export PGPORT=5432
export PGUSER=xxx
export PGPASSWORD=xxx
export PGDATABASE=xxx
Usage:
python3.13 import_eml_to_postgres.py path_to_eml_files --dedupe-attachments
In PHP directory, example code also made by AI to browse these messages