Current Storage — GDBM Files

~/.email3.mail.gdbm (raw mail store)

Key: POP3 UIDL (bytes). Value: raw RFC 5322 message bytes exactly as fetched from POP3. Effectively: UIDL → raw_rfc822_bytes.

~/.email3.meta.gdbm (metadata store)

Used in process_emails.do_processing as a generic metadata db. Not yet used to build a Message-ID → UIDL index.

~/.jobserve.gdbm (JobServe processed data)

Key: Message-ID. Value: structured metadata (job type, parsed job, scores, etc). See Job Analysis.

David Lloyd stores

~/.mail/.booking_map2.gdbm — maps booking reference → list of [Message-ID, UIDL] pairs.

~/.mail/.bookings_db2.gdbm — booking records keyed by booking reference.

Key Observation

The raw-mail database is UIDL-keyed, while downstream processors (JobServe, David Lloyd) use Message-ID as their primary key. This mismatch is the source of the lookup tension.

version1