Key: POP3 UIDL (bytes). Value: raw RFC 5322 message bytes exactly as fetched from POP3. Effectively: UIDL → raw_rfc822_bytes.
Used in process_emails.do_processing as a generic metadata db. Not yet used to build a Message-ID → UIDL index.
Key: Message-ID. Value: structured metadata (job type, parsed job, scores, etc). See Job Analysis.
~/.mail/.booking_map2.gdbm — maps booking reference → list of [Message-ID, UIDL] pairs.
~/.mail/.bookings_db2.gdbm — booking records keyed by booking reference.
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.