Techniques to store SMTP headers in SQL and per-message files on disk for archival and legal purposes