|
53 | 53 | format-date format-date-iso |
54 | 54 | report-priority report-status report-descendant-count |
55 | 55 | parse-cli-args parse-delay parse-cutoff-date |
56 | | - load-config db-path build-source-map |
| 56 | + load-config load-mailmap db-path build-source-map |
57 | 57 | bark-schema bark-format |
58 | 58 | report-type-spec type->plural |
59 | 59 | votes-by-report vote-counts |
|
426 | 426 | (reset! export-ctx {:db db |
427 | 427 | :votes votes |
428 | 428 | :config config |
429 | | - :author-names (build-author-names db)})) |
| 429 | + :author-names (merge (build-author-names db) |
| 430 | + (load-mailmap))})) |
430 | 431 |
|
431 | 432 | (defn- ctx-db [] (:db @export-ctx)) |
432 | 433 | (defn- ctx-votes [] (:votes @export-ctx)) |
|
505 | 506 | (fetch-attachment-data db (:report/message-id report)))) |
506 | 507 | att-email (delay (:report/email @att-data)) |
507 | 508 | from (or (:email/author-address email) "") |
| 509 | + from-name (or (get (ctx-author-names) (str/lower-case from)) |
| 510 | + (:email/author-name email)) |
508 | 511 | arch (archive-url report email source-map) |
509 | 512 | src-type (get-in source-map [source-name :source-type]) |
510 | 513 | relations (group-relations report src-type) |
|
526 | 529 | (assoc-from-addresses report) |
527 | 530 | (assoc-owned-name (ctx-author-names)) |
528 | 531 | (cond-> |
529 | | - (:email/author-name email) (assoc :from-name (:email/author-name email)) |
| 532 | + from-name (assoc :from-name from-name) |
530 | 533 | role (assoc :role role) |
531 | 534 | (:report/message-id report) (assoc :message-id (:report/message-id report)) |
532 | 535 | (:report/version report) (assoc :version (:report/version report)) |
|
0 commit comments